hide primary display combo when not supported
ClosedPublic

Authored by sebas on Feb 21 2018, 6:23 PM.

Details

Summary

Some backends, for example the kwayland backend, do not support
setting the primary display. The backends already make their
feature set known so we can just hide it from the UI.

It's enough to hide it from the UI since setting it doesn't make
any difference, the libkscreen backend will simply ignore it
internally, so it's just honest to not show it.

BUG:390638

Test Plan

ran kscreen kcm on both, X11 and wayland platforms, combo
and label are shown and hidden as expected

Diff Detail

Repository
R104 KScreen
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sebas created this revision.Feb 21 2018, 6:23 PM
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 21 2018, 6:23 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas requested review of this revision.Feb 21 2018, 6:23 PM
davidedmundson accepted this revision.Feb 22 2018, 7:56 PM
This revision is now accepted and ready to land.Feb 22 2018, 7:56 PM
This revision was automatically updated to reflect the committed changes.