Show proper cursor when displaying projectloadwizard

Task-number: QTCREATORBUG-1597
This commit is contained in:
Tobias Hunger
2010-06-08 16:58:40 +02:00
parent 2bb121df6f
commit b662312bdd

View File

@@ -43,6 +43,7 @@
#include <QtGui/QLabel> #include <QtGui/QLabel>
#include <QtGui/QVBoxLayout> #include <QtGui/QVBoxLayout>
#include <QtGui/QWizardPage> #include <QtGui/QWizardPage>
#include <QtGui/QApplication>
using namespace Qt4ProjectManager; using namespace Qt4ProjectManager;
using namespace Qt4ProjectManager::Internal; using namespace Qt4ProjectManager::Internal;
@@ -63,11 +64,14 @@ ProjectLoadWizard::ProjectLoadWizard(Qt4Project *project, QWidget *parent, Qt::W
// We used to simply call ::exec() on the dialog // We used to simply call ::exec() on the dialog
void ProjectLoadWizard::execDialog() void ProjectLoadWizard::execDialog()
{ {
if (!pageIds().isEmpty()) if (!pageIds().isEmpty()) {
QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor));
exec(); exec();
else QApplication::restoreOverrideCursor();
} else {
done(QDialog::Accepted); done(QDialog::Accepted);
} }
}
ProjectLoadWizard::~ProjectLoadWizard() ProjectLoadWizard::~ProjectLoadWizard()
{ {