HAL  v4.5.0-254-g8f9f6a423
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
about_dialog.cpp
Go to the documentation of this file.
2 
4 #include "hal_version.h"
5 
6 namespace hal
7 {
9  {
10  setWindowTitle("About:");
11 
12  // remove questionmark from title bar, it is not implemented and only confusing
14  mLayout = new QVBoxLayout(this);
15  QLabel* versionLabel = new QLabel(QString("hal %1.%2.%3 (%4)")
16  .arg(hal_version::major)
17  .arg(hal_version::minor)
18  .arg(hal_version::patch)
19  .arg(hal_version::version.c_str()),
20  this);
22  mLayout->addWidget(versionLabel);
23  QLabel* qtVersionLabel = new QLabel(QString("Compiled with Qt Version %1")
24  .arg(QT_VERSION_STR),
25  this);
27  mLayout->addWidget(qtVersionLabel);
28  mLayout->addWidget(new QLabel(QString("Last build configured at %1 %2").arg(hal_version::build_timestamp.c_str())));
29  mLayout->addWidget(new QLabel(QString("Open Source licenses:"),this));
31  mTextedit->setReadOnly(true);
32  mLayout->addWidget(mTextedit);
33  }
34 }
AboutDialog(QWidget *parent=nullptr)
Definition: about_dialog.cpp:8
std::string get_open_source_licenses()
Definition: utils.cpp:299
Definition: defines.h:45
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
void setTextInteractionFlags(Qt::TextInteractionFlags flags)
void setReadOnly(bool ro)
QString fromStdString(const std::string &str)
TextSelectableByMouse
WindowContextHelpButtonHint
void setWindowFlags(Qt::WindowFlags type)
void setWindowTitle(const QString &)