blob: be0bb422ab68ecff14dc3d1686d00e742afdb8a6 [file] [log] [blame]
Zhenkai Zhu275ba3a2012-06-01 23:10:43 -07001#include "settingdialog.h"
2
3SettingDialog::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()));
Zhenkai Zhu3472e3f2012-06-02 00:44:42 -070011 connect(okButton, SIGNAL(clicked()), this, SLOT(update()));
12}
13
14void
15SettingDialog::update()
16{
17 emit updated(nickEdit->text(), roomEdit->text(), prefixEdit->text());
18 accept();
Zhenkai Zhu275ba3a2012-06-01 23:10:43 -070019}