|
@@ -33,6 +33,8 @@ Button
|
|
|
property alias shadowEnabled: shadow.visible
|
|
|
property alias busy: busyIndicator.visible
|
|
|
|
|
|
+ property bool underlineTextOnHover: false
|
|
|
+
|
|
|
property alias toolTipContentAlignment: tooltip.contentAlignment
|
|
|
|
|
|
// This property is used to indicate whether the button has a fixed width or the width would depend on the contents
|
|
@@ -49,6 +51,14 @@ Button
|
|
|
height: UM.Theme.getSize("action_button").height
|
|
|
hoverEnabled: true
|
|
|
|
|
|
+ onHoveredChanged:
|
|
|
+ {
|
|
|
+ if(underlineTextOnHover)
|
|
|
+ {
|
|
|
+ buttonText.font.underline = hovered
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
contentItem: Row
|
|
|
{
|
|
|
spacing: UM.Theme.getSize("narrow_margin").width
|