-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsafe360_setting.cpp
More file actions
33 lines (27 loc) · 922 Bytes
/
safe360_setting.cpp
File metadata and controls
33 lines (27 loc) · 922 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 "safe360_setting.h"
safe360_setting::safe360_setting(QWidget *parent, Skin *skin)
: Base_Widget<QDialog>(parent, skin)
{
setWindowTitle(QString::fromLocal8Bit("ÉèÖÃ"));
QWidget* p = new QWidget(this);
ui.setupUi(p);
resize(p->size());
layout_->addWidget(p);
ui.buttonBox->button(QDialogButtonBox::Ok)->setText(QString::fromLocal8Bit("È·¶¨"));
ui.buttonBox->button(QDialogButtonBox::Cancel)->setText(QString::fromLocal8Bit("È¡Ïû"));
connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(button_clicked(QAbstractButton*)));
}
safe360_setting::~safe360_setting()
{
}
void safe360_setting::button_clicked( QAbstractButton * button )
{
if (button == ui.buttonBox->button(QDialogButtonBox::Ok))
{
close();
}
else if (button == ui.buttonBox->button(QDialogButtonBox::Cancel))
{
close();
}
}