aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlpreview/qmlpreviewruncontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmlpreview/qmlpreviewruncontrol.h')
-rw-r--r--src/plugins/qmlpreview/qmlpreviewruncontrol.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugins/qmlpreview/qmlpreviewruncontrol.h b/src/plugins/qmlpreview/qmlpreviewruncontrol.h
index 38740b31a3..c5171e2248 100644
--- a/src/plugins/qmlpreview/qmlpreviewruncontrol.h
+++ b/src/plugins/qmlpreview/qmlpreviewruncontrol.h
@@ -32,14 +32,22 @@
namespace QmlPreview {
+struct QmlPreviewRunnerSetting {
+ ProjectExplorer::RunControl *runControl = nullptr;
+ QmlPreviewFileLoader fileLoader;
+ QmlPreviewFileClassifier fileClassifier;
+ QmlPreviewFpsHandler fpsHandler;
+ float zoom = 1.0;
+ QString language;
+ bool translationElideWarning = false;
+};
+
class QmlPreviewRunner : public ProjectExplorer::RunWorker
{
Q_OBJECT
public:
- QmlPreviewRunner(ProjectExplorer::RunControl *runControl, QmlPreviewFileLoader fileLoader,
- QmlPreviewFileClassifier fileClassifier, QmlPreviewFpsHandler fpsHandler,
- float initialZoom);
+ QmlPreviewRunner(const QmlPreviewRunnerSetting &settings);
void setServerUrl(const QUrl &serverUrl);
QUrl serverUrl() const;