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

svn at pcbsd.org svn at pcbsd.org
Thu Mar 17 10:22:55 PDT 2011


Author: kris
Date: 2011-03-17 10:22:55 -0700 (Thu, 17 Mar 2011)
New Revision: 9707

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

Cleanup AppCafe main screen with a couple of groupboxes



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2011-03-17 16:27:55 UTC (rev 9706)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2011-03-17 17:22:55 UTC (rev 9707)
@@ -430,10 +430,12 @@
 	/*************************************************/
 	clickedWidget *hWidget = new clickedWidget(0, pbiRepos->getID(curRepo));
 	QGridLayout *hGrid = new QGridLayout();
+        /*
 	QLabel *hLabel = new QLabel();
 	hLabel->setText("<b> - Latest Releases - </b>");
 	hLabel->setAlignment(Qt::AlignHCenter);
 	hGrid->addWidget(hLabel, 0, 0);
+        */
 
 	// Display the widget of latest PBI icons
 	hGrid->addWidget(getLatestPBIWidget(curRepo), 1, 0);
@@ -441,14 +443,19 @@
 	// TODO, stylize this header a bit more
 	hGrid->setRowMinimumHeight(2, 20);
 
+        /*
 	QLabel *catHeader = new QLabel();
 	catHeader->setText("<b> - " + tr("Categories") + " - </b>");
 	catHeader->setAlignment(Qt::AlignHCenter);
 	hGrid->addWidget(catHeader, 3, 0);
+        */
 
 	hWidget->setLayout(hGrid);
 	layoutBrowser->addWidget(hWidget);
 
+	QGroupBox *catGroup = new QGroupBox();
+        catGroup->setTitle(tr("Application Categories"));
+	QVBoxLayout *catLayout = new QVBoxLayout();
 
 	// Build the display of categories
 	/*************************************************/
@@ -496,15 +503,19 @@
 
 		// Add the category to the main layout
 		catWidget->setLayout(grid1);
-		layoutBrowser->addWidget(catWidget);
+		catLayout->addWidget(catWidget);
 
 		// Add a <hr> spacer
 		QLabel *myLine = new QLabel();
 	   	myLine->setFrameStyle(QFrame::HLine);	
 		myLine->setFixedHeight(12);
-		layoutBrowser->addWidget(myLine);
+		catLayout->addWidget(myLine);
 	}
-	
+
+	// Add the category groupbox to our main layout
+ 	catGroup->setLayout(catLayout);	
+	layoutBrowser->addWidget(catGroup);
+
 	layoutBrowser->setAlignment(Qt::AlignTop);
 	myWidget->setLayout(layoutBrowser);
 	scrollAreaPBI->setWidget(myWidget);
@@ -929,7 +940,8 @@
 
 QWidget* PBM::getLatestPBIWidget(int curRepo)
 {
-	QWidget *latestWidget = new QWidget();
+	QGroupBox *latestWidget = new QGroupBox();
+        latestWidget->setTitle(tr("Latest Releases"));
 	QHBoxLayout *latestLayout = new QHBoxLayout();
 
 	QStringList latestApps = getLatestPBIs(6, pbiRepos->getID(curRepo));



More information about the Commits mailing list