Changeset 8d4e4d62


Ignore:
Timestamp:
11/14/13 10:51:41 (11 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
247c032
Parents:
ef47c85
Message:

Remove the debugging output from the new meta-file parser: it works great now.
Also make sure that the search tab uses the short descriptions now when listing the apps.

Location:
src-qt4/pc-softwaremanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/mainUI.cpp

    rd9f2085 r8d4e4d62  
    871871    clearScrollArea(ui->scroll_bsearch_best); 
    872872    QVBoxLayout *layout = new QVBoxLayout; 
    873     QStringList info; info << "name" << "description" << "icon"; 
     873    QStringList info; info << "name" << "shortdescription" << "icon"; 
    874874    for(int i=0; i<best.length(); i++){ 
    875875      QStringList data = PBI->AppInfo(best[i],info); 
  • src-qt4/pc-softwaremanager/pbiDBAccess.cpp

    ref47c85 r8d4e4d62  
    213213  //Format the output list 
    214214  QStringList output; 
    215   qDebug() << "Parse App Meta Line:" << line; 
    216215  if(list.length() < 13){ return output;} //invalid line 
    217216  output << list[0]; //NAME 
     
    226225  QStringList tmp = list[8].split("<br>"); 
    227226  for(int i=1; i<tmp.length(); i++){ 
    228     qDebug() << "Check description line:" << tmp[i-1] << QString::number(i); 
    229227    tmp[i-1] = tmp[i-1].simplified(); 
    230228    if(tmp[i-1].isEmpty() || tmp[i].isEmpty() ){} 
     
    233231    else{ 
    234232      //Bad line break, combine it with the previous line 
    235       qDebug() << "Bad line break:" << tmp[i-1] << "<br>" << tmp[i]; 
    236233      tmp[i-1].append(" "+tmp[i]); 
    237234      tmp.removeAt(i); 
Note: See TracChangeset for help on using the changeset viewer.