Fix button highlighting in multiple dialogs
* Changed style so that only default buttons have full background highlight. This prevents confusion as to which button in various dialogs is the default/desired choice. * Move password generator popup into static function outside of PasswordEdit so other parts of the program can easily access it. * QDialog forces 'autoDefault' property on all buttons causing them to obtain background highlight when they are focused. Moved Password Generator outside of a QDialog and forced 'autoDefault' to false on Browser Access Dialog. * Fixed button ordering in Totp Setup Dialog * About dialog close button is now the default button
This commit is contained in:
committed by
Janek Bevendorff
parent
fbd78037ff
commit
243f68e0e8
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>622</width>
|
||||
<height>404</height>
|
||||
<height>433</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -96,7 +96,7 @@
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>350</width>
|
||||
<width>450</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
@@ -157,6 +157,9 @@ QProgressBar::chunk {
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QPushButton" name="buttonCopy">
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::TabFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Copy password</string>
|
||||
</property>
|
||||
@@ -170,6 +173,9 @@ QProgressBar::chunk {
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="buttonGenerate">
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::TabFocus</enum>
|
||||
</property>
|
||||
<property name="accessibleDescription">
|
||||
<string>Regenerate password</string>
|
||||
</property>
|
||||
@@ -290,9 +296,6 @@ QProgressBar::chunk {
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::TabFocus</enum>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Character Types</string>
|
||||
</property>
|
||||
@@ -323,9 +326,6 @@ QProgressBar::chunk {
|
||||
<height>25</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::TabFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Upper-case letters</string>
|
||||
</property>
|
||||
@@ -1200,6 +1200,7 @@ QProgressBar::chunk {
|
||||
<tabstop>sliderLength</tabstop>
|
||||
<tabstop>spinBoxLength</tabstop>
|
||||
<tabstop>buttonAdvancedMode</tabstop>
|
||||
<tabstop>groupBox</tabstop>
|
||||
<tabstop>checkBoxUpper</tabstop>
|
||||
<tabstop>checkBoxLower</tabstop>
|
||||
<tabstop>checkBoxNumbers</tabstop>
|
||||
@@ -1215,6 +1216,11 @@ QProgressBar::chunk {
|
||||
<tabstop>checkBoxQuotes</tabstop>
|
||||
<tabstop>checkBoxDashes</tabstop>
|
||||
<tabstop>checkBoxExtASCIIAdv</tabstop>
|
||||
<tabstop>editAdditionalChars</tabstop>
|
||||
<tabstop>editExcludedChars</tabstop>
|
||||
<tabstop>buttonAddHex</tabstop>
|
||||
<tabstop>checkBoxExcludeAlike</tabstop>
|
||||
<tabstop>checkBoxEnsureEvery</tabstop>
|
||||
<tabstop>comboBoxWordList</tabstop>
|
||||
<tabstop>sliderWordCount</tabstop>
|
||||
<tabstop>spinBoxWordCount</tabstop>
|
||||
|
||||
Reference in New Issue
Block a user