Permalink
Browse files

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.
  • Loading branch information...
aldelaro5 committed May 5, 2018
1 parent 8c23335 commit 9bacb3cb262611eeaaac08a959d2f70026fd67ff
Showing with 4 additions and 1 deletion.
  1. +4 −1 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(); });

0 comments on commit 9bacb3c

Please sign in to comment.