ExternalTools: Use tool tip for effective arguments

Having the same line twice is confusing

Change-Id: Ib85afeb1867cb5bb3fbbdff584fb63f4fe496ea8
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-02-10 22:44:28 +02:00
committed by Orgad Shaneh
parent 2c68c80196
commit d8b6c19fef
2 changed files with 9 additions and 26 deletions

View File

@@ -609,6 +609,6 @@ void ExternalToolConfig::addCategory()
void ExternalToolConfig::updateEffectiveArguments() void ExternalToolConfig::updateEffectiveArguments()
{ {
ui->effectiveArguments->setText(Utils::QtcProcess::expandMacros(ui->arguments->text(), ui->arguments->setToolTip(Utils::QtcProcess::expandMacros(ui->arguments->text(),
Core::VariableManager::instance()->macroExpander())); Core::VariableManager::instance()->macroExpander()));
} }

View File

@@ -131,37 +131,20 @@
<widget class="QLineEdit" name="arguments"/> <widget class="QLineEdit" name="arguments"/>
</item> </item>
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="effectiveArgumentsLabel">
<property name="text">
<string>Effective arguments:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="effectiveArguments">
<property name="enabled">
<bool>true</bool>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="workingDirectoryLabel"> <widget class="QLabel" name="workingDirectoryLabel">
<property name="text"> <property name="text">
<string>Working directory:</string> <string>Working directory:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="3" column="1">
<widget class="Utils::PathChooser" name="workingDirectory"> <widget class="Utils::PathChooser" name="workingDirectory">
<property name="expectedKind"> <property name="expectedKind">
<enum>Utils::PathChooser::Directory</enum> <enum>Utils::PathChooser::Directory</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="4" column="0">
<widget class="QLabel" name="outputLabel"> <widget class="QLabel" name="outputLabel">
<property name="toolTip"> <property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt; <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
@@ -174,7 +157,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="4" column="1">
<widget class="QComboBox" name="outputBehavior"> <widget class="QComboBox" name="outputBehavior">
<item> <item>
<property name="text"> <property name="text">
@@ -193,7 +176,7 @@
</item> </item>
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="5" column="0">
<widget class="QLabel" name="errorOutputLabel"> <widget class="QLabel" name="errorOutputLabel">
<property name="toolTip"> <property name="toolTip">
<string>&lt;html&gt;&lt;head&gt;&lt;body&gt; <string>&lt;html&gt;&lt;head&gt;&lt;body&gt;
@@ -208,7 +191,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item row="5" column="1">
<widget class="QComboBox" name="errorOutputBehavior"> <widget class="QComboBox" name="errorOutputBehavior">
<item> <item>
<property name="text"> <property name="text">
@@ -227,7 +210,7 @@
</item> </item>
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="6" column="1">
<widget class="QCheckBox" name="modifiesDocumentCheckbox"> <widget class="QCheckBox" name="modifiesDocumentCheckbox">
<property name="toolTip"> <property name="toolTip">
<string>If the tool modifies the current document, set this flag to ensure that the document is saved before running the tool and is reloaded after the tool finished.</string> <string>If the tool modifies the current document, set this flag to ensure that the document is saved before running the tool and is reloaded after the tool finished.</string>
@@ -237,7 +220,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0"> <item row="7" column="0">
<widget class="QLabel" name="inputLabel"> <widget class="QLabel" name="inputLabel">
<property name="toolTip"> <property name="toolTip">
<string>Text to pass to the executable via standard input. Leave empty if the executable should not receive any input.</string> <string>Text to pass to the executable via standard input. Leave empty if the executable should not receive any input.</string>
@@ -247,7 +230,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="1"> <item row="7" column="1">
<widget class="QPlainTextEdit" name="inputText"> <widget class="QPlainTextEdit" name="inputText">
<property name="lineWrapMode"> <property name="lineWrapMode">
<enum>QPlainTextEdit::NoWrap</enum> <enum>QPlainTextEdit::NoWrap</enum>