Center label vertically in registers

This commit is contained in:
mandlebro 2018-07-25 00:16:38 +01:00 committed by xarkes
parent c869a34d99
commit 6a87b342d7

View File

@ -66,8 +66,8 @@ void RegistersWidget::setRegisterGrid()
// check if we already filled this grid space with label/value // check if we already filled this grid space with label/value
if (!registerLayout->itemAtPosition(i, col)) { if (!registerLayout->itemAtPosition(i, col)) {
registerLabel = new QLabel; registerLabel = new QLabel;
registerLabel->setAlignment(Qt::AlignRight); registerLabel->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
registerLabel->setFixedWidth(70); registerLabel->setMaximumWidth(60);
registerLabel->setStyleSheet("font-weight: bold; font-family: mono;"); registerLabel->setStyleSheet("font-weight: bold; font-family: mono;");
registerEditValue = new QLineEdit; registerEditValue = new QLineEdit;
registerEditValue->setFixedWidth(140); registerEditValue->setFixedWidth(140);