Zhenkai Zhu | 85845d2 | 2012-06-01 23:10:43 -0700 | [diff] [blame^] | 1 | #include "settingdialog.h" |
2 | |||||
3 | SettingDialog::SettingDialog(QWidget *parent, QString nick, QString chatroom, QString prefix) | ||||
4 | : QDialog(parent) | ||||
5 | { | ||||
6 | setupUi(this); | ||||
7 | nickEdit->setPlaceholderText(nick); | ||||
8 | roomEdit->setPlaceholderText(chatroom); | ||||
9 | prefixEdit->setPlaceholderText(prefix); | ||||
10 | connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject())); | ||||
11 | connect(okButton, SIGNAL(clicked()), this, SLOT(accept())); | ||||
12 | } |