Skip to content

Commit a20b8e0

Browse files
committedJan 29, 2015
Fix #12053 - Add tooltips and text to buttons in function editor
1 parent 1eec3b9 commit a20b8e0

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed
 

‎src/ui/qgsexpressionbuilder.ui

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<item row="0" column="0">
3636
<widget class="QTabWidget" name="tabWidget">
3737
<property name="currentIndex">
38-
<number>0</number>
38+
<number>1</number>
3939
</property>
4040
<property name="documentMode">
4141
<bool>true</bool>
@@ -582,13 +582,23 @@
582582
</property>
583583
<item>
584584
<widget class="QToolButton" name="btnRun">
585+
<property name="toolTip">
586+
<string>Run the current editor text in QGIS (also saves current script).
587+
588+
Use this when testing your functions.
589+
590+
Saved scripts are auto loaded on QGIS startup.</string>
591+
</property>
585592
<property name="text">
586-
<string>...</string>
593+
<string>Run Script</string>
587594
</property>
588595
<property name="icon">
589596
<iconset resource="../../images/images.qrc">
590597
<normaloff>:/images/themes/default/console/iconRunScriptConsole.png</normaloff>:/images/themes/default/console/iconRunScriptConsole.png</iconset>
591598
</property>
599+
<property name="toolButtonStyle">
600+
<enum>Qt::ToolButtonTextUnderIcon</enum>
601+
</property>
592602
<property name="autoRaise">
593603
<bool>true</bool>
594604
</property>
@@ -612,13 +622,21 @@
612622
</item>
613623
<item>
614624
<widget class="QToolButton" name="btnNewFile">
625+
<property name="toolTip">
626+
<string>Create a new function file based on the template file.
627+
628+
Change the name of the script and save to allow QGIS to auto load on startup.</string>
629+
</property>
615630
<property name="text">
616-
<string>New</string>
631+
<string>New file</string>
617632
</property>
618633
<property name="icon">
619634
<iconset resource="../../images/images.qrc">
620635
<normaloff>:/images/themes/default/console/iconTabEditorConsole.png</normaloff>:/images/themes/default/console/iconTabEditorConsole.png</iconset>
621636
</property>
637+
<property name="toolButtonStyle">
638+
<enum>Qt::ToolButtonTextUnderIcon</enum>
639+
</property>
622640
<property name="autoRaise">
623641
<bool>true</bool>
624642
</property>
@@ -632,20 +650,31 @@
632650
<verstretch>0</verstretch>
633651
</sizepolicy>
634652
</property>
653+
<property name="toolTip">
654+
<string>Name of the file to save.
655+
656+
Existing files are listed here and loaded when selected.</string>
657+
</property>
635658
<property name="editable">
636659
<bool>true</bool>
637660
</property>
638661
</widget>
639662
</item>
640663
<item>
641664
<widget class="QToolButton" name="btnSaveFile">
665+
<property name="toolTip">
666+
<string>Save the current script into the users function file folder.</string>
667+
</property>
642668
<property name="text">
643-
<string>Save</string>
669+
<string>Save file</string>
644670
</property>
645671
<property name="icon">
646672
<iconset resource="../../images/images.qrc">
647673
<normaloff>:/images/themes/default/console/iconSaveConsole.png</normaloff>:/images/themes/default/console/iconSaveConsole.png</iconset>
648674
</property>
675+
<property name="toolButtonStyle">
676+
<enum>Qt::ToolButtonTextUnderIcon</enum>
677+
</property>
649678
<property name="autoRaise">
650679
<bool>true</bool>
651680
</property>

0 commit comments

Comments
 (0)
Please sign in to comment.