blob: be0bb422ab68ecff14dc3d1686d00e742afdb8a6 [file] [log] [blame]
#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(update()));
}
void
SettingDialog::update()
{
emit updated(nickEdit->text(), roomEdit->text(), prefixEdit->text());
accept();
}