Result Info: Add support for multiple properties when clicking on a cell

* Result Info: Use monospace font
* #9447 Result Info: Add support for multiple properties when clicking on a cell
* Improve alignment in generated text
This commit is contained in:
Magne Sjaastad
2022-11-10 07:21:41 +01:00
committed by GitHub
parent b1b0fd9d35
commit 3a99c039be
10 changed files with 318 additions and 47 deletions

View File

@@ -43,6 +43,12 @@ RiuResultInfoPanel::RiuResultInfoPanel( QWidget* parent )
QVBoxLayout* layout = new QVBoxLayout();
layout->addWidget( m_textEdit );
// Use a nonexisting font family to trigger the use of QFont::Monospace
// https://forum.qt.io/topic/35999/solved-qplaintextedit-how-to-change-the-font-to-be-monospaced/7
QFont font( "does not exist" );
font.setStyleHint( QFont::Monospace );
m_textEdit->setFont( font );
layout->setContentsMargins( 0, 0, 0, 0 );
setLayout( layout );