From 6a87b342d7c06d7516ca5cd3d186c3d8508a1198 Mon Sep 17 00:00:00 2001 From: mandlebro Date: Wed, 25 Jul 2018 00:16:38 +0100 Subject: [PATCH] Center label vertically in registers --- src/widgets/RegistersWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/RegistersWidget.cpp b/src/widgets/RegistersWidget.cpp index 229ddf99..9a60a201 100644 --- a/src/widgets/RegistersWidget.cpp +++ b/src/widgets/RegistersWidget.cpp @@ -66,8 +66,8 @@ void RegistersWidget::setRegisterGrid() // check if we already filled this grid space with label/value if (!registerLayout->itemAtPosition(i, col)) { registerLabel = new QLabel; - registerLabel->setAlignment(Qt::AlignRight); - registerLabel->setFixedWidth(70); + registerLabel->setAlignment(Qt::AlignRight | Qt::AlignVCenter); + registerLabel->setMaximumWidth(60); registerLabel->setStyleSheet("font-weight: bold; font-family: mono;"); registerEditValue = new QLineEdit; registerEditValue->setFixedWidth(140);