[PC-BSD Commits] r18928 - pcbsd/current/src-qt4/pc-softwaremanager

svn at pcbsd.org svn at pcbsd.org
Thu Sep 6 12:30:03 PDT 2012


Author: kris
Date: 2012-09-06 19:30:03 +0000 (Thu, 06 Sep 2012)
New Revision: 18928

Modified:
   pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
Log:

While here, set some transparencies on items inside a QGroupBox, so you
can't see a white background on text / icons if you change your QT theme to
something which messes with QGroupBox colors



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2012-09-06 19:22:32 UTC (rev 18927)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2012-09-06 19:30:03 UTC (rev 18928)
@@ -491,6 +491,7 @@
 		cIconLabel->setMinimumSize(48,48);
 		cIconLabel->setMaximumSize(48,48);
 		cIconLabel->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+		cIconLabel->setStyleSheet("background-color: transparent;");
 		grid1->addWidget(cIconLabel, 0, 0, 2, 1);
 
 		// Create the category title
@@ -501,6 +502,7 @@
 		titleFont.setBold(true);
 		cLabel->setFont(titleFont);
 		cLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
+		cLabel->setStyleSheet("background-color: transparent;");
 		grid1->addWidget(cLabel, 0, 1);
 
 		// Create the category description
@@ -509,6 +511,7 @@
 		cDesc->setAlignment(Qt::AlignLeft);
 		cDesc->setWordWrap(true);
 		cDesc->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
+		cDesc->setStyleSheet("background-color: transparent;");
 		grid1->addWidget(cDesc, 1, 1);
 
 
@@ -524,6 +527,7 @@
 		QLabel *myLine = new QLabel();
 	   	myLine->setFrameStyle(QFrame::HLine);	
 		myLine->setFixedHeight(12);
+		myLine->setStyleSheet("background-color: transparent;");
 		catLayout->addWidget(myLine);
 	}
 
@@ -1207,14 +1211,17 @@
 			pIconLabel->setMaximumSize(32,32);
 			pIconLabel->setAlignment(Qt::AlignCenter);
 			pIconLabel->setToolTip(pbiAvail->getName(z) + " " + pbiAvail->getVer(z));
+		        pIconLabel->setStyleSheet("background-color: transparent;");
 			sLayout->addWidget(pIconLabel, 0, 0);
 		        sWidget->setLayout(sLayout);
+		        sWidget->setStyleSheet("background-color: transparent;");
 			iLayout->addWidget(sWidget);
 
 			QLabel *pLabel = new QLabel();
 			pLabel->setFont(stdFont);
 			pLabel->setAlignment(Qt::AlignCenter);
 			pLabel->setText(pbiAvail->getName(z) + " " + pbiAvail->getVer(z));
+		        pLabel->setStyleSheet("background-color: transparent;");
 			iLayout->addWidget(pLabel);
 		}
 		lWidget->setLayout(iLayout);



More information about the Commits mailing list