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

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


Author: kenmoore
Date: 2013-01-31 19:16:34 +0000 (Thu, 31 Jan 2013)
New Revision: 21269

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
   pcbsd-projects/PCDM/loginWidget.h
   pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Also get the new color option for PCDM login widget working



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-01-31 19:11:49 UTC (rev 21268)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-01-31 19:16:34 UTC (rev 21269)
@@ -190,7 +190,7 @@
   }
 }
 
-void LoginWidget::setStyleSheet(QString item, QString style){
+void LoginWidget::changeStyleSheet(QString item, QString style){
   //Propagate the style sheet to both the buttons and the iconViewer
   if(item.toLower()=="login"){ pushLogin->setStyleSheet(style); }
   else if(item.toLower()=="pwview"){ pushViewPassword->setStyleSheet(style); }
@@ -216,8 +216,8 @@
   }
   style.replace("%c1",colorTL);
   style.replace("%c2",colorBR);
-  qDebug() << "LoginWidget: background stylesheet:" << style;
-  //this->setStyleSheet( style );
+  //qDebug() << "LoginWidget: background stylesheet:" << style;
+  this->setStyleSheet( style );
 }
 
 void LoginWidget::retranslateUi(){

Modified: pcbsd-projects/PCDM/loginWidget.h
===================================================================
--- pcbsd-projects/PCDM/loginWidget.h	2013-01-31 19:11:49 UTC (rev 21268)
+++ pcbsd-projects/PCDM/loginWidget.h	2013-01-31 19:16:34 UTC (rev 21269)
@@ -38,7 +38,7 @@
 	//Manually set the "back" (up/left) and "forward" (down/right) button icons
 	void changeButtonIcon(QString button, QString iconFile);
 	//Change the style sheet for all widget items (see QtStyle options for more)
-	void setStyleSheet(QString item, QString style);
+	void changeStyleSheet(QString item, QString style);
         
         void keyPressEvent(QKeyEvent *e);
 	void setBackgroundFade(bool verticalFade, int percentfade, QString colorTL, QString colorBR);

Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-01-31 19:11:49 UTC (rev 21268)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-01-31 19:16:34 UTC (rev 21269)
@@ -104,10 +104,11 @@
     loginW->changeButtonIcon("display",Theme::objectIconPath("user"));
     loginW->changeButtonIcon("pwview",Theme::objectIconPath("password"));
     //Set style sheets
-    loginW->setStyleSheet("login", Theme::objectStyleSheet("login"));
-    loginW->setStyleSheet("password", Theme::objectStyleSheet("password"));
-    loginW->setStyleSheet("pwview", Theme::objectStyleSheet("password"));
-    loginW->setStyleSheet("user", Theme::objectStyleSheet("user"));
+    loginW->changeStyleSheet("login", Theme::objectStyleSheet("login"));
+    loginW->changeStyleSheet("password", Theme::objectStyleSheet("password"));
+    loginW->changeStyleSheet("pwview", Theme::objectStyleSheet("password"));
+    loginW->changeStyleSheet("user", Theme::objectStyleSheet("user"));
+    loginW->setBackgroundFade(true,100,"blue","transparent");
     //Add item to the grid
     grid->addWidget( loginW, Theme::objectLocationRow("login"), \
                       Theme::objectLocationColumn("login"), \



More information about the Commits mailing list