diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-09-13 12:38:01 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-09-13 10:50:40 +0000 |
commit | b385abfcc4e2a0cc889f76625405e97853f35986 (patch) | |
tree | 2be48cf96970bb3b96ac30b11635cd1e79551228 | |
parent | f32068b7ee62e25d41569c4bbbcf64768b97361d (diff) |
QmlDesigner: Fix telemetry popup
The import does not exist in Qt 5 and we changed the identifiers
for the views.
Change-Id: I76ebeaaff2c6798834bdd2d751fb971bb9253fff
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r-- | src/datasources/qmldesignerusageeventsource.cpp | 16 | ||||
-rw-r--r-- | src/ui/FeedbackPopup.qml | 1 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/datasources/qmldesignerusageeventsource.cpp b/src/datasources/qmldesignerusageeventsource.cpp index 00a614b..06fc090 100644 --- a/src/datasources/qmldesignerusageeventsource.cpp +++ b/src/datasources/qmldesignerusageeventsource.cpp @@ -138,9 +138,19 @@ void QmlDesignerUsageEventSource::handleUsageStatisticsUsageTimer(const QString it.value() = it.value().toInt() + elapsed; // Show the user feedback prompt after time limit is passed - static const QSet<QString> supportedViews {"Form Editor", "3D Editor", "Timeline", - "Transition Editor", "Curve Editor"}; - static const int timeLimit = 864'000'000; // 10 days + static const QSet<QString> supportedViews{"formEditor", + "3DEditor", + "statesEditor,", + "timeline", + "itemLibrary", + "assetsLibrary", + "transitionEditor", + "curveEditor", + "propertyEditor", + "textEditor", + "materialBrowser", + "navigatorView"}; + static const int timeLimit = 864'000'00; // 1 day if (supportedViews.contains(identifier) && !m_feedbackPoppedData[identifier].toBool() && m_timeData.value(identifier).toInt() >= timeLimit) { launchPopup(identifier); diff --git a/src/ui/FeedbackPopup.qml b/src/ui/FeedbackPopup.qml index 705c0ba..a8b5455 100644 --- a/src/ui/FeedbackPopup.qml +++ b/src/ui/FeedbackPopup.qml @@ -25,7 +25,6 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 -import QtQuick.Controls.Styles 1.4 import QtQuick.Window 2.15 Rectangle { |