Changeset 35516 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 13, 2011 9:42:47 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.cpp
r34479 r35516 51 51 int cMinDuration /* = 2000 */, 52 52 QWidget *pParent /* = 0 */) 53 // : QIDialog(aParent, Qt::Sheet | Qt::MSWindowsFixedSizeDialogHint | Qt::WindowTitleHint)54 53 : QIDialog(pParent, Qt::MSWindowsFixedSizeDialogHint | Qt::WindowTitleHint) 55 54 , m_progress(progress) … … 152 151 int id = startTimer(cRefreshInterval); 153 152 154 /* Set busy cursor */ 155 QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); 153 /* Set busy cursor. 154 * We don't do this on the Mac, cause regarding the design rules of 155 * Apple there is no busy window behavior. A window should always be 156 * responsive and is it in our case (We show the progress dialog bar). */ 157 #ifndef Q_WS_MAC 158 if (m_fCancelEnabled) 159 QApplication::setOverrideCursor(QCursor(Qt::BusyCursor)); 160 else 161 QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); 162 #endif /* Q_WS_MAC */ 156 163 157 164 /* Enter the modal loop, but don't show the window immediately */ … … 161 168 killTimer(id); 162 169 170 #ifndef Q_WS_MAC 171 /* Reset the busy cursor */ 163 172 QApplication::restoreOverrideCursor(); 173 #endif /* Q_WS_MAC */ 164 174 165 175 return result();
Note:
See TracChangeset
for help on using the changeset viewer.