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

svn at pcbsd.org svn at pcbsd.org
Thu Jan 31 11:11:13 PST 2013


Author: kenmoore
Date: 2013-01-31 19:11:13 +0000 (Thu, 31 Jan 2013)
New Revision: 21267

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
   pcbsd-projects/PCDM/loginWidget.h
Log:
Fix a couple minor oversights with the new login widget layout



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-01-31 18:46:34 UTC (rev 21266)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-01-31 19:11:13 UTC (rev 21267)
@@ -32,14 +32,14 @@
       hlayout1->addWidget(pushUserIcon);
       hlayout1->addWidget(listUsers);
     vlayout->addLayout(hlayout1);
+      hlayout2->addWidget(pushViewPassword);   
       hlayout2->addWidget(linePassword);
-      hlayout2->addWidget(pushViewPassword);
     vlayout->addLayout(hlayout2);
   layout->addLayout(vlayout,0,0);
   layout->addWidget(pushLogin,0,1);
   //Setup the Signals/Slots
   connect(pushLogin,SIGNAL(clicked()),this,SLOT(slotTryLogin()));
-  connect(pushUserIcon,SIGNAL(triggered()), this, SLOT(slotUserActivated()));
+  connect(pushUserIcon,SIGNAL(triggered(QAction*)), this, SLOT(slotUserActivated(QAction*)));
   connect(pushViewPassword,SIGNAL(pressed()),this,SLOT(slotChangePWView()));
   connect(pushViewPassword,SIGNAL(released()),this,SLOT(slotChangePWView()));
   connect(listUsers,SIGNAL(activated(int)),this,SLOT(slotChooseUser(int)));
@@ -93,7 +93,7 @@
 //-------------------------------------
 //    PRIVATE SLOTS
 //-------------------------------------
-void LoginWidget::slotUserActivated(){
+void LoginWidget::slotUserActivated(QAction* act){
     //Toggle the user box as to what is visible
     if(!userSelected){ 
 	slotUserSelected(); 

Modified: pcbsd-projects/PCDM/loginWidget.h
===================================================================
--- pcbsd-projects/PCDM/loginWidget.h	2013-01-31 18:46:34 UTC (rev 21266)
+++ pcbsd-projects/PCDM/loginWidget.h	2013-01-31 19:11:13 UTC (rev 21267)
@@ -58,7 +58,7 @@
 	void updateWidget();
 
   private slots:
-	void slotUserActivated();
+	void slotUserActivated(QAction*);
 	void slotUserSelected();
 	void slotUserUnselected();
   	void slotTryLogin();



More information about the Commits mailing list