From db159ec8bf6289dd28d2ea2c8a199c6bfe54f770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 5 May 2019 10:29:39 +0200 Subject: [PATCH] Qt/Debugger: Vertically align text in register cells Looks better with the text vertically aligned. --- Source/Core/DolphinQt/Debugger/RegisterWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp index 7b8575f094..0c829ed6df 100644 --- a/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp @@ -365,12 +365,12 @@ void RegisterWidget::AddRegister(int row, int column, RegisterType type, std::st m_table->setItem(row, column, label); m_table->setItem(row, column + 1, value); - m_table->item(row, column + 1)->setTextAlignment(Qt::AlignRight); + m_table->item(row, column + 1)->setTextAlignment(Qt::AlignVCenter | Qt::AlignRight); } else { m_table->setItem(row, column, value); - m_table->item(row, column)->setTextAlignment(Qt::AlignRight); + m_table->item(row, column)->setTextAlignment(Qt::AlignVCenter | Qt::AlignRight); } connect(this, &RegisterWidget::UpdateTable, [value] { value->RefreshValue(); });