forked from qt-creator/qt-creator
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:
34
src/plugins/qmljseditor/qmljspreviewrunner.h
Normal file
34
src/plugins/qmljseditor/qmljspreviewrunner.h
Normal 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
|
||||
Reference in New Issue
Block a user