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

svn at pcbsd.org svn at pcbsd.org
Fri Mar 30 07:29:38 PDT 2012


Author: kenmoore
Date: 2012-03-30 14:29:38 +0000 (Fri, 30 Mar 2012)
New Revision: 16100

Modified:
   pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
Log:
Fix a couple typo's in the AppCafe and clean up the display just a bit more. I think it is finished now.



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2012-03-30 13:59:30 UTC (rev 16099)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbibrowser.cpp	2012-03-30 14:29:38 UTC (rev 16100)
@@ -755,7 +755,7 @@
 			      arch = indexTmp.at(i).section(':', 1, 1); 
 			      ver = indexTmp.at(i).section(':', 2, 2); 
 			      date = indexTmp.at(i).section(':', 4, 4); 
-			      size = indexTmp.at(i).section(';', 7, 7);
+			      size = indexTmp.at(i).section(':', 7, 7);
 			      found = true;
 			      break;
 		            }
@@ -764,7 +764,7 @@
 			      arch = indexTmp.at(i).section(':', 1, 1); 
 			      ver = indexTmp.at(i).section(':', 2, 2); 
 			      date = indexTmp.at(i).section(':', 4, 4); 
-			      size = indexTmp.at(i).section(';', 7, 7);
+			      size = indexTmp.at(i).section(':', 7, 7);
 			      found = true;
 			    }
 			  }
@@ -990,12 +990,22 @@
 		    QLabel *myLine = new QLabel( "<i><b>"+tr("Best Matches")+"</b></i>" );
 		    myLine->setFixedHeight(12);
 		    layoutBrowser->addWidget(myLine);
+		    // Add a <hr> spacer
+		    QLabel *myLine2 = new QLabel();
+	   	    myLine2->setFrameStyle(QFrame::HLine);	
+		    myLine2->setFixedHeight(12);
+		    layoutBrowser->addWidget(myLine2);
 		  }
-		}else if( nn!=0 && j==nn && j<(nFound-1) ){ //After the last Name match and more matches available
+		}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);
 		  layoutBrowser->addWidget(myLine);
+		  // Add a <hr> spacer
+		  QLabel *myLine2 = new QLabel();
+	   	  myLine2->setFrameStyle(QFrame::HLine);	
+		  myLine2->setFixedHeight(12);
+		  layoutBrowser->addWidget(myLine2);
 		}
 		
 		// Create the first horizontal box with icon / name



More information about the Commits mailing list