From a37b98d95deb47dfcec5e0be7bd30b30ac0f71cf Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sun, 12 Feb 2017 23:05:48 +0100 Subject: [PATCH] Fix edit entry form alignment and autotype settings '+'/'-' buttons --- src/gui/PasswordGeneratorWidget.ui | 45 +++---- src/gui/entry/EditEntryWidget.cpp | 2 + src/gui/entry/EditEntryWidgetAutoType.ui | 82 ++++++------ src/gui/entry/EditEntryWidgetMain.ui | 157 +++++++++++++---------- 4 files changed, 153 insertions(+), 133 deletions(-) diff --git a/src/gui/PasswordGeneratorWidget.ui b/src/gui/PasswordGeneratorWidget.ui index b7413f56b..29c2e18c3 100644 --- a/src/gui/PasswordGeneratorWidget.ui +++ b/src/gui/PasswordGeneratorWidget.ui @@ -6,8 +6,8 @@ 0 0 - 500 - 278 + 575 + 284 @@ -16,10 +16,25 @@ 0 + + + 0 + 284 + + + + + 16777215 + 16777215 + + - + + + QLayout::SetMinimumSize + @@ -235,12 +250,6 @@ QProgressBar::chunk { - - - 0 - 26 - - Qt::StrongFocus @@ -260,12 +269,6 @@ QProgressBar::chunk { - - - 0 - 26 - - Qt::StrongFocus @@ -285,12 +288,6 @@ QProgressBar::chunk { - - - 0 - 26 - - Qt::StrongFocus @@ -310,12 +307,6 @@ QProgressBar::chunk { - - - 0 - 26 - - Qt::StrongFocus diff --git a/src/gui/entry/EditEntryWidget.cpp b/src/gui/entry/EditEntryWidget.cpp index f2372a0d5..66fdc9096 100644 --- a/src/gui/entry/EditEntryWidget.cpp +++ b/src/gui/entry/EditEntryWidget.cpp @@ -77,6 +77,8 @@ EditEntryWidget::EditEntryWidget(QWidget* parent) connect(this, SIGNAL(accepted()), SLOT(saveEntry())); connect(this, SIGNAL(rejected()), SLOT(cancel())); + + m_mainUi->passwordGenerator->layout()->setContentsMargins(0, 0, 0, 0); } EditEntryWidget::~EditEntryWidget() diff --git a/src/gui/entry/EditEntryWidgetAutoType.ui b/src/gui/entry/EditEntryWidgetAutoType.ui index e3288a33f..59f7d0e0a 100644 --- a/src/gui/entry/EditEntryWidgetAutoType.ui +++ b/src/gui/entry/EditEntryWidgetAutoType.ui @@ -7,7 +7,7 @@ 0 0 567 - 347 + 348 @@ -37,14 +37,14 @@ - Inherit default Auto-Type sequence from the group + Inherit default Auto-Type sequence from the &group - Use custom Auto-Type sequence: + &Use custom Auto-Type sequence: @@ -90,39 +90,7 @@ - - - - - false - - - - 0 - 0 - - - - + - - - - - - - false - - - - 0 - 0 - - - - - - - - + @@ -136,6 +104,44 @@ + + + + false + + + + 0 + 1 + + + + + 35 + 0 + + + + + + + + + + + + false + + + + 0 + 0 + + + + - + + + @@ -171,14 +177,14 @@ - Use default sequence + Use default se&quence - Set custom sequence: + Set custo&m sequence: diff --git a/src/gui/entry/EditEntryWidgetMain.ui b/src/gui/entry/EditEntryWidgetMain.ui index b896963c0..adc3ea247 100644 --- a/src/gui/entry/EditEntryWidgetMain.ui +++ b/src/gui/entry/EditEntryWidgetMain.ui @@ -6,35 +6,41 @@ 0 0 - 372 - 364 + 692 + 323 - - - QFormLayout::ExpandingFieldsGrow - - - + + + 0 + 0 + + + + + - Title: + URL: - - - - - - - Username: + + + + + 0 + 0 + + + + + 0 + 0 + - - - - + Password: @@ -42,31 +48,6 @@ - - - - - QLineEdit::Password - - - - - - - true - - - - - - - - - Repeat: - - - - @@ -84,24 +65,46 @@ - - + + + + + + QLineEdit::Password + + + + + + + true + + + + + + + - URL: + Repeat: + + + + + + + Title: + + + + + + + Notes: - - - - - - Expires - - - - @@ -115,6 +118,12 @@ + + + 0 + 0 + + Presets @@ -122,13 +131,6 @@ - - - - Notes: - - - @@ -139,8 +141,28 @@ - - + + + + Username: + + + + + + + + + + + + + + + + Expires + + @@ -165,7 +187,6 @@ togglePasswordButton togglePasswordGeneratorButton urlEdit - expireCheck expireDatePicker expirePresets notesEdit