#include "settingdialog.h" | |
SettingDialog::SettingDialog(QWidget *parent, QString nick, QString chatroom, QString prefix) | |
: QDialog(parent) | |
{ | |
setupUi(this); | |
nickEdit->setPlaceholderText(nick); | |
roomEdit->setPlaceholderText(chatroom); | |
prefixEdit->setPlaceholderText(prefix); | |
connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject())); | |
connect(okButton, SIGNAL(clicked()), this, SLOT(accept())); | |
} |