From aef1954bcf1739a5799907b91f8530f68da4115e Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 10 Feb 2022 23:30:08 +0100 Subject: [PATCH] Tracing: Fix flame graph combobox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By using another style. Also icrease the combobox width from the implicit 120px to 260px, because the new style needs more space, and would cut off text. When we drop Qt 5 support, we can use implicitContentWidthPolicy for that. Fixes: QTCREATORBUG-27041 Change-Id: I438f64083c10f192125e0414640ad0b7eef2970c Reviewed-by: Robert Löhning --- src/libs/tracing/qml/FlameGraphView.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/tracing/qml/FlameGraphView.qml b/src/libs/tracing/qml/FlameGraphView.qml index e91c73561ca..488adaa3733 100644 --- a/src/libs/tracing/qml/FlameGraphView.qml +++ b/src/libs/tracing/qml/FlameGraphView.qml @@ -28,6 +28,7 @@ import QtCreator.Tracing 1.0 import QtQml 2.2 import QtQuick 2.9 import QtQuick.Controls 2.3 +import QtQuick.Controls.Material 2.3 ScrollView { id: root @@ -315,6 +316,7 @@ ScrollView { ComboBox { id: modesMenu + width: 260 // TODO: Use implicitContentWidthPolicy (Qt6-only) x: flickable.width - width y: flickable.contentY model: root.modes.map(function(role) { return root.trRoleNames[role] });