From 9bacb3cb262611eeaaac08a959d2f70026fd67ff Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Fri, 4 May 2018 23:48:18 -0400 Subject: [PATCH] Qt/RegisterView: fix minor aesthetic issues This aligns the values to the right since It looks odd to be aligned to the left with any format other than hexadecimal. It also sets the font tot he debugger font and disallow selection as a previous commit made the selection pointless since it now relies on the current item. --- Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp index c028e9626c..647416f188 100644 --- a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp @@ -74,7 +74,8 @@ void RegisterWidget::CreateWidgets() m_table->verticalHeader()->setVisible(false); m_table->verticalHeader()->setDefaultSectionSize(24); m_table->setContextMenuPolicy(Qt::CustomContextMenu); - m_table->setSelectionMode(QAbstractItemView::SingleSelection); + m_table->setSelectionMode(QAbstractItemView::NoSelection); + m_table->setFont(Settings::Instance().GetDebugFont()); QStringList empty_list; @@ -353,10 +354,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); } else { m_table->setItem(row, column, value); + m_table->item(row, column)->setTextAlignment(Qt::AlignRight); } connect(this, &RegisterWidget::UpdateTable, [value] { value->RefreshValue(); });