Commit b662312b authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Show proper cursor when displaying projectloadwizard

Task-number: QTCREATORBUG-1597
parent 2bb121df
...@@ -43,6 +43,7 @@ ...@@ -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,10 +64,13 @@ ProjectLoadWizard::ProjectLoadWizard(Qt4Project *project, QWidget *parent, Qt::W ...@@ -63,10 +64,13 @@ 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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment