Changeset 2495 in vbox
- Timestamp:
- May 4, 2007 12:57:03 PM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h
r2493 r2495 150 150 void activateSFMenu(); 151 151 152 void statusTipChanged (const QString &); 153 void clearStatusBar(); 154 152 155 void showIndicatorContextMenu (QIStateIndicator *ind, QContextMenuEvent *e); 153 156 … … 219 222 int devicesVRDPMenuSeparatorId; 220 223 int devicesSFMenuSeparatorId; 224 225 bool waitForStatusBarChange; 226 bool statusBarChangedInside; 221 227 222 228 #ifdef VBOX_WITH_DEBUGGER_GUI -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r2493 r2495 559 559 connect (devicesNetworkMenu, SIGNAL(aboutToShow()), this, SLOT(prepareNetworkMenu())); 560 560 561 connect (statusBar(), SIGNAL(messageChanged (const QString &)), this, SLOT(statusTipChanged (const QString &))); 562 561 563 connect (devicesMountFloppyMenu, SIGNAL(activated(int)), this, SLOT(captureFloppy(int))); 562 564 connect (devicesMountDVDMenu, SIGNAL(activated(int)), this, SLOT(captureDVD(int))); … … 577 579 * is constructed of dynamic items only) */ 578 580 connect (devicesMountFloppyMenu, SIGNAL (aboutToHide()), 579 statusBar(), SLOT (clear()));581 this, SLOT (clearStatusBar())); 580 582 connect (devicesMountDVDMenu, SIGNAL (aboutToHide()), 581 statusBar(), SLOT (clear()));583 this, SLOT (clearStatusBar())); 582 584 connect (devicesNetworkMenu, SIGNAL (aboutToHide()), 583 statusBar(), SLOT (clear()));585 this, SLOT (clearStatusBar())); 584 586 585 587 connect (helpWebAction, SIGNAL (activated()), … … 1057 1059 { 1058 1060 StatusTipEvent *ev = (StatusTipEvent*) e; 1059 ((QMainWindow*)this)->statusBar()->message (ev->mTip);1061 statusBar()->message (ev->mTip); 1060 1062 break; 1061 1063 } … … 2212 2214 StatusTipEvent *ev = new StatusTipEvent (tip); 2213 2215 QApplication::postEvent (this, ev); 2214 } 2216 waitForStatusBarChange = true; 2217 } 2218 } 2219 2220 void VBoxConsoleWnd::statusTipChanged (const QString & /*aMes*/) 2221 { 2222 statusBarChangedInside = waitForStatusBarChange; 2223 waitForStatusBarChange = false; 2224 } 2225 2226 void VBoxConsoleWnd::clearStatusBar() 2227 { 2228 if (statusBarChangedInside) 2229 statusBar()->clear(); 2215 2230 } 2216 2231
Note:
See TracChangeset
for help on using the changeset viewer.