Changeset 97f4aeb


Ignore:
Timestamp:
01/09/14 01:09:57 (15 months ago)
Author:
yurkis <yurkis@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
9bcb76a
Parents:
f353da8
Message:

Add 'Return to host' button to JailIndicator?. Thanks Dru for report. May close #905

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

Legend:

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

    r43257ed r97f4aeb  
    1818    ui->jailNameLabel->setText(name); 
    1919} 
     20 
     21void JailIndicator::on_returnToHostBtn_clicked() 
     22{ 
     23    emit (returnToHost()); 
     24} 
  • src-qt4/pc-updatecenter/jailindicator.h

    r43257ed r97f4aeb  
    1717 
    1818    void setJailName(QString name); 
     19 
     20signals: 
     21    void returnToHost(); 
    1922     
     23private slots: 
     24    void on_returnToHostBtn_clicked(); 
     25 
    2026private: 
    2127    Ui::JailIndicator *ui; 
  • src-qt4/pc-updatecenter/jailindicator.ui

    r43257ed r97f4aeb  
    88    <y>0</y> 
    99    <width>398</width> 
    10     <height>44</height> 
     10    <height>50</height> 
    1111   </rect> 
    1212  </property> 
     
    7676    </spacer> 
    7777   </item> 
     78   <item> 
     79    <widget class="QPushButton" name="returnToHostBtn"> 
     80     <property name="text"> 
     81      <string>Return to host</string> 
     82     </property> 
     83    </widget> 
     84   </item> 
    7885  </layout> 
    7986 </widget> 
  • src-qt4/pc-updatecenter/mainwindow.cpp

    ra44224a r97f4aeb  
    152152            this, SLOT(globalStateChanged(CAbstractUpdateController::EUpdateControllerState))); 
    153153 
     154    connect(ui->jailIndicatorWidget, SIGNAL(returnToHost()), 
     155            this, SLOT(slotReturnToHost())); 
     156 
    154157 
    155158    ui->mainStatesStack->setCurrentIndex(MAIN_INDICATORS_IDX); 
     
    284287 
    285288/////////////////////////////////////////////////////////////////////////////// 
     289void MainWindow::slotReturnToHost() 
     290{ 
     291    mJail.setJailEnabled(false); 
     292    jailRefresh(); 
     293} 
     294 
     295/////////////////////////////////////////////////////////////////////////////// 
    286296void MainWindow::on_updateAllButton_clicked() 
    287297{ 
  • src-qt4/pc-updatecenter/mainwindow.h

    r136fa80 r97f4aeb  
    6969 
    7070    void globalStateChanged(CAbstractUpdateController::EUpdateControllerState new_state); 
     71    void slotReturnToHost(); 
    7172 
    7273private slots: 
     
    8182    void on_actionJail_triggered(); 
    8283    void on_actionSystem_branches_triggered(); 
    83     void on_actionUpdate_set_triggered(); 
     84    void on_actionUpdate_set_triggered();    
    8485}; 
    8586 
Note: See TracChangeset for help on using the changeset viewer.