mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
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()'
This commit is contained in:
parent
0e69fc6e84
commit
52d4975825
@ -24,7 +24,6 @@ AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
|
|||||||
ui->passEdit1->installEventFilter(this);
|
ui->passEdit1->installEventFilter(this);
|
||||||
ui->passEdit2->installEventFilter(this);
|
ui->passEdit2->installEventFilter(this);
|
||||||
ui->passEdit3->installEventFilter(this);
|
ui->passEdit3->installEventFilter(this);
|
||||||
ui->capsLabel->clear();
|
|
||||||
|
|
||||||
switch(mode)
|
switch(mode)
|
||||||
{
|
{
|
||||||
@ -215,7 +214,7 @@ bool AskPassphraseDialog::event(QEvent *event)
|
|||||||
|
|
||||||
bool AskPassphraseDialog::eventFilter(QObject *, QEvent *event)
|
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
|
* 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:
|
* can detect Caps Lock by checking for the following condition:
|
||||||
* Shift key is down and the result is a lower case character, or
|
* Shift key is down and the result is a lower case character, or
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Dialog</string>
|
<string>Passphrase Dialog</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
@ -88,13 +88,14 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="4" column="1">
|
||||||
<widget class="QLabel" name="capsLabel">
|
<widget class="QLabel" name="capsLabel">
|
||||||
<property name="styleSheet">
|
<property name="font">
|
||||||
<string notr="true">#capsLabel {
|
<font>
|
||||||
font: bold;
|
<weight>75</weight>
|
||||||
}</string>
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>TextLabel</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignCenter</set>
|
<set>Qt::AlignCenter</set>
|
||||||
|
Loading…
Reference in New Issue
Block a user