Add HiddenStatus for plasmoid self-hiding

Self-hiding plasmoid is useful https://forum.kde.org/viewtopic.php?f=83&t=39501
for example, bluetooth plasmoid can be totally hided when there is NO bluetooth
adpater available.

PassiveStatus is NOT enough, because plasma-workspace's systemtray applet ONLY
hide the passive status plasmoid into ExpandedRepresentation. when click the
expanding triangle, the 'hidden' plasmoid is still visible.

So I added HiddenStatus and implemented it in the plasma-workspace systemtray
applet.

REVIEW: 126297
This commit is contained in:
Leslie Zhai 2015-12-23 22:17:20 +08:00
parent fa0030a9ac
commit 97ef641566

View File

@ -253,7 +253,8 @@ public:
ActiveStatus = 2, /**< The Item is active **/
NeedsAttentionStatus = 3, /**< The Item needs attention **/
RequiresAttentionStatus = 4, /**< The Item needs persistent attention **/
AcceptingInputStatus = 5 /**< The Item is accepting input **/
AcceptingInputStatus = 5, /**< The Item is accepting input **/
HiddenStatus = 6 /**< The Item will be hidden totally **/
};
Q_ENUMS(ItemStatus)