From 035aa52cca677505ba21bf3f270542ca3a668e8d Mon Sep 17 00:00:00 2001 From: itayc0hen Date: Fri, 6 Dec 2019 18:51:49 +0200 Subject: [PATCH] Improve RegistersWidget grid UI --- src/widgets/RegistersWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/RegistersWidget.cpp b/src/widgets/RegistersWidget.cpp index 106461a8..8de7db13 100644 --- a/src/widgets/RegistersWidget.cpp +++ b/src/widgets/RegistersWidget.cpp @@ -17,6 +17,7 @@ RegistersWidget::RegistersWidget(MainWindow *main, QAction *action) : // setup register layout registerLayout->setVerticalSpacing(0); + registerLayout->setAlignment(Qt::AlignLeft | Qt::AlignTop) ; ui->verticalLayout->addLayout(registerLayout); refreshDeferrer = createRefreshDeferrer([this]() { @@ -68,7 +69,7 @@ void RegistersWidget::setRegisterGrid() registerLabel->setMaximumWidth(60); registerLabel->setStyleSheet("font-weight: bold; font-family: mono;"); registerEditValue = new QLineEdit; - registerEditValue->setFixedWidth(140); + registerEditValue->setMaximumWidth(140); registerEditValue->setFont(Config()->getFont()); registerLabel->setContextMenuPolicy(Qt::CustomContextMenu); connect(registerLabel, &QWidget::customContextMenuRequested, this, [this, registerEditValue, registerLabel](QPoint p){