Commit ce5094c0 authored by Nate Graham's avatar Nate Graham 🔩

[Widget Explorer] Show placeholder message when there are no widgets or search results

Summary:
BUG: 416313
FIXED-IN: 5.19.0

Test Plan: {F7886823}

Reviewers: #vdg, #plasma, apol

Reviewed By: apol

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26715
parent aa2119a8
......@@ -332,6 +332,18 @@ Item {
duration: units.shortDuration * 3
}
}
PlasmaExtras.Heading {
anchors.fill: parent
anchors.margins: units.largeSpacing
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WordWrap
level: 2
text: searchInput.text.length > 0 ? i18n("No widgets matched the search terms") : i18n("No widgets available")
enabled: false
visible: list.count == 0
}
}
}
......
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