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

svn at pcbsd.org svn at pcbsd.org
Thu Sep 6 12:22:33 PDT 2012


Author: kris
Date: 2012-09-06 19:22:32 +0000 (Thu, 06 Sep 2012)
New Revision: 18927

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

Fix annoying issue with AppCafe, get rid of blank space at bottom of scroll area



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2012-09-06 17:00:47 UTC (rev 18926)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2012-09-06 19:22:32 UTC (rev 18927)
@@ -530,9 +530,9 @@
 	// Add the category groupbox to our main layout
  	catGroup->setLayout(catLayout);	
 
+	layoutBrowser->addWidget(catGroup);
 	layoutBrowser->setAlignment(Qt::AlignTop);
-	layoutBrowser->insertSpacing(-1, 10);
-	layoutBrowser->addWidget(catGroup);
+        
 
 	myWidget->setLayout(layoutBrowser);
 	addBrowseWidget(myWidget);
@@ -1293,12 +1293,12 @@
 void PBM::addBrowseWidget(QWidget *bwid)
 {
         QScrollArea *scrollAreaPBI = new QScrollArea();
-	scrollAreaPBI->setAlignment(Qt::AlignHCenter);
+	//scrollAreaPBI->setAlignment(Qt::AlignHCenter);
 	bwid->setMinimumSize(570, 300);
-	bwid->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
+	//bwid->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
 	scrollAreaPBI->setWidget(bwid);
+        scrollAreaPBI->setWidgetResizable(true);
 
-
 	// Only keep 30 pages in history
 	if ( browseStack->count() > 30 )
 		if ( browseStack->widget(0) != 0)



More information about the Commits mailing list