[PC-BSD Commits] r17270 - pcbsd/current/src-qt4/pc-softwaremanager
svn at pcbsd.org
svn at pcbsd.org
Wed Jun 13 11:58:19 PDT 2012
Author: kris
Date: 2012-06-13 18:58:18 +0000 (Wed, 13 Jun 2012)
New Revision: 17270
Modified:
pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
Log:
Improve AppCafe homescreen with some better fonts / HR line
Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp 2012-06-13 18:24:45 UTC (rev 17269)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp 2012-06-13 18:58:18 UTC (rev 17270)
@@ -453,10 +453,22 @@
layoutBrowser->addWidget(getLatestPBIWidget(curRepo));
+ // Add a <hr> spacer
+ QLabel *mSep = new QLabel();
+ mSep->setFrameStyle(QFrame::HLine);
+ mSep->setFixedHeight(12);
+ layoutBrowser->addWidget(mSep);
+
+
// Build the display of categories
/*************************************************/
QGroupBox *catGroup = new QGroupBox();
catGroup->setTitle(tr("Application Categories"));
+ QFont stdFont = catGroup->font();
+ QFont boldFont = catGroup->font();
+ boldFont.setBold(true);
+ stdFont.setBold(false);
+ catGroup->setFont(boldFont);
QVBoxLayout *catLayout = new QVBoxLayout();
int cTot = pbiCats->count();
@@ -467,6 +479,7 @@
// Create the first horizontal box with icon / name
clickedWidget *catWidget = new clickedWidget(0, pbiCats->getName(i));
+ catWidget->setFont(stdFont);
QGridLayout *grid1 = new QGridLayout();
grid1->setAlignment(Qt::AlignTop);
@@ -492,6 +505,7 @@
// Create the category description
QLabel *cDesc = new QLabel(pbiCats->getDesc(i));
+ cDesc->setFont(stdFont);
cDesc->setAlignment(Qt::AlignLeft);
cDesc->setWordWrap(true);
cDesc->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
@@ -1162,13 +1176,20 @@
{
QGroupBox *latestWidget = new QGroupBox();
latestWidget->setTitle(tr("Latest Releases"));
+ QFont stdFont = latestWidget->font();
+ QFont boldFont = latestWidget->font();
+ boldFont.setBold(true);
+ stdFont.setBold(false);
+ latestWidget->setFont(boldFont);
QHBoxLayout *latestLayout = new QHBoxLayout();
QStringList latestApps = getLatestPBIs(4, pbiRepos->getID(curRepo));
for ( int i = 0; i < latestApps.length(); i++) {
clickedWidget *lWidget = new clickedWidget(0, latestApps.at(i));
+ lWidget->setFont(stdFont);
QVBoxLayout *iLayout = new QVBoxLayout();
iLayout->setAlignment(Qt::AlignCenter);
+ lWidget->setFont(stdFont);
// Find the correct PBI we are working on
for ( int z = 0; z < pbiAvail->count(); z++ ) {
@@ -1191,6 +1212,7 @@
iLayout->addWidget(sWidget);
QLabel *pLabel = new QLabel();
+ pLabel->setFont(stdFont);
pLabel->setAlignment(Qt::AlignCenter);
pLabel->setText(pbiAvail->getName(z) + " " + pbiAvail->getVer(z));
iLayout->addWidget(pLabel);
More information about the Commits
mailing list