mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4282 Add a new cafShortenedQLabel class that provides a label that shortens itself when space is limited
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include "cafPdmUiDefaultObjectEditor.h"
|
||||
#include "cafPdmUiFieldEditorHandle.h"
|
||||
#include "cafPdmUiOrdering.h"
|
||||
#include "cafShortenedQLabel.h"
|
||||
|
||||
#include <QTextEdit>
|
||||
#include <QLabel>
|
||||
@@ -195,7 +196,7 @@ QWidget* PdmUiTextEditor::createEditorWidget(QWidget * parent)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QWidget* PdmUiTextEditor::createLabelWidget(QWidget * parent)
|
||||
{
|
||||
m_label = new QLabel(parent);
|
||||
m_label = new cafShortenedQLabel(parent);
|
||||
return m_label;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user