diff --git a/AuthDialog.cpp b/AuthDialog.cpp
--- a/AuthDialog.cpp
+++ b/AuthDialog.cpp
@@ -70,6 +70,13 @@
connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
+ // shrink user selection combo box, but keep it in place
+ userCB->setGeometry(QRect(91, 76, 407, 1));
+
+ // shrink authentication failure notice, but keep it in place
+ errorMessageWidget->setGeometry(91, 110, 407, 1);
+
+
QString detailsButtonText = i18n("Details");
QPushButton* detailsButton = new QPushButton(detailsButtonText + " >>");
detailsButton->setIcon(QIcon::fromTheme("help-about"));
@@ -214,6 +221,11 @@
* doing it again.. (this is mainly used when the user entered the
* wrong password and the dialog is recycled)
*/
+
+ // restore original size of user combobox
+ userCB->setGeometry(QRect(91, 76, 407, 31));
+
+
if (identities.count() && (userCB->count() - 1) != identities.count()) {
// Clears the combobox in the case some user be added
userCB->clear();
@@ -304,6 +316,9 @@
void AuthDialog::authenticationFailure()
{
+ // restore size of error message widget
+ errorMessageWidget->setGeometry(91, 110, 407, 44);
+
errorMessageWidget->setText(i18n("Authentication failure, please try again."));
errorMessageWidget->animatedShow();
diff --git a/AuthDialog.ui b/AuthDialog.ui
--- a/AuthDialog.ui
+++ b/AuthDialog.ui
@@ -7,53 +7,30 @@
0
0
511
- 344
+ 237
-
+
0
0
-
-
-
-
-
-
-
-
-
- 0
- 0
-
-
-
- &Lock Icon here
-
-
- false
-
-
- lePassword
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 92
-
-
-
-
-
+
+ 6
+
+ -
+
+
+ QLineEdit::Password
+
+
+ false
+
+
-
@@ -94,11 +71,28 @@
- -
-
+
-
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 13
+
+
+
-
-
+
+
+
+ 0
+ 0
+
+
+
-
@@ -110,16 +104,58 @@
- -
-
-
- QLineEdit::Password
+
-
+
+
+ true
-
- false
+
+
+ 0
+ 0
+
+ -
+
+
+ 6
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ &Lock Icon here
+
+
+ false
+
+
+ lePassword
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
-
@@ -139,7 +175,7 @@
KMessageWidget
- QWidget
+ QFrame