46
46
message = tr("Please enter your password:");
49
49
le_.setEchoMode(QLineEdit::Password);
52
52
setWindowTitle(tr("Need Password"));
53
53
QVBoxLayout *vbox = new QVBoxLayout(this);
57
57
QLabel *label = new QLabel(message, this);
67
67
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel,
69
69
QPushButton *okButton = static_cast<QPushButton *>(buttonBox->addButton(QDialogButtonBox::Ok));
70
70
okButton->setDefault(true);
71
71
vbox->addWidget(buttonBox);
73
73
QObject::connect(buttonBox, SIGNAL(accepted()), SLOT(accept()));
74
74
QObject::connect(buttonBox, SIGNAL(rejected()), SLOT(reject()));
76
76
setSizeGripEnabled(true);
78
78
psi_->alertManager()->raiseDialog(this, AlertManager::AccountPassword);