Ignore:
Timestamp:
02/27/14 13:43:46 (16 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
6330d7c
Parents:
b6aabdf
Message:

minor cosmetic change to the visility of the category buttons in the AppCafe? Browser. Also show which category is being viewed when browsing a particular category.

File:
1 edited

Legend:

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

    r24f4449 r4e7809d  
    922922  //Now enable/disable the shortcut buttons 
    923923  ui->tool_browse_app->setVisible(false); 
    924   ui->tool_browse_cat->setVisible(true); 
    925   ui->tool_browse_gotocat->setVisible(false); 
     924  ui->tool_browse_cat->setVisible(false); 
     925  ui->tool_browse_gotocat->setVisible(true); 
     926  //Setup the icon/name for the category display 
    926927    QStringList catinfo = PBI->CatInfo(cat,QStringList() << "name" << "icon"); 
    927928    ui->tool_browse_cat->setText(catinfo[0]); 
     929    ui->label_cat_name->setText(catinfo[0]); 
    928930    if(catinfo[1].isEmpty()){ catinfo[1] = defaultIcon; } 
    929931    ui->tool_browse_cat->setIcon(QIcon(catinfo[1])); 
     932    ui->label_cat_icon->setPixmap( QPixmap(catinfo[1]).scaled(32,32) );  
     933  //Now move to the page 
    930934  ui->tabWidget->setCurrentWidget(ui->tab_browse); 
    931935  ui->stacked_browser->setCurrentWidget(ui->page_cat); 
     
    11561160  if(cCat == cat){ //already loaded - just show it (prevents resetting scroll positions) 
    11571161    ui->stacked_browser->setCurrentWidget(ui->page_cat); 
     1162    //Now enable/disable the shortcut buttons 
     1163    ui->tool_browse_app->setVisible(false); 
     1164    ui->tool_browse_cat->setVisible(false); 
     1165    ui->tool_browse_gotocat->setVisible(true); 
    11581166  }else{ //load and show the category 
    11591167    slotGoToCategory(cat); 
Note: See TracChangeset for help on using the changeset viewer.