VirtualBox

Changeset 62205 in vbox for trunk/src


Ignore:
Timestamp:
Jul 12, 2016 6:31:33 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Selector UI: No need for status-bar show/hide message hack which is not working properly.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r61333 r62205  
    16331633    /* Prepare graphics VM list: */
    16341634    m_pPaneChooser = new UIGChooser(this);
    1635     m_pPaneChooser->setStatusBar(statusBar());
    16361635
    16371636    /* Prepare graphics details: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.cpp

    r52730 r62205  
    4040    , m_pChooserModel(0)
    4141    , m_pChooserView(0)
    42     , m_pStatusBar(0)
    4342{
    4443    /* Prepare palette: */
     
    9089{
    9190    return m_pChooserModel->isAllItemsOfOneGroupSelected();
    92 }
    93 
    94 void UIGChooser::setStatusBar(QStatusBar *pStatusBar)
    95 {
    96     /* Old status-bar set? */
    97     if (m_pStatusBar)
    98        m_pChooserModel->disconnect(m_pStatusBar);
    99 
    100     /* Connect new status-bar: */
    101     m_pStatusBar = pStatusBar;
    102     connect(m_pChooserModel, SIGNAL(sigClearStatusMessage()),
    103             m_pStatusBar, SLOT(clearMessage()));
    104     connect(m_pChooserModel, SIGNAL(sigShowStatusMessage(const QString&)),
    105             m_pStatusBar, SLOT(showMessage(const QString&)));
    10691}
    10792
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.h

    r55401 r62205  
    7171    bool isAllItemsOfOneGroupSelected() const;
    7272
    73     /* API: Status-bar stuff: */
    74     void setStatusBar(QStatusBar *pStatusBar);
    75 
    7673    /* API: Group-saving stuff: */
    7774    bool isGroupSavingInProgress() const;
     
    9794    UIGChooserModel *m_pChooserModel;
    9895    UIGChooserView *m_pChooserView;
    99     QStatusBar *m_pStatusBar;
    10096};
    10197
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r60524 r62205  
    11441144}
    11451145
    1146 void UIGChooserModel::sltActionHovered(QAction *pAction)
    1147 {
    1148     emit sigShowStatusMessage(pAction->statusTip());
    1149 }
    1150 
    11511146void UIGChooserModel::sltEraseLookupTimer()
    11521147{
     
    12461241    m_pContextMenuMachine->addSeparator();
    12471242    m_pContextMenuMachine->addAction(actionPool()->action(UIActionIndexST_M_Machine_S_SortParent));
    1248 
    1249     connect(m_pContextMenuGroup, SIGNAL(hovered(QAction*)), this, SLOT(sltActionHovered(QAction*)));
    1250     connect(m_pContextMenuMachine, SIGNAL(hovered(QAction*)), this, SLOT(sltActionHovered(QAction*)));
    12511243
    12521244    connect(actionPool()->action(UIActionIndexST_M_Group_S_New), SIGNAL(triggered()),
     
    16691661        }
    16701662    }
    1671     /* Clear status-bar: */
    1672     emit sigClearStatusMessage();
    16731663}
    16741664
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.h

    r58446 r62205  
    6262signals:
    6363
    64     /* Notifiers: Status-bar stuff: */
    65     void sigShowStatusMessage(const QString &strStatusMessage);
    66     void sigClearStatusMessage();
    67 
    6864    /* Notifier: Current-item stuff: */
    6965    void sigSelectionChanged();
     
    196192    void sltCurrentDragObjectDestroyed();
    197193
    198     /* Handler: Context-menu stuff: */
    199     void sltActionHovered(QAction *pAction);
    200 
    201194    /* Handler: Item lookup stuff: */
    202195    void sltEraseLookupTimer();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette