Improve visibility of instructions in processor tab
The default section size of sections in a QTableView limits the width of the instruction field in the current layout of the instruction view in the intsruction tab.
This commit sets a tiny minimum section size, to enforce that the headers actually resize to their contents.
MODIFY
src/processortab.cpp
src/processortab.cpp
@@ -100,6 +100,7 @@ void ProcessorTab::initInstructionView() {
Pipeline::getPipeline()->getStagePCSPre(), Parser::getParser());
m_ui->instructionView->setEditTriggers(QAbstractItemView::NoEditTriggers);
m_ui->instructionView->setModel(m_instrModel);
+ m_ui->instructionView->horizontalHeader()->setMinimumSectionSize(1);
m_ui->instructionView->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
m_ui->instructionView->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
m_ui->instructionView->horizontalHeader()->setSectionResizeMode(2, QHeaderView::ResizeToContents);

Improve visibility of instructions in processor tab

The default section size of sections in a QTableView limits the width of the instruction field in the current layout of the instruction view in the intsruction tab.
This commit sets a tiny minimum section size, to enforce that the headers actually resize to their contents.