-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaboutdialog.cpp
More file actions
31 lines (26 loc) · 819 Bytes
/
aboutdialog.cpp
File metadata and controls
31 lines (26 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include <QSettings>
aboutDialog::aboutDialog(QWidget *parent)
: QDialog(parent)
, ui(new Ui::aboutDialog)
{
ui->setupUi(this);
QSettings settings("HJ Steehouwer", "QuickImport");
ui->dontshowCheckBox->setCheckState(
settings.value("dontShowAboutDialog", false).toBool() ? Qt::Checked : Qt::Unchecked);
ui->aboutBox->setTitle(tr("About Quick Import (version %1)").arg(QCoreApplication::applicationVersion()));
}
aboutDialog::~aboutDialog()
{
delete ui;
}
bool aboutDialog::getdontShowCheckBox()
{
return ui->dontshowCheckBox->isChecked();
}
void aboutDialog::on_dontshowCheckBox_stateChanged(int arg1)
{
QSettings settings("HJ Steehouwer", "QuickImport");
settings.setValue("dontShowAboutDialog", (bool) arg1);
}