Commit 154c53f4 authored by Fushan Wen's avatar Fushan Wen Committed by Nate Graham
Browse files

applets/clipboard: Give PlaceholderMessage an icon

Use "edit-paste" when there is no history item, or "edit-none" when the
filter returns nothing.
parent 2242972a
......@@ -71,11 +71,14 @@ PlasmaComponents3.ScrollView {
PlasmaExtras.PlaceholderMessage {
id: emptyHint
readonly property bool hasText: model.filterRegExp.length > 0
anchors.centerIn: parent
width: parent.width - (PlasmaCore.Units.largeSpacing * 4)
visible: menuListView.count === 0
text: model.filterRegExp.length > 0 ? i18n("No matches") : i18n("Clipboard is empty")
iconName: hasText ? "edit-none" : "edit-paste"
text: hasText ? i18n("No matches") : i18n("Clipboard is empty")
}
}
}
Supports Markdown
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