mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Add placeholder text to line edit
This commit is contained in:
@@ -136,6 +136,11 @@ void PdmUiLineEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
{
|
||||
m_lineEdit->setMaximumWidth(leab.maximumWidth);
|
||||
}
|
||||
|
||||
if (!leab.placeholderText.isEmpty())
|
||||
{
|
||||
m_lineEdit->setPlaceholderText(leab.placeholderText);
|
||||
}
|
||||
}
|
||||
|
||||
bool fromMenuOnly = true;
|
||||
|
||||
@@ -66,6 +66,7 @@ public:
|
||||
completerFilterMode = Qt::MatchContains;
|
||||
maximumWidth = -1;
|
||||
selectAllOnFocusEvent = false;
|
||||
placeholderText = "";
|
||||
}
|
||||
|
||||
public:
|
||||
@@ -77,6 +78,7 @@ public:
|
||||
Qt::MatchFlags completerFilterMode;
|
||||
int maximumWidth;
|
||||
bool selectAllOnFocusEvent;
|
||||
QString placeholderText;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user