mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
AppFwk : Add placeholder text to line edit
This commit is contained in:
parent
bbfc6188e9
commit
1935451242
@ -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;
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user