1#include <Gui/AboutDialog/AboutDialog.hpp>
5#include "ui_AboutDialog.h"
9AboutDialog::AboutDialog( QWidget* parent ) : QDialog( parent ), ui( new Ui::AboutDialog ) {
11 ui->radiumText->setFocusPolicy( Qt::NoFocus );
12 auto file = QFile(
":/about.html" );
13 if ( file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
14 auto text = file.readAll();
15 ui->radiumText->setText( text );
17 auto btn = ui->aboutbuttons->button( QDialogButtonBox::Close );
19 btn->setAutoDefault(
true );
20 btn->setDefault(
true );
21 auto settingsBtn =
new QPushButton(
"Settings", ui->aboutbuttons );
22 ui->aboutbuttons->addButton( settingsBtn, QDialogButtonBox::RejectRole );
23 settingsBtn->setAutoDefault(
false );
24 settingsBtn->setDefault(
false );
25 connect( settingsBtn, &QPushButton::pressed,
this, &AboutDialog::settings );
26 btn = ui->aboutbuttons->button( QDialogButtonBox::Help );
27 btn->setAutoDefault(
false );
28 btn->setDefault(
false );
29 connect( btn, &QPushButton::pressed,
this, &AboutDialog::help );
32AboutDialog::~AboutDialog() {
hepler function to manage enum as underlying types in VariableSet