Commit 28dc6b88 authored by Eike Hein's avatar Eike Hein

Always set applet title, even when label is disabled

Summary:
Except when we're a containment.

This way Folder View applets always have a nice tab title in
the grouping applet.

BUG:394007

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D12775
parent c0cd1f8d
......@@ -79,6 +79,21 @@ Item {
size: "16x16"
}
Binding {
target: plasmoid
property: "title"
value: labelGenerator.displayLabel
}
Folder.LabelGenerator {
id: labelGenerator
folderModel: folderView.model
rtl: (Qt.application.layoutDirection == Qt.RightToLeft)
labelMode: plasmoid.configuration.labelMode || (isContainment ? 0 : 1)
labelText: plasmoid.configuration.labelText
}
Folder.ViewPropertiesMenu {
id: viewPropertiesMenu
......@@ -301,21 +316,6 @@ Item {
elide: Text.ElideMiddle
text: labelGenerator.displayLabel
font.underline: labelMouseArea.containsMouse
Binding {
target: plasmoid
property: "title"
value: labelGenerator.displayLabel
}
Folder.LabelGenerator {
id: labelGenerator
folderModel: folderView.model
rtl: (Qt.application.layoutDirection == Qt.RightToLeft)
labelMode: plasmoid.configuration.labelMode
labelText: plasmoid.configuration.labelText
}
}
MouseArea {
......
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