]> vaikene.ee Git - evaf/commitdiff
Changed the position of master password and name fields.
authorEnar Väikene <enar@vaikene.net>
Wed, 27 Jul 2011 07:54:30 +0000 (10:54 +0300)
committerEnar Väikene <enar@vaikene.net>
Wed, 27 Jul 2011 07:54:30 +0000 (10:54 +0300)
With the new auto-completer support, it makes more sense to enter the master password first and then name of the
application or web site.

src/apps/PswGen/GUI/gui.cpp

index 5ebbf105d35de903c65b4f70beda24baad01afec..965d70ea7b4052fdf2f6b59f8faa269dc9634413 100644 (file)
@@ -82,10 +82,20 @@ bool Module::init(QString const & args)
     v->addLayout(g);
     g->setColumnStretch(2, 2);
 
     v->addLayout(g);
     g->setColumnStretch(2, 2);
 
-    QLabel * l = new QLabel(tr("Web site or application &name:", VER_MODULE_NAME_STR));
+    QLabel * l = new QLabel(tr("Master &password:", VER_MODULE_NAME_STR));
     l->setAlignment(Qt::AlignRight);
     g->addWidget(l, 0, 0);
 
     l->setAlignment(Qt::AlignRight);
     g->addWidget(l, 0, 0);
 
+    wMasterPassword = new QLineEdit;
+    l->setBuddy(wMasterPassword);
+    connect(wMasterPassword, SIGNAL(textChanged(QString)), this, SLOT(textChanged(QString)));
+    wMasterPassword->setEchoMode(QLineEdit::Password);
+    g->addWidget(wMasterPassword, 0, 1, 1, 2);
+
+    l = new QLabel(tr("Web site or application &name:", VER_MODULE_NAME_STR));
+    l->setAlignment(Qt::AlignRight);
+    g->addWidget(l, 1, 0);
+
     wName = new QLineEdit;
     l->setBuddy(wName);
     if (mStorage) {
     wName = new QLineEdit;
     l->setBuddy(wName);
     if (mStorage) {
@@ -95,19 +105,9 @@ bool Module::init(QString const & args)
         wName->setCompleter(completer);
     }
     connect(wName, SIGNAL(textChanged(QString)), this, SLOT(textChanged(QString)));
         wName->setCompleter(completer);
     }
     connect(wName, SIGNAL(textChanged(QString)), this, SLOT(textChanged(QString)));
-    g->addWidget(wName, 0, 1, 1, 2);
+    g->addWidget(wName, 1, 1, 1, 2);
     win->widget()->setFocusProxy(wName);
 
     win->widget()->setFocusProxy(wName);
 
-    l = new QLabel(tr("Master &password:", VER_MODULE_NAME_STR));
-    l->setAlignment(Qt::AlignRight);
-    g->addWidget(l, 1, 0);
-
-    wMasterPassword = new QLineEdit;
-    l->setBuddy(wMasterPassword);
-    connect(wMasterPassword, SIGNAL(textChanged(QString)), this, SLOT(textChanged(QString)));
-    wMasterPassword->setEchoMode(QLineEdit::Password);
-    g->addWidget(wMasterPassword, 1, 1, 1, 2);
-
     l = new QLabel(tr("&Length of the password:", VER_MODULE_NAME_STR));
     l->setAlignment(Qt::AlignRight);
     g->addWidget(l, 2, 0);
     l = new QLabel(tr("&Length of the password:", VER_MODULE_NAME_STR));
     l->setAlignment(Qt::AlignRight);
     g->addWidget(l, 2, 0);