Skip to content

Commit

Permalink
Fix #12053 - Add tooltips and text to buttons in function editor
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jan 29, 2015
1 parent 1eec3b9 commit a20b8e0
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions src/ui/qgsexpressionbuilder.ui
Expand Up @@ -35,7 +35,7 @@
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<property name="documentMode">
<bool>true</bool>
Expand Down Expand Up @@ -582,13 +582,23 @@
</property>
<item>
<widget class="QToolButton" name="btnRun">
<property name="toolTip">
<string>Run the current editor text in QGIS (also saves current script).

Use this when testing your functions.

Saved scripts are auto loaded on QGIS startup.</string>
</property>
<property name="text">
<string>...</string>
<string>Run Script</string>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/console/iconRunScriptConsole.png</normaloff>:/images/themes/default/console/iconRunScriptConsole.png</iconset>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
Expand All @@ -612,13 +622,21 @@
</item>
<item>
<widget class="QToolButton" name="btnNewFile">
<property name="toolTip">
<string>Create a new function file based on the template file.

Change the name of the script and save to allow QGIS to auto load on startup.</string>
</property>
<property name="text">
<string>New</string>
<string>New file</string>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/console/iconTabEditorConsole.png</normaloff>:/images/themes/default/console/iconTabEditorConsole.png</iconset>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
Expand All @@ -632,20 +650,31 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Name of the file to save.

Existing files are listed here and loaded when selected.</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnSaveFile">
<property name="toolTip">
<string>Save the current script into the users function file folder.</string>
</property>
<property name="text">
<string>Save</string>
<string>Save file</string>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/console/iconSaveConsole.png</normaloff>:/images/themes/default/console/iconSaveConsole.png</iconset>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
Expand Down

0 comments on commit a20b8e0

Please sign in to comment.