From 243ad04a3775c3580a980ad8c6e2e29f84f953c4 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 26 Apr 2022 18:18:48 +0100 Subject: [PATCH] Fix height of top and bottom bars in windows --- sdrgui/channel/channelgui.h | 2 +- sdrgui/device/devicegui.h | 2 +- sdrgui/feature/featuregui.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdrgui/channel/channelgui.h b/sdrgui/channel/channelgui.h index d05b71f36..22486f400 100644 --- a/sdrgui/channel/channelgui.h +++ b/sdrgui/channel/channelgui.h @@ -95,7 +95,7 @@ protected: void mouseMoveEvent(QMouseEvent* event) override; void resetContextMenuType() { m_contextMenuType = ContextMenuNone; } void updateIndexLabel(); - int getAdditionalHeight() const { return 25 + 22; } + int getAdditionalHeight() const { return 22 + 22; } // height of top and bottom bars void setHighlighted(bool highlighted); DeviceType m_deviceType; diff --git a/sdrgui/device/devicegui.h b/sdrgui/device/devicegui.h index 1417ca8a8..78993d887 100644 --- a/sdrgui/device/devicegui.h +++ b/sdrgui/device/devicegui.h @@ -83,7 +83,7 @@ protected: void mouseReleaseEvent(QMouseEvent* event) override; void mouseMoveEvent(QMouseEvent* event) override; void resetContextMenuType() { m_contextMenuType = ContextMenuNone; } - int getAdditionalHeight() const { return 25 + 22; } + int getAdditionalHeight() const { return 26 + 22; } // height of top and bottom bars DeviceType m_deviceType; int m_deviceSetIndex; diff --git a/sdrgui/feature/featuregui.h b/sdrgui/feature/featuregui.h index fbccad7b6..2d764f2a2 100644 --- a/sdrgui/feature/featuregui.h +++ b/sdrgui/feature/featuregui.h @@ -72,7 +72,7 @@ protected: void mouseReleaseEvent(QMouseEvent* event) override; void mouseMoveEvent(QMouseEvent* event) override; void resetContextMenuType() { m_contextMenuType = ContextMenuNone; } - int getAdditionalHeight() const { return 25 + 22; } + int getAdditionalHeight() const { return 22 + 22; } // height of top and bottom bars int m_featureIndex; QString m_helpURL;