1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-05 00:58:20 +03:00

show maxLength value at relevant tooltip

This commit is contained in:
Michail Vourlakos 2018-04-04 11:31:22 +03:00
parent ba2acef2c1
commit 065f92bb70
2 changed files with 10 additions and 1 deletions

View File

@ -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{

View File

@ -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) {