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

svn at pcbsd.org svn at pcbsd.org
Fri Feb 15 17:57:28 PST 2013


Author: kenmoore
Date: 2013-02-16 01:57:27 +0000 (Sat, 16 Feb 2013)
New Revision: 21570

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
   pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Set the focus policy on all the login widget items



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-02-16 01:46:33 UTC (rev 21569)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-02-16 01:57:27 UTC (rev 21570)
@@ -18,16 +18,21 @@
   QVBoxLayout* vlayout = new QVBoxLayout();
   //Create the items
   listUsers = new QComboBox;
+  	listUsers->setFocusPolicy(Qt::StrongFocus);
   linePassword = new QLineEdit;
+  	linePassword->setFocusPolicy(Qt::StrongFocus);
   pushLogin = new QToolButton;
 	QAction* tmp1 = new QAction(this);
 	pushLogin->setDefaultAction( tmp1 );
+	pushLogin->setFocusPolicy(Qt::StrongFocus);
   pushViewPassword = new QToolButton;
 	QAction* tmp2 = new QAction(this);
 	pushViewPassword->setDefaultAction( tmp2 );
+	pushViewPassword->setFocusPolicy(Qt::NoFocus);
   pushUserIcon = new QToolButton;
 	QAction* tmp3 = new QAction(this);
 	pushUserIcon->setDefaultAction( tmp3 );
+	pushUserIcon->setFocusPolicy(Qt::NoFocus);
   //Add the items to the grid
       hlayout1->addWidget(pushUserIcon);
       hlayout1->addWidget(listUsers);

Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-16 01:46:33 UTC (rev 21569)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-16 01:57:27 UTC (rev 21570)
@@ -16,7 +16,6 @@
     //Create the GUI based upon the current Theme
     createGUIfromTheme();
     //Now make sure that the login widget has keyboard focus
-    loginW->setFocus();
     loginW->resetFocus(); 
 }
 
@@ -383,8 +382,6 @@
   }
     //Set the switcher to the last used desktop environment
     //deSwitcher->setCurrentItem("kde3");
-    
-  //Always make sure that the login widget has focus after re-translating
-  loginW->resetFocus();
+
 }
 



More information about the Commits mailing list