AppFwk : Add placeholder text to line edit

This commit is contained in:
Magne Sjaastad 2019-10-24 09:44:51 +02:00
parent bbfc6188e9
commit 1935451242
2 changed files with 7 additions and 0 deletions

View File

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

View File

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