~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/qmlprojectmanager/qmlprojectplugin.cpp

  • Committer: Timo Jyrinki
  • Date: 2013-12-02 09:16:15 UTC
  • mfrom: (1.1.29)
  • Revision ID: timo.jyrinki@canonical.com-20131202091615-xbj1os1f604ber1m
New upstream release candidate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
    addAutoReleasedObject(new Internal::Manager);
68
68
    addAutoReleasedObject(new Internal::QmlProjectRunConfigurationFactory);
69
 
 
70
 
    Internal::QmlApplicationWizard::createInstances(this);
 
69
    addAutoReleasedObject(new Internal::QmlApplicationWizard);
71
70
 
72
71
    FileIconProvider::registerIconOverlayForSuffix(":/qmlproject/images/qmlproject.png", "qmlproject");
73
72
    return true;
77
76
{
78
77
}
79
78
 
80
 
void QmlProjectPlugin::showQmlObserverToolWarning()
81
 
{
82
 
    QMessageBox dialog(QApplication::activeWindow());
83
 
    QPushButton *qtPref = dialog.addButton(tr("Open Qt Versions"),
84
 
                                           QMessageBox::ActionRole);
85
 
    dialog.addButton(QMessageBox::Cancel);
86
 
    dialog.setDefaultButton(qtPref);
87
 
    dialog.setWindowTitle(tr("QML Observer Missing"));
88
 
    dialog.setText(tr("QML Observer could not be found for this Qt version."));
89
 
    dialog.setInformativeText(tr(
90
 
                                  "QML Observer is used to offer debugging features for "
91
 
                                  "Qt Quick UI projects in the Qt 4.7 series.\n\n"
92
 
                                  "To compile QML Observer, go to the Qt Versions page, "
93
 
                                  "select the current Qt version, "
94
 
                                  "and click Build in the Helpers section."));
95
 
    dialog.exec();
96
 
    if (dialog.clickedButton() == qtPref) {
97
 
        Core::ICore::showOptionsDialog(
98
 
                    ProjectExplorer::Constants::PROJECTEXPLORER_SETTINGS_CATEGORY,
99
 
                    QtSupport::Constants::QTVERSION_SETTINGS_PAGE_ID);
100
 
    }
101
 
}
102
 
 
103
79
} // namespace QmlProjectManager
104
80
 
105
81
Q_EXPORT_PLUGIN(QmlProjectManager::QmlProjectPlugin)