From e5cefe33a9ea39cda97d777b64963ec9e973a21f Mon Sep 17 00:00:00 2001 From: donovaly Date: Sat, 14 Mar 2020 15:44:38 +0100 Subject: [PATCH] set placeholder text not in UI to take care of Qt 4 users --- src/Gui/DlgParameterImp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Gui/DlgParameterImp.cpp b/src/Gui/DlgParameterImp.cpp index f9948829e9..b33a280933 100644 --- a/src/Gui/DlgParameterImp.cpp +++ b/src/Gui/DlgParameterImp.cpp @@ -126,6 +126,12 @@ DlgParameterImp::DlgParameterImp( QWidget* parent, Qt::WindowFlags fl ) // because we don't know what style sheet the user uses for FC defaultFont = paramGroup->font(); defaultColor = paramGroup->topLevelItem(0)->foreground(0); + + // set a placeholder text to inform the user + // (QTextEdit has no placeholderText property in Qt4) +#if QT_VERSION >= 0x050200 + ui->findGroupLE->setPlaceholderText(tr("Search Group")); +#endif } /**