From f3a2de02a4669b8ec9d517bee141c5cb43972501 Mon Sep 17 00:00:00 2001 From: Mark Janes Date: Mon, 4 Dec 2017 17:19:53 -0800 Subject: MainWin: Fix incorrect height scaling of search window for HiDPI The RefreshControl lacked a height setting, causing the main window to miscalculate the pixels needed to display the control. The height was hardcoded to work around this issue, clipping the control on HiDPI displays. --- retrace/daemon/ui/qml/RefreshControl.qml | 1 + retrace/daemon/ui/qml/mainwin.qml | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/retrace/daemon/ui/qml/RefreshControl.qml b/retrace/daemon/ui/qml/RefreshControl.qml index 133ba2ca..fb6308f6 100644 --- a/retrace/daemon/ui/qml/RefreshControl.qml +++ b/retrace/daemon/ui/qml/RefreshControl.qml @@ -6,6 +6,7 @@ import ApiTrace 1.0 Item { property FrameRetrace metricsModel + height: refreshButton.height Item { id: metricsItem anchors.left: parent.left diff --git a/retrace/daemon/ui/qml/mainwin.qml b/retrace/daemon/ui/qml/mainwin.qml index 12b3833c..1c8f371b 100644 --- a/retrace/daemon/ui/qml/mainwin.qml +++ b/retrace/daemon/ui/qml/mainwin.qml @@ -302,12 +302,9 @@ ApplicationWindow { visible: false RefreshControl { - Layout.minimumHeight: 20 - Layout.maximumHeight: 20 metricsModel: frameRetrace Layout.alignment: Qt.AlignTop Layout.fillWidth: true - Layout.fillHeight: true } BarGraphControl { -- cgit v1.2.3