set placeholder text not in UI to take care of Qt 4 users

This commit is contained in:
donovaly
2020-03-14 15:44:38 +01:00
committed by wmayer
parent 78e6edf0ab
commit e5cefe33a9

View File

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