void rotate_dialog::on_buttonBox_rejected() { emit slotCancelPressed(); protecting_value_changed = true; resetting_values(); protecting_value_changed = false; }
KMPasswdDialog::KMPasswdDialog(QWidget *parent, const char *name, KMAcctPop *account , const char *caption, const char *login, QString passwd) :QDialog(parent,name,true) { // This function pops up a little dialog which asks you // for a new username and password if one of them was wrong or not set. kbp->idle(); act = account; setMaximumSize(300,180); setMinimumSize(300,180); setCaption(caption); QLabel *label = new QLabel(this); label->setText(i18n("Login Name:")); label->resize(label->sizeHint()); label->move(20,30); usernameLEdit = new QLineEdit(this,"NULL"); usernameLEdit->setText(login); usernameLEdit->setGeometry(100,27,150,25); QLabel *label1 = new QLabel(this); label1->setText(i18n("Password:"******"NULL"); passwdLEdit->setEchoMode(QLineEdit::Password); passwdLEdit->setText(passwd); passwdLEdit->setGeometry(100,76,150,25); connect(passwdLEdit,SIGNAL(returnPressed()),SLOT(slotOkPressed())); ok = new QPushButton(i18n("OK") ,this,"NULL"); ok->setGeometry(55,130,70,25); connect(ok,SIGNAL(pressed()),this,SLOT(slotOkPressed())); cancel = new QPushButton(i18n("Cancel"), this); cancel->setGeometry(180,130,70,25); connect(cancel,SIGNAL(pressed()),this,SLOT(slotCancelPressed())); }
void ScanController::createProgressDialog() { if (d->progressDialog) { return; } d->progressDialog = new DProgressDlg(0); d->progressDialog->setLabel(i18n("<b>Scanning collections, please wait...</b>")); d->progressDialog->setWhatsThis(i18n("This shows the progress of the scan. " "During the scan, all files on disk " "are registered in a database.")); d->progressDialog->setMaximum(1); d->progressDialog->setValue(0); connect(this, SIGNAL(incrementProgressDialog(int)), d->progressDialog, SLOT(incrementMaximum(int))); connect(d->progressDialog, SIGNAL(signalCancelPressed()), this, SLOT(slotCancelPressed())); }