forked from qt-creator/qt-creator
qmlpreview: add debugtranslation ui
action in the menu will only be shown if a QtStudio Qt is found qtversion.xml <value type="QString" key="overrideFeatures">QtStudio</value> - still have some issues with multiple file test runs so disable it for now - elideWarning is not tested Change-Id: I68c9f774a980b84cd4eea1595775fd01afa6f3cf Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -59,6 +59,7 @@ class QmlPreviewPlugin : public ExtensionSystem::IPlugin
|
||||
WRITE setFpsHandler NOTIFY fpsHandlerChanged)
|
||||
Q_PROPERTY(float zoomFactor READ zoomFactor WRITE setZoomFactor NOTIFY zoomFactorChanged)
|
||||
Q_PROPERTY(QString locale READ locale WRITE setLocale NOTIFY localeChanged)
|
||||
Q_PROPERTY(bool elideWarning READ elideWarning WRITE changeElideWarning NOTIFY elideWarningChanged)
|
||||
|
||||
public:
|
||||
~QmlPreviewPlugin() override;
|
||||
@@ -86,6 +87,9 @@ public:
|
||||
QString locale() const;
|
||||
void setLocale(const QString &locale);
|
||||
|
||||
bool elideWarning() const;
|
||||
void changeElideWarning(bool elideWarning);
|
||||
|
||||
signals:
|
||||
void checkDocument(const QString &name, const QByteArray &contents,
|
||||
QmlJS::Dialect::Enum dialect);
|
||||
@@ -100,6 +104,7 @@ signals:
|
||||
|
||||
void zoomFactorChanged(float zoomFactor);
|
||||
void localeChanged(const QString &locale);
|
||||
void elideWarningChanged(bool elideWarning);
|
||||
|
||||
private:
|
||||
class QmlPreviewPluginPrivate *d = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user