actCancel remove (#3261)
This commit is contained in:
parent
3a05d063af
commit
494dfc2f4b
14 changed files with 9 additions and 51 deletions
|
@ -29,7 +29,7 @@ DlgEditAvatar::DlgEditAvatar(QWidget *parent) : QDialog(parent)
|
|||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(actOk()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(actCancel()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addLayout(grid);
|
||||
|
@ -46,11 +46,6 @@ void DlgEditAvatar::actOk()
|
|||
accept();
|
||||
}
|
||||
|
||||
void DlgEditAvatar::actCancel()
|
||||
{
|
||||
reject();
|
||||
}
|
||||
|
||||
void DlgEditAvatar::actBrowse()
|
||||
{
|
||||
QString fileName =
|
||||
|
|
|
@ -17,7 +17,6 @@ public:
|
|||
QByteArray getImage();
|
||||
private slots:
|
||||
void actOk();
|
||||
void actCancel();
|
||||
void actBrowse();
|
||||
|
||||
private:
|
||||
|
|
|
@ -39,7 +39,7 @@ DlgEditPassword::DlgEditPassword(QWidget *parent) : QDialog(parent)
|
|||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(actOk()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(actCancel()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addLayout(grid);
|
||||
|
@ -62,8 +62,3 @@ void DlgEditPassword::actOk()
|
|||
settingsCache->servers().setPassword(newPasswordEdit->text());
|
||||
accept();
|
||||
}
|
||||
|
||||
void DlgEditPassword::actCancel()
|
||||
{
|
||||
reject();
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@ public:
|
|||
}
|
||||
private slots:
|
||||
void actOk();
|
||||
void actCancel();
|
||||
|
||||
private:
|
||||
QLabel *oldPasswordLabel, *newPasswordLabel, *newPasswordLabel2;
|
||||
|
|
|
@ -45,7 +45,7 @@ DlgEditUser::DlgEditUser(QWidget *parent, QString email, QString country, QStrin
|
|||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(actOk()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(actCancel()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addLayout(grid);
|
||||
|
@ -61,8 +61,3 @@ void DlgEditUser::actOk()
|
|||
{
|
||||
accept();
|
||||
}
|
||||
|
||||
void DlgEditUser::actCancel()
|
||||
{
|
||||
reject();
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ public:
|
|||
}
|
||||
private slots:
|
||||
void actOk();
|
||||
void actCancel();
|
||||
|
||||
private:
|
||||
QLabel *emailLabel, *countryLabel, *realnameLabel;
|
||||
|
|
|
@ -31,7 +31,7 @@ DlgForgotPasswordChallenge::DlgForgotPasswordChallenge(QWidget *parent) : QDialo
|
|||
QMessageBox::warning(this, tr("Forgot Password Challenge Warning"),
|
||||
tr("Oops, looks like something has gone wrong. Please restart the forgot password "
|
||||
"process by using the forgot password button on the connection screen."));
|
||||
actCancel();
|
||||
reject();
|
||||
}
|
||||
|
||||
hostLabel = new QLabel(tr("&Host:"));
|
||||
|
@ -72,7 +72,7 @@ DlgForgotPasswordChallenge::DlgForgotPasswordChallenge(QWidget *parent) : QDialo
|
|||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(actOk()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(actCancel()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addLayout(grid);
|
||||
|
@ -97,8 +97,3 @@ void DlgForgotPasswordChallenge::actOk()
|
|||
|
||||
accept();
|
||||
}
|
||||
|
||||
void DlgForgotPasswordChallenge::actCancel()
|
||||
{
|
||||
reject();
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ public:
|
|||
}
|
||||
private slots:
|
||||
void actOk();
|
||||
void actCancel();
|
||||
|
||||
private:
|
||||
QLabel *hostLabel, *portLabel, *playernameLabel, *emailLabel;
|
||||
|
|
|
@ -48,7 +48,7 @@ DlgForgotPasswordRequest::DlgForgotPasswordRequest(QWidget *parent) : QDialog(pa
|
|||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(actOk()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(actCancel()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addLayout(grid);
|
||||
|
@ -73,8 +73,3 @@ void DlgForgotPasswordRequest::actOk()
|
|||
|
||||
accept();
|
||||
}
|
||||
|
||||
void DlgForgotPasswordRequest::actCancel()
|
||||
{
|
||||
reject();
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ public:
|
|||
}
|
||||
private slots:
|
||||
void actOk();
|
||||
void actCancel();
|
||||
|
||||
private:
|
||||
QLabel *hostLabel, *portLabel, *playernameLabel;
|
||||
|
|
|
@ -31,7 +31,7 @@ DlgForgotPasswordReset::DlgForgotPasswordReset(QWidget *parent) : QDialog(parent
|
|||
QMessageBox::warning(this, tr("Forgot Password Reset Warning"),
|
||||
tr("Opps, looks like something has gone wrong. Please re-start the forgot password "
|
||||
"process by using the forgot password button on the connection screen."));
|
||||
actCancel();
|
||||
reject();
|
||||
}
|
||||
|
||||
hostLabel = new QLabel(tr("&Host:"));
|
||||
|
@ -86,7 +86,7 @@ DlgForgotPasswordReset::DlgForgotPasswordReset(QWidget *parent) : QDialog(parent
|
|||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(actOk()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(actCancel()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addLayout(grid);
|
||||
|
@ -126,8 +126,3 @@ void DlgForgotPasswordReset::actOk()
|
|||
|
||||
accept();
|
||||
}
|
||||
|
||||
void DlgForgotPasswordReset::actCancel()
|
||||
{
|
||||
reject();
|
||||
}
|
||||
|
|
|
@ -36,7 +36,6 @@ public:
|
|||
}
|
||||
private slots:
|
||||
void actOk();
|
||||
void actCancel();
|
||||
|
||||
private:
|
||||
QLabel *hostLabel, *portLabel, *playernameLabel, *tokenLabel, *newpasswordLabel, *newpasswordverifyLabel;
|
||||
|
|
|
@ -326,7 +326,7 @@ DlgRegister::DlgRegister(QWidget *parent) : QDialog(parent)
|
|||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(actOk()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(actCancel()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addLayout(grid);
|
||||
|
@ -361,8 +361,3 @@ void DlgRegister::actOk()
|
|||
|
||||
accept();
|
||||
}
|
||||
|
||||
void DlgRegister::actCancel()
|
||||
{
|
||||
reject();
|
||||
}
|
||||
|
|
|
@ -48,7 +48,6 @@ public:
|
|||
}
|
||||
private slots:
|
||||
void actOk();
|
||||
void actCancel();
|
||||
|
||||
private:
|
||||
QLabel *hostLabel, *portLabel, *playernameLabel, *passwordLabel, *passwordConfirmationLabel, *emailLabel,
|
||||
|
|
Loading…
Reference in a new issue