mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user