Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QApplication::restoreOverrideCursor (  )  [static, inherited]

Undoes the last setOverrideCursor().

If setOverrideCursor() has been called twice, calling restoreOverrideCursor() will activate the first cursor set. Calling this function a second time restores the original widgets' cursors.

See also:
setOverrideCursor(), overrideCursor()

Definition at line 2512 of file qapplication_x11.cpp.

References QApplication::allWidgets(), QCoreApplication::closingDown(), QList< T >::constBegin(), QList< T >::constEnd(), QWidget::isWindow(), QWidget::testAttribute(), and QWidget::windowType().

Referenced by Q3DataTable::deleteCurrent(), Q3DataTable::eventFilter(), Q3DataTable::find(), Q3SqlCursorManager::findBuffer(), Q3DataTable::insertCurrent(), MainWindow::loadFile(), MainWindow::modelFromFile(), Q3FileDialog::rereadDir(), MainWindow::saveFile(), Q3DataTable::updateCurrent(), and Q3FileDialog::~Q3FileDialog().

{
    if (qApp->d_func()->cursor_list.isEmpty())
        return;
    qApp->d_func()->cursor_list.removeFirst();

    if (QWidgetPrivate::mapper != 0 && !closingDown()) {
        QWidgetList all = allWidgets();
        for (QWidgetList::ConstIterator it = all.constBegin(); it != all.constEnd(); ++it) {
            register QWidget *w = *it;
            if ((w->testAttribute(Qt::WA_SetCursor) || w->isWindow()) && (w->windowType() != Qt::Desktop))
                qt_x11_enforce_cursor(w);
        }
        XFlush(X11->display);
    }
}


Generated by  Doxygen 1.6.0   Back to index