forked from qt-creator/qt-creator
qmlpreview: prepare plugin to have an external client
- export the plugin andd add client creator API to be able to implement external debugtranslationclients - use the private/qqmldebugtranslationprotocol_p.h from Qt5::QmlDebugPrivate - have a basic client implementation which cares about changing language - remove out of date elide warning implementation - remove old ui - remove the menu entry The old client implementation is incompatible with the will be introduced service and there was never an officially released compatible service. Therefore we can remove the old client implementation without causing any harm. Change-Id: I26b5e8a99ba30ae6377443b3fffb05901b1cac28 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -39,7 +39,7 @@ struct QmlPreviewRunnerSetting {
|
||||
QmlPreviewFpsHandler fpsHandler;
|
||||
float zoom = 1.0;
|
||||
QString language;
|
||||
bool translationElideWarning = false;
|
||||
QmlDebugTranslationClientCreator createDebugTranslationClientMethod;
|
||||
};
|
||||
|
||||
class QmlPreviewRunner : public ProjectExplorer::RunWorker
|
||||
@@ -59,7 +59,6 @@ signals:
|
||||
void zoom(float zoomFactor);
|
||||
void rerun();
|
||||
void ready();
|
||||
void changeElideWarning(bool elideWarning);
|
||||
private:
|
||||
void start() override;
|
||||
void stop() override;
|
||||
|
||||
Reference in New Issue
Block a user