forked from qt-creator/qt-creator
ProjectExplorer: Placeholder for custom executable
Previously when creating a custom executable run config, the path chooser would display a red "<unknown>". This improves the message to tell the user whats needed. Change-Id: Ib521cde1a4f5b836cb865428f65f956a63bce3b4 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -502,7 +502,7 @@ ExecutableAspect::ExecutableAspect(Target *target, ExecutionDeviceSelector selec
|
|||||||
setId("ExecutableAspect");
|
setId("ExecutableAspect");
|
||||||
addDataExtractor(this, &ExecutableAspect::executable, &Data::executable);
|
addDataExtractor(this, &ExecutableAspect::executable, &Data::executable);
|
||||||
|
|
||||||
m_executable.setPlaceHolderText(Tr::tr("<unknown>"));
|
m_executable.setPlaceHolderText(Tr::tr("path to the executable cannot be empty"));
|
||||||
m_executable.setLabelText(Tr::tr("Executable:"));
|
m_executable.setLabelText(Tr::tr("Executable:"));
|
||||||
m_executable.setDisplayStyle(StringAspect::LabelDisplay);
|
m_executable.setDisplayStyle(StringAspect::LabelDisplay);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user