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

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


Author: kenmoore
Date: 2013-01-31 19:55:24 +0000 (Thu, 31 Jan 2013)
New Revision: 21271

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
Log:
Fix up the qlineargradient in the new login widget



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-01-31 19:18:49 UTC (rev 21270)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-01-31 19:55:24 UTC (rev 21271)
@@ -203,10 +203,10 @@
 
 void LoginWidget::setBackgroundFade(bool verticalFade, int percentfade, QString colorTL, QString colorBR){
   //Set the background fade for the widget
-  QString style = "QGroupBox {background-color: qlineargradient(x1: 0, y1: 0, x2: %h, y2: %v, stop: 0 %c1, stop 1: %c2) }";
+  QString style = "QGroupBox { background-color: qlineargradient(x1: 0, y1: 0, x2: %h, y2: %v, stop: 0 %c1, stop: 1 %c2); }";
   if(percentfade >100){ percentfade = 100; }
   if(percentfade < 0){percentfade = 0; }
-  double fade = percentfade/10.0;
+  double fade = percentfade/100.0;
   if(verticalFade){
     style.replace("%h","0");
     style.replace("%v",QString::number(fade) );



More information about the Commits mailing list