Commit 470895c9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Show command line

parent 6717db92
Pipeline #136687 failed with stage
in 1 minute and 52 seconds
......@@ -41,7 +41,11 @@ void ViewerPluginExternalScriptItem::setScriptInfo(const ViewerPluginExternalScr
{
mScriptInfo = scriptInfo;
setText(mScriptInfo.name());
setToolTip(mScriptInfo.description());
QString commandLine = mScriptInfo.executable();
if (!mScriptInfo.commandLine().isEmpty()) {
commandLine += QLatin1Char(' ') + mScriptInfo.commandLine();
}
setToolTip(mScriptInfo.description() + QStringLiteral(" (%1)").arg(commandLine));
}
ViewerPluginExternalScriptInfo ViewerPluginExternalScriptItem::scriptInfo() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment