#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

@@ -44,6 +44,7 @@
#include "cafPdmUiFieldEditorHandle.h"
#include "cafPdmUiOrdering.h"
#include "cafSelectionManager.h"
#include "cafShortenedQLabel.h"
#include <QApplication>
#include <QDate>
@@ -106,7 +107,7 @@ QWidget* PdmUiDateEditor::createEditorWidget(QWidget* parent)
//--------------------------------------------------------------------------------------------------
QWidget* PdmUiDateEditor::createLabelWidget(QWidget* parent)
{
m_label = new QLabel(parent);
m_label = new cafShortenedQLabel(parent);
return m_label;
}