Skip to content
Permalink
Browse files

Fix #12053 - Add tooltips and text to buttons in function editor

  • Loading branch information
NathanW2 committed Jan 29, 2015
1 parent 1eec3b9 commit a20b8e03fdedd23cb2c49e324f93cad7537edf4c
Showing with 33 additions and 4 deletions.
  1. +33 −4 src/ui/qgsexpressionbuilder.ui
@@ -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>
@@ -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>
@@ -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>
@@ -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>

0 comments on commit a20b8e0

Please sign in to comment.
You can’t perform that action at this time.