Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2018-10-15 12:07:03 +0300
committerJaime van Kessel <nallath@gmail.com>2018-10-15 12:07:03 +0300
commitd2baef97c4e2d014884e22537330e4ecc4b34cf5 (patch)
tree6e7ce9b8de28d69fb54f2fbd91e922d20a5bab1c /plugins/PrepareStage/PrepareMenu.qml
parent8cac5e1de214b34ad39328fe93b29a9bfe270afe (diff)
Fix tooltips for settings
CURA-5772
Diffstat (limited to 'plugins/PrepareStage/PrepareMenu.qml')
-rw-r--r--plugins/PrepareStage/PrepareMenu.qml12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml
index eb09326524..353c4df51a 100644
--- a/plugins/PrepareStage/PrepareMenu.qml
+++ b/plugins/PrepareStage/PrepareMenu.qml
@@ -10,6 +10,10 @@ Row
{
spacing: UM.Theme.getSize("default_margin").width
+ // This widget doesn't show tooltips by itself. Instead it emits signals so others can do something with it.
+ signal showTooltip(Item item, point location, string text)
+ signal hideTooltip()
+
UM.I18nCatalog
{
id: catalog
@@ -18,12 +22,12 @@ Row
Button
{
- id: openFileButton;
- text: catalog.i18nc("@action:button", "Open File");
+ id: openFileButton
+ text: catalog.i18nc("@action:button", "Open File")
iconSource: UM.Theme.getIcon("load")
style: UM.Theme.styles.tool_button
tooltip: ""
- action: Cura.Actions.open;
+ action: Cura.Actions.open
}
Cura.MachineAndConfigurationSelector
@@ -38,5 +42,7 @@ Row
Cura.ProfileAndSettingComponent
{
width: UM.Theme.getSize("sidebar").width
+ onShowTooltip: parent.showTooltip(item, location, text)
+ onHideTooltip: parent.hideTooltip()
}
} \ No newline at end of file