Mercurial > hg > bitcoin
changeset 2392:67da61786391 draft
passphrasedialog: change dialog title to "Passphrase Dialog" / remove style-sheet for bold font and use Qt Designer option / remove an unused label default-text and remove an obsolete clear()'
author | Philip Kaufmann <phil.kaufmann@t-online.de> |
---|---|
date | Sat, 05 May 2012 18:24:23 +0200 |
parents | 635a1d30480c |
children | 816464140ae4 |
files | src/qt/askpassphrasedialog.cpp src/qt/forms/askpassphrasedialog.ui |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qt/askpassphrasedialog.cpp +++ b/src/qt/askpassphrasedialog.cpp @@ -24,7 +24,6 @@ ui->passEdit1->installEventFilter(this); ui->passEdit2->installEventFilter(this); ui->passEdit3->installEventFilter(this); - ui->capsLabel->clear(); switch(mode) { @@ -215,7 +214,7 @@ bool AskPassphraseDialog::eventFilter(QObject *, QEvent *event) { - /* Detect Caps Lock. + /* Detect Caps Lock. * There is no good OS-independent way to check a key state in Qt, but we * can detect Caps Lock by checking for the following condition: * Shift key is down and the result is a lower case character, or
--- a/src/qt/forms/askpassphrasedialog.ui +++ b/src/qt/forms/askpassphrasedialog.ui @@ -23,7 +23,7 @@ </size> </property> <property name="windowTitle"> - <string>Dialog</string> + <string>Passphrase Dialog</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> @@ -88,13 +88,14 @@ </item> <item row="4" column="1"> <widget class="QLabel" name="capsLabel"> - <property name="styleSheet"> - <string notr="true">#capsLabel { - font: bold; -}</string> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> </property> <property name="text"> - <string>TextLabel</string> + <string/> </property> <property name="alignment"> <set>Qt::AlignCenter</set>