Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
4b8afa8a
Commit
4b8afa8a
authored
Nov 22, 2010
by
Pawel Polanski
Browse files
Password dialog for symbian cert has been polished
Reviewed-by: Tobias Hunger
parent
7a616d58
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-s60/passphraseforkeydialog.cpp
View file @
4b8afa8a
...
...
@@ -31,7 +31,7 @@
#include <QtGui/QDialogButtonBox>
#include <QtGui/QLabel>
#include <QtGui/Q
Form
Layout>
#include <QtGui/Q
VBox
Layout>
#include <QtGui/QLineEdit>
#include <QtGui/QCheckBox>
...
...
@@ -40,14 +40,16 @@ using namespace Qt4ProjectManager;
PassphraseForKeyDialog
::
PassphraseForKeyDialog
(
const
QString
&
keyName
,
QWidget
*
parent
)
:
QDialog
(
parent
)
{
QFormLayout
*
formLayout
=
new
QFormLayout
(
this
);
setLayout
(
formLayout
);
QVBoxLayout
*
layout
=
new
QVBoxLayout
(
this
);
setLayout
(
layout
);
QHBoxLayout
*
hPasswordLayout
=
new
QHBoxLayout
(
this
);
QLabel
*
passphraseLabel
=
new
QLabel
(
this
);
passphraseLabel
->
setText
(
tr
(
"Passphrase:"
));
passphraseLabel
->
setObjectName
(
QString
::
fromUtf8
(
"passphraseLabel"
));
f
or
m
Layout
->
set
Widget
(
0
,
QFormLayout
::
LabelRole
,
passphraseLabel
);
hPassw
or
d
Layout
->
add
Widget
(
passphraseLabel
);
QLineEdit
*
passphraseLineEdit
=
new
QLineEdit
(
this
);
passphraseLineEdit
->
setObjectName
(
QString
::
fromUtf8
(
"passphraseLineEdit"
));
...
...
@@ -55,15 +57,13 @@ PassphraseForKeyDialog::PassphraseForKeyDialog(const QString &keyName, QWidget *
connect
(
passphraseLineEdit
,
SIGNAL
(
textChanged
(
QString
)),
this
,
SLOT
(
setPassphrase
(
QString
)));
f
or
m
Layout
->
set
Widget
(
0
,
QFormLayout
::
FieldRole
,
passphraseLineEdit
);
hPassw
or
d
Layout
->
add
Widget
(
passphraseLineEdit
);
m_checkBox
=
new
QCheckBox
(
this
);
m_checkBox
->
setText
(
tr
(
"Save passphrase"
));
m_checkBox
->
setObjectName
(
QString
::
fromUtf8
(
"checkBox"
));
m_checkBox
->
setToolTip
(
tr
(
"This is an insecure option. The password will be saved as a plain text."
));
formLayout
->
setWidget
(
1
,
QFormLayout
::
LabelRole
,
m_checkBox
);
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
(
this
);
buttonBox
->
setObjectName
(
QString
::
fromUtf8
(
"buttonBox"
));
buttonBox
->
setStandardButtons
(
QDialogButtonBox
::
Cancel
|
QDialogButtonBox
::
Ok
);
...
...
@@ -71,7 +71,11 @@ PassphraseForKeyDialog::PassphraseForKeyDialog(const QString &keyName, QWidget *
connect
(
buttonBox
,
SIGNAL
(
accepted
()),
this
,
SLOT
(
accept
()));
connect
(
buttonBox
,
SIGNAL
(
rejected
()),
this
,
SLOT
(
reject
()));
formLayout
->
setWidget
(
2
,
QFormLayout
::
FieldRole
,
buttonBox
);
layout
->
addLayout
(
hPasswordLayout
);
layout
->
addWidget
(
m_checkBox
);
layout
->
addItem
(
new
QSpacerItem
(
0
,
10
));
layout
->
addWidget
(
buttonBox
);
setWindowTitle
(
tr
(
"Passphrase for %1"
).
arg
(
keyName
));
setFixedSize
(
sizeHint
()
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment