Added preview menu and shortcuts for qt quick (Ctrl+Alt+R)

This was needed since we cannot start stuff otherwise without a project

Task-number: BAUHAUS-450
Reviewed-by: kkoehne
This commit is contained in:
Lasse Holmstedt
2010-04-23 13:19:28 +02:00
parent 6b09a506ac
commit 21fbbc2c15
12 changed files with 156 additions and 5 deletions

View File

@@ -0,0 +1,34 @@
#ifndef QMLJSPREVIEWRUNNER_H
#define QMLJSPREVIEWRUNNER_H
#include <QObject>
#include <projectexplorer/applicationlauncher.h>
namespace QmlJSEditor {
namespace Internal {
class QmlJSPreviewRunner : public QObject
{
Q_OBJECT
public:
explicit QmlJSPreviewRunner(QObject *parent = 0);
void run(const QString &filename);
signals:
public slots:
private:
QString m_qmlViewerDefaultPath;
ProjectExplorer::ApplicationLauncher m_applicationLauncher;
};
} // namespace Internal
} // namespace QmlJSEditor
#endif // QMLJSPREVIEWRUNNER_H