9 #ifndef UI_ASKPASSPHRASEDIALOG_H
10 #define UI_ASKPASSPHRASEDIALOG_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QDialog>
17 #include <QtWidgets/QDialogButtonBox>
18 #include <QtWidgets/QFormLayout>
19 #include <QtWidgets/QHeaderView>
20 #include <QtWidgets/QLabel>
21 #include <QtWidgets/QLineEdit>
22 #include <QtWidgets/QVBoxLayout>
43 if (AskPassphraseDialog->objectName().isEmpty())
44 AskPassphraseDialog->setObjectName(QStringLiteral(
"AskPassphraseDialog"));
45 AskPassphraseDialog->resize(598, 198);
46 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
47 sizePolicy.setHorizontalStretch(0);
48 sizePolicy.setVerticalStretch(0);
49 sizePolicy.setHeightForWidth(AskPassphraseDialog->sizePolicy().hasHeightForWidth());
50 AskPassphraseDialog->setSizePolicy(sizePolicy);
51 AskPassphraseDialog->setMinimumSize(QSize(550, 0));
52 verticalLayout =
new QVBoxLayout(AskPassphraseDialog);
53 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
54 warningLabel =
new QLabel(AskPassphraseDialog);
55 warningLabel->setObjectName(QStringLiteral(
"warningLabel"));
56 warningLabel->setTextFormat(Qt::RichText);
57 warningLabel->setWordWrap(
true);
59 verticalLayout->addWidget(warningLabel);
61 formLayout =
new QFormLayout();
62 formLayout->setObjectName(QStringLiteral(
"formLayout"));
63 formLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
64 passLabel1 =
new QLabel(AskPassphraseDialog);
65 passLabel1->setObjectName(QStringLiteral(
"passLabel1"));
67 formLayout->setWidget(0, QFormLayout::LabelRole, passLabel1);
69 passEdit1 =
new QLineEdit(AskPassphraseDialog);
70 passEdit1->setObjectName(QStringLiteral(
"passEdit1"));
71 passEdit1->setEchoMode(QLineEdit::Password);
73 formLayout->setWidget(0, QFormLayout::FieldRole, passEdit1);
75 passLabel2 =
new QLabel(AskPassphraseDialog);
76 passLabel2->setObjectName(QStringLiteral(
"passLabel2"));
78 formLayout->setWidget(1, QFormLayout::LabelRole, passLabel2);
80 passEdit2 =
new QLineEdit(AskPassphraseDialog);
81 passEdit2->setObjectName(QStringLiteral(
"passEdit2"));
82 passEdit2->setEchoMode(QLineEdit::Password);
84 formLayout->setWidget(1, QFormLayout::FieldRole, passEdit2);
86 passLabel3 =
new QLabel(AskPassphraseDialog);
87 passLabel3->setObjectName(QStringLiteral(
"passLabel3"));
89 formLayout->setWidget(2, QFormLayout::LabelRole, passLabel3);
91 passEdit3 =
new QLineEdit(AskPassphraseDialog);
92 passEdit3->setObjectName(QStringLiteral(
"passEdit3"));
93 passEdit3->setEchoMode(QLineEdit::Password);
95 formLayout->setWidget(2, QFormLayout::FieldRole, passEdit3);
97 capsLabel =
new QLabel(AskPassphraseDialog);
98 capsLabel->setObjectName(QStringLiteral(
"capsLabel"));
102 capsLabel->setFont(font);
103 capsLabel->setAlignment(Qt::AlignCenter);
105 formLayout->setWidget(3, QFormLayout::FieldRole, capsLabel);
108 verticalLayout->addLayout(formLayout);
110 buttonBox =
new QDialogButtonBox(AskPassphraseDialog);
111 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
112 buttonBox->setOrientation(Qt::Horizontal);
113 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
115 verticalLayout->addWidget(buttonBox);
119 QObject::connect(buttonBox, SIGNAL(accepted()), AskPassphraseDialog, SLOT(accept()));
120 QObject::connect(buttonBox, SIGNAL(rejected()), AskPassphraseDialog, SLOT(reject()));
122 QMetaObject::connectSlotsByName(AskPassphraseDialog);
127 AskPassphraseDialog->setWindowTitle(QApplication::translate(
"AskPassphraseDialog",
"Passphrase Dialog", 0));
128 passLabel1->setText(QApplication::translate(
"AskPassphraseDialog",
"Enter passphrase", 0));
129 passLabel2->setText(QApplication::translate(
"AskPassphraseDialog",
"New passphrase", 0));
130 passLabel3->setText(QApplication::translate(
"AskPassphraseDialog",
"Repeat new passphrase", 0));
131 capsLabel->setText(QString());
142 #endif // UI_ASKPASSPHRASEDIALOG_H
void setupUi(QDialog *AskPassphraseDialog)
QVBoxLayout * verticalLayout
QDialogButtonBox * buttonBox
void retranslateUi(QDialog *AskPassphraseDialog)
Multifunctional dialog to ask for passphrases.