Commit 0a83f161 authored by Eike Hein's avatar Eike Hein

Add an option to limit the number of text lines in task buttons.

This is desired by a downstream who always wants a single line of
text.

This should go into the 5.9 branch to allow them to ship 5.9.
parent d1463b3f
......@@ -97,6 +97,10 @@
<label>Whether task buttons should change in appearance when the mouse pointer is above them.</label>
<default>true</default>
</entry>
<entry name="maxTextLines" type="Int">
<label>The maximum number of text lines to show in a task button. 0 means no limit.</label>
<default>0</default>
</entry>
</group>
</kcfg>
......
......@@ -475,6 +475,7 @@ MouseArea {
elide: Text.ElideRight
textFormat: Text.PlainText
verticalAlignment: Text.AlignVCenter
maximumLineCount: plasmoid.configuration.maxTextLines || undefined
}
states: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment