Changeset 3dec5de


Ignore:
Timestamp:
11/15/13 01:22:32 (10 months ago)
Author:
yurkis <yurkis@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
2c537e8
Parents:
b913d3a
Message:

Misc. changes

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

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-updatecenter/indicatorwidget.cpp

    r5c7262b r3dec5de  
    3838    connect(mpUC, SIGNAL(progress(CAbstractUpdateController::SProgress)), 
    3939            this, SLOT(progress(CAbstractUpdateController::SProgress))); 
     40    connect(mpUC, SIGNAL(updateError(QString)), 
     41            this, SLOT(updateError(QString))); 
    4042 
    4143    connect(ui->checkButton, SIGNAL(clicked()), mpUC, SLOT(check())); 
     
    6870            break; 
    6971 
     72         case CAbstractUpdateController::eUPDATING_ERROR: 
     73            onUpdateError(); 
     74 
    7075        default: 
    7176            //FIXME: Error maybe? 
     
    8691 
    8792    ui->stateImage->setPixmap(QPixmap(pict_name)); 
     93} 
     94 
     95void IndicatorWidget::updateError(QString message) 
     96{ 
     97    ui->msgLabel->setText(message); 
    8898} 
    8999 
     
    132142    ui->msgLabel->setText(tr("Preparing update...")); 
    133143} 
     144 
     145void IndicatorWidget::onUpdateError() 
     146{ 
     147    ui->progress->setVisible(false); 
     148    ui->cancelButton->setVisible(false); 
     149    ui->checkButton->setVisible(true); 
     150    ui->installButton->setVisible(false); 
     151} 
  • src-qt4/pc-updatecenter/indicatorwidget.h

    rd6e137b r3dec5de  
    2626    void stateChanged(CAbstractUpdateController::EUpdateControllerState new_state); 
    2727    void progress(CAbstractUpdateController::SProgress progress); 
     28    void updateError(QString message); 
    2829 
    2930protected: 
     
    3233    void onFullyUpdated(); 
    3334    void onUpdateProgress(); 
     35    void onUpdateError(); 
    3436 
    3537protected: 
Note: See TracChangeset for help on using the changeset viewer.