Commit d6c376e4 authored by Daniel Molkentin's avatar Daniel Molkentin

WelcomeScreen: Use QUrl for page location

Silences warning from QtDeclarative in Qt 4.8

Change-Id: Iabab0988408b040fd590ebccb24f7fb59614ac8b
Reviewed-on: http://codereview.qt.nokia.com/1014Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 31817e59
......@@ -36,6 +36,7 @@
#include <QtCore/QObject>
#include <QtCore/QMetaType>
#include <QtCore/QUrl>
#include "utils_global.h"
......@@ -52,14 +53,14 @@ class QTCREATOR_UTILS_EXPORT IWelcomePage : public QObject
Q_OBJECT
Q_PROPERTY(QString title READ title CONSTANT)
Q_PROPERTY(QString pageLocation READ pageLocation CONSTANT)
Q_PROPERTY(QUrl pageLocation READ pageLocation CONSTANT)
Q_PROPERTY(int priority READ priority CONSTANT)
public:
IWelcomePage();
virtual ~IWelcomePage();
virtual QString pageLocation() const = 0;
virtual QUrl pageLocation() const = 0;
virtual QString title() const = 0;
virtual int priority() const { return 0; }
virtual void facilitateQml(QDeclarativeEngine *) {}
......
......@@ -103,7 +103,7 @@ public:
ProjectWelcomePage();
void facilitateQml(QDeclarativeEngine *engine);
QString pageLocation() const { return Core::ICore::instance()->resourcePath() + QLatin1String("/welcomescreen/develop.qml"); }
QUrl pageLocation() const { return QUrl::fromLocalFile(Core::ICore::instance()->resourcePath() + QLatin1String("/welcomescreen/develop.qml")); }
QWidget *page() { return 0; }
QString title() const { return tr("Develop"); }
int priority() const { return 20; }
......
......@@ -56,7 +56,7 @@ class GettingStartedWelcomePage : public Utils::IWelcomePage
public:
GettingStartedWelcomePage();
QString pageLocation() const { return Core::ICore::instance()->resourcePath() + QLatin1String("/welcomescreen/gettingstarted.qml"); }
QUrl pageLocation() const { return QUrl::fromLocalFile(Core::ICore::instance()->resourcePath() + QLatin1String("/welcomescreen/gettingstarted.qml")); }
QString title() const { return tr("Getting Started");}
int priority() const { return 10; }
void facilitateQml(QDeclarativeEngine *);
......
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