#4282 Add a new cafShortenedQLabel class that provides a label that shortens itself when space is limited

This commit is contained in:
Gaute Lindkvist
2019-04-04 15:58:32 +02:00
parent aa72b384f1
commit 6a2e81ca4b
21 changed files with 198 additions and 20 deletions

View File

@@ -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;
}