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

svn at pcbsd.org svn at pcbsd.org
Mon Jul 23 10:36:05 PDT 2012


Author: kris
Date: 2012-07-23 17:36:04 +0000 (Mon, 23 Jul 2012)
New Revision: 17883

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

Fix some text getting truncated on appcafe results



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2012-07-23 17:35:51 UTC (rev 17882)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2012-07-23 17:36:04 UTC (rev 17883)
@@ -1014,7 +1014,7 @@
 		  if(nn > 0){ //If there are Name Matches
 		    //Add a header for "Best Matches"
 		    QLabel *myLine = new QLabel( "<i><b>"+tr("Best Matches")+"</b></i>" );
-		    myLine->setFixedHeight(12);
+		    myLine->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
 		    layoutBrowser->addWidget(myLine);
 		    // Add a <hr> spacer
 		    QLabel *myLine2 = new QLabel();
@@ -1025,7 +1025,7 @@
 		}else if( nn!=0 && j==nn && j<nFound ){ //After the last Name match and more matches available
 		  //Add a header for  "Other Matches"
 		  QLabel *myLine = new QLabel( "<i><b>"+tr("Other Matches")+"</b></i>" );	
-		  myLine->setFixedHeight(12);
+		  myLine->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
 		  layoutBrowser->addWidget(myLine);
 		  // Add a <hr> spacer
 		  QLabel *myLine2 = new QLabel();



More information about the Commits mailing list