-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettingsdialog.cpp
More file actions
33 lines (28 loc) · 799 Bytes
/
settingsdialog.cpp
File metadata and controls
33 lines (28 loc) · 799 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
32
33
#include "settingsdialog.h"
#include "ui_settingsdialog.h"
#include <QMessageBox>
#include "addimgthread.h"
SettingsDialog::SettingsDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SettingsDialog)
{
ui->setupUi(this);
ui->spinBox_2->setValue(int(AddingImgThread::getGroupSizeLimit()));
}
SettingsDialog::~SettingsDialog()
{
delete ui;
}
void SettingsDialog::on_radioButton_2_pressed()
{
QMessageBox msgBox(this);
msgBox.setInformativeText("Sorry,\nThis option is not ready yet.");
msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setIcon(QMessageBox::Icon::Information);
msgBox.setDefaultButton(QMessageBox::Ok);
msgBox.exec();
}
void SettingsDialog::on_buttonBox_accepted()
{
AddingImgThread::setGroupSizeLimit(ui->spinBox_2->value());
}