From 97695b91d26be39dea8eccd23d8b80eaf782130e Mon Sep 17 00:00:00 2001 From: Nav Date: Mon, 14 Feb 2022 17:56:05 +0000 Subject: [PATCH] Back to fixed window size for the register inspector window --- .../TargetRegisterInspectorWindow.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/TargetRegisterInspectorWindow.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/TargetRegisterInspectorWindow.cpp index dc64e155..8e55699f 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/TargetRegisterInspectorWindow.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/TargetRegisterInspectorWindow.cpp @@ -61,18 +61,8 @@ namespace Bloom::Widgets throw Exception("Failed to open TargetRegisterInspectorWindow stylesheet file"); } - auto windowSize = QSize( - 840, - static_cast( - 440 - + ((BitsetWidget::HEIGHT + 20) * std::ceil(static_cast(this->registerValue.size()) / 2)) - + (!this->registerDescriptor.writable ? 50 : 0) - ) - ); - auto containerMargins = QMargins(15, 30, 15, 10); - this->setStyleSheet(windowStylesheet.readAll()); - this->setMinimumSize(windowSize); + this->setFixedSize(1070, 600); auto uiLoader = UiLoader(this); this->container = uiLoader.load(&windowUiFile, this);