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

svn at pcbsd.org svn at pcbsd.org
Fri Feb 15 08:16:08 PST 2013


Author: kenmoore
Date: 2013-02-15 16:16:08 +0000 (Fri, 15 Feb 2013)
New Revision: 21538

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
   pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Now try to fix the image sizing for the login widget



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-02-15 16:10:44 UTC (rev 21537)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-02-15 16:16:08 UTC (rev 21538)
@@ -176,14 +176,14 @@
 void LoginWidget::changeButtonIcon(QString button, QString iconFile, QSize iconSize){
   if(!QFile::exists(iconFile)){ qDebug() << "LoginWidget: invalid image file"<<iconFile; return; }
   if(button.toLower() == "display"){ 
+    pushUserIcon->defaultAction()->setIcon(QIcon(iconFile));
     pushUserIcon->resize(iconSize);  	  
-    pushUserIcon->defaultAction()->setIcon(QIcon(iconFile)); 
   }else if(button.toLower() == "login"){ 
+    pushLogin->defaultAction()->setIcon(QIcon(iconFile));
     pushLogin->setIconSize(iconSize);
-    pushLogin->defaultAction()->setIcon(QIcon(iconFile)); 
   }else if(button.toLower() == "pwview"){ 
+    pushViewPassword->defaultAction()->setIcon(QIcon(iconFile));
     pushViewPassword->resize(iconSize);
-    pushViewPassword->defaultAction()->setIcon(QIcon(iconFile)); 
   }else{ 
     qDebug() << "LoginWidget: Cannot change the icon for button" << button << " - valid buttons are \"display\", \"login\", and \"pwview\""; 
   }

Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-15 16:10:44 UTC (rev 21537)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-15 16:16:08 UTC (rev 21538)
@@ -152,7 +152,7 @@
     //loginW->setCurrentUser(); //set the previously used user
     //Set Icons from theme
     tmpIcon = currentTheme->itemIcon("login");
-    if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/right.png"; }
+    if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/next.png"; }
     loginW->changeButtonIcon("login",tmpIcon, currentTheme->itemIconSize("login"));
     tmpIcon = currentTheme->itemIcon("user");
     if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/user.png"; }



More information about the Commits mailing list