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:
parent
ba2acef2c1
commit
065f92bb70
@ -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{
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user