diff --git a/containment/package/contents/ui/ConfigOverlay.qml b/containment/package/contents/ui/ConfigOverlay.qml index 77729b5f8..91f0c2e59 100644 --- a/containment/package/contents/ui/ConfigOverlay.qml +++ b/containment/package/contents/ui/ConfigOverlay.qml @@ -471,6 +471,15 @@ MouseArea { anchors.rightMargin: units.smallSpacing textFormat: Text.PlainText maximumLineCount: 1 + + //! update value of maxLength in tooltip + Binding{ + target: label + property: "text" + when: currentApplet === ruler + value: ruler.tooltip + } + } PlasmaComponents.ToolButton{ diff --git a/containment/package/contents/ui/Ruler.qml b/containment/package/contents/ui/Ruler.qml index 00446dd63..d2b59b36f 100644 --- a/containment/package/contents/ui/Ruler.qml +++ b/containment/package/contents/ui/Ruler.qml @@ -41,7 +41,7 @@ Item{ readonly property bool containsMouse: rulerMouseArea.containsMouse readonly property int thickness: theme.defaultFont.pixelSize + rMargin - readonly property string tooltip: i18n("You can use mouse wheel to change the maximum length") + readonly property string tooltip: i18nc("maximum length tooltip, %0% is maximum length percentage","You can use mouse wheel to change maximum length of %0%").arg(plasmoid.configuration.maxLength) x: { if (root.isHorizontal) {