HAL
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  mLayout->addWidget(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));
21  mLayout->addWidget(new QLabel(QString("Compiled with Qt Version %1")
22  .arg(QT_VERSION_STR)
23  ,this));
24  mLayout->addWidget(new QLabel(QString("Last build configured at %1 %2").arg(hal_version::build_timestamp.c_str())));
25  mLayout->addWidget(new QLabel(QString("Open Source licenses:"),this));
27  mTextedit->setReadOnly(true);
28  mLayout->addWidget(mTextedit);
29  }
30 }
AboutDialog(QWidget *parent=nullptr)
Definition: about_dialog.cpp:8
std::string get_open_source_licenses()
Definition: utils.cpp:298
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
void setReadOnly(bool ro)
QString fromStdString(const std::string &str)
WindowContextHelpButtonHint
void setWindowFlags(Qt::WindowFlags type)
void setWindowTitle(const QString &)