Fix custom tool default values for Windows.

Task-number: QTCREATORBUG-3838
Reviewed-by: Robert Loehning
This commit is contained in:
con
2011-02-28 15:03:48 +01:00
parent 94b672a31b
commit 7e626a9fca

View File

@@ -333,8 +333,13 @@ QModelIndex ExternalToolModel::addTool(const QModelIndex &atIndex)
tool->setDisplayCategory(category);
tool->setDisplayName(tr("New tool"));
tool->setDescription(tr("This tool prints a line of useful text"));
#ifdef Q_OS_WIN
tool->setExecutables(QStringList() << "cmd");
tool->setArguments(tr("/c echo Useful text"));
#else
tool->setExecutables(QStringList() << "echo");
tool->setArguments(tr("Useful text"));
#endif
int pos;
QModelIndex parent;