[PC-BSD Commits] r21847 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Wed Mar 13 10:51:24 PDT 2013


Author: kenmoore
Date: 2013-03-13 17:51:24 +0000 (Wed, 13 Mar 2013)
New Revision: 21847

Modified:
   pcbsd-projects/PCDM/fancySwitcher.cpp
   pcbsd-projects/PCDM/loginWidget.cpp
Log:
Now the single-user system should have the password line auto-selected. Also change the keyboard shortucts for the De-switcher to Alt+<arrow key> instead of Ctrl+<arrow-key>, this should allow for the shortcut to work even when the password line currently has keyboard focus



Modified: pcbsd-projects/PCDM/fancySwitcher.cpp
===================================================================
--- pcbsd-projects/PCDM/fancySwitcher.cpp	2013-03-13 17:33:07 UTC (rev 21846)
+++ pcbsd-projects/PCDM/fancySwitcher.cpp	2013-03-13 17:51:24 UTC (rev 21847)
@@ -39,9 +39,9 @@
   if(isHorizontal){
     iconViewer->setFixedSize(2.5*iconSize,iconSize+2);
     pushBack->setIcon(QIcon(":images/left.png"));
-    pushBack->setShortcut(tr("Ctrl+Left"));
+    pushBack->setShortcut(tr("Alt+Left"));
     pushForward->setIcon(QIcon(":images/right.png"));
-    pushForward->setShortcut(tr("Ctrl+Right"));
+    pushForward->setShortcut(tr("Alt+Right"));
     layout->addWidget(pushBack,1,1);
     layout->addWidget(iconViewer,1,2);
     layout->addWidget(pushForward,1,3);
@@ -49,9 +49,9 @@
   }else{ //vertical
     iconViewer->setFixedSize(iconSize+2,2.5*iconSize);
     pushBack->setIcon(QIcon(":images/up.png"));
-    pushBack->setShortcut(tr("Ctrl+Up"));
+    pushBack->setShortcut(tr("Alt+Up"));
     pushForward->setIcon(QIcon(":images/down.png"));
-    pushForward->setShortcut(tr("Ctrl+Down"));
+    pushForward->setShortcut(tr("Alt+Down"));
     layout->addWidget(pushBack,1,1);
     layout->addWidget(iconViewer,2,1);
     layout->addWidget(textLabel,3,1);

Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-03-13 17:33:07 UTC (rev 21846)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-03-13 17:51:24 UTC (rev 21847)
@@ -32,7 +32,7 @@
   	listUserBig->setSelectionMode(QAbstractItemView::SingleSelection);
   	listUserBig->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
   listUsers = new QComboBox;
-  	listUsers->setFocusPolicy(Qt::StrongFocus);
+  	listUsers->setFocusPolicy(Qt::NoFocus); //big one gets keyboard focus instead
   linePassword = new QLineEdit;
   	linePassword->setFocusPolicy(Qt::StrongFocus);
   pushLogin = new QToolButton;



More information about the Commits mailing list