Permalink
Browse files

Remove the debugging output from the new meta-file parser: it works g…

…reat now.

Also make sure that the search tab uses the short descriptions now when listing the apps.
  • Loading branch information...
1 parent ef47c85 commit 8d4e4d62164b4e298e484d504cabb24b21e7503c Ken Moore committed Nov 14, 2013
Showing with 1 addition and 4 deletions.
  1. +1 −1 src-qt4/pc-softwaremanager/mainUI.cpp
  2. +0 −3 src-qt4/pc-softwaremanager/pbiDBAccess.cpp
@@ -870,7 +870,7 @@ void MainUI::slotShowSearchResults(QStringList best, QStringList rest){
//Now fill the "best" section
clearScrollArea(ui->scroll_bsearch_best);
QVBoxLayout *layout = new QVBoxLayout;
- QStringList info; info << "name" << "description" << "icon";
+ QStringList info; info << "name" << "shortdescription" << "icon";
for(int i=0; i<best.length(); i++){
QStringList data = PBI->AppInfo(best[i],info);
if(!data.isEmpty()){
@@ -212,7 +212,6 @@ QStringList PBIDBAccess::parseAppMetaLine(QString line){
QStringList list = line.split(";");
//Format the output list
QStringList output;
- qDebug() << "Parse App Meta Line:" << line;
if(list.length() < 13){ return output;} //invalid line
output << list[0]; //NAME
output << list[1]; //CATEGORY
@@ -225,14 +224,12 @@ QStringList PBIDBAccess::parseAppMetaLine(QString line){
//Cleanup the description (try to format the text properly)
QStringList tmp = list[8].split("<br>");
for(int i=1; i<tmp.length(); i++){
- qDebug() << "Check description line:" << tmp[i-1] << QString::number(i);
tmp[i-1] = tmp[i-1].simplified();
if(tmp[i-1].isEmpty() || tmp[i].isEmpty() ){}
else if(tmp[i-1].endsWith(".") || tmp[i-1].endsWith(":") || tmp[i-1].endsWith(";") || tmp[i-1].endsWith("?") || tmp[i-1].endsWith("!") ){}
else if( tmp[i].startsWith("*") || tmp[i].startsWith("0") || tmp[i].startsWith("-") || tmp[i].startsWith("o ") ){}
else{
//Bad line break, combine it with the previous line
- qDebug() << "Bad line break:" << tmp[i-1] << "<br>" << tmp[i];
tmp[i-1].append(" "+tmp[i]);
tmp.removeAt(i);
i--;

0 comments on commit 8d4e4d6

Please sign in to comment.