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

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


Author: kenmoore
Date: 2013-02-15 16:47:05 +0000 (Fri, 15 Feb 2013)
New Revision: 21539

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
   pcbsd-projects/PCDM/themeStruct.cpp
Log:
Fix the login widget icon size issue (this should do it)



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-02-15 16:16:08 UTC (rev 21538)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-02-15 16:47:05 UTC (rev 21539)
@@ -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->setIcon(QIcon(iconFile));
+    pushUserIcon->setIconSize(iconSize);  	  
   }else if(button.toLower() == "login"){ 
-    pushLogin->defaultAction()->setIcon(QIcon(iconFile));
+    pushLogin->setIcon(QIcon(iconFile));
     pushLogin->setIconSize(iconSize);
   }else if(button.toLower() == "pwview"){ 
-    pushViewPassword->defaultAction()->setIcon(QIcon(iconFile));
-    pushViewPassword->resize(iconSize);
+    pushViewPassword->setIcon(QIcon(iconFile));
+    pushViewPassword->setIconSize(iconSize);
   }else{ 
     qDebug() << "LoginWidget: Cannot change the icon for button" << button << " - valid buttons are \"display\", \"login\", and \"pwview\""; 
   }

Modified: pcbsd-projects/PCDM/themeStruct.cpp
===================================================================
--- pcbsd-projects/PCDM/themeStruct.cpp	2013-02-15 16:16:08 UTC (rev 21538)
+++ pcbsd-projects/PCDM/themeStruct.cpp	2013-02-15 16:47:05 UTC (rev 21539)
@@ -193,7 +193,7 @@
   }else{
     ret = items[index].iconSize;
   }
-  qDebug() << "Theme:" << item << "Size:" << ret;
+  //qDebug() << "Theme:" << item << "Size:" << ret;
   return ret;
 }
 



More information about the Commits mailing list