diff options
author | Daniel Molkentin <daniel.molkentin@nokia.com> | 2011-07-01 16:08:21 +0200 |
---|---|---|
committer | Daniel Molkentin <daniel.molkentin@nokia.com> | 2011-07-01 16:17:31 +0200 |
commit | 7f2af785f9d4877fa3490f276e5fc2b55853a5e5 (patch) | |
tree | dd19e1c3524657da49d2d37d14a7e0255d0ddc1a /src/plugins/welcome | |
parent | f6e4ef380bac35ae957633ef2e86cfaf59228225 (diff) | |
download | qt-creator-7f2af785f9d4877fa3490f276e5fc2b55853a5e5.tar.gz |
Welcome Screen: Don't try to load FDO icons when not on linux
Change-Id: I5bfaf78dddb27c42ad515f9506857dace571efd4
Reviewed-on: http://codereview.qt.nokia.com/1009
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
Diffstat (limited to 'src/plugins/welcome')
-rw-r--r-- | src/plugins/welcome/welcomeplugin.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index d4ef9148bb..0196bda808 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -97,6 +97,8 @@ public: void initPlugins(); int activePlugin() const { return m_activePlugin; } + Q_SCRIPTABLE QString platform() const; + public slots: void sendFeedback(); void newProject(); @@ -195,6 +197,21 @@ void WelcomeMode::initPlugins() QUrl::fromLocalFile(Core::ICore::instance()->resourcePath() + "/welcomescreen/welcomescreen.qml")); } +QString WelcomeMode::platform() const +{ +#if defined(Q_OS_WIN) + return QLatin1String("windows"); +#elif defined(Q_OS_MAC) + return QLatin1String("mac"); +#elif defined(Q_OS_LINUX) + return QLatin1String("linux"); +#elif defined(Q_OS_UNIX) + return QLatin1String("unix"); +#else + return QLatin1String("other") +#endif +} + void WelcomeMode::welcomePluginAdded(QObject *obj) { if (Utils::IWelcomePage *plugin = qobject_cast<Utils::IWelcomePage*>(obj)) { |