QmlDesigner: Indicate PROJECTSTORAGE status in the window title

Temporarily append "(PROJECTSTORAGE)" to the window title to help
testers identify whether the feature is enabled. This is necessary
because PROJECTSTORAGE is toggled on and off between snapshots to
allow developers time to address issues.

Change-Id: I993bb7f35fac37397441f807be70b877ccddbe8c
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Tim Jenssen
2025-03-18 18:21:25 +01:00
parent face3a6ece
commit ab81767b46

View File

@@ -260,6 +260,11 @@ QmlDesignerPlugin::~QmlDesignerPlugin()
////////////////////////////////////////////////////
bool QmlDesignerPlugin::initialize(const QStringList & /*arguments*/, QString * /*errorMessage*/)
{
#ifdef QDS_USE_PROJECTSTORAGE
auto specialSnapshotName = QGuiApplication::applicationDisplayName() + "(PROJECTSTORAGE)";
QGuiApplication::setApplicationDisplayName(specialSnapshotName);
#endif
if constexpr (isUsingQmlDesignerLite()) {
if (!QmlDesignerBasePlugin::isLiteModeEnabled()) {
QMessageBox::warning(Core::ICore::dialogParent(),
@@ -642,6 +647,7 @@ void QmlDesignerPlugin::enforceDelayedInitialize()
return (p / postfix).toFSPathString();
});
#ifndef QDS_USE_PROJECTSTORAGE
MetaInfo::initializeGlobal(pluginPaths, d->externalDependencies);
#endif