Skip to content

Connect presentation screen selection to KConfigWidgets

This adds PreferredScreenSelector, which is a QComboBox with an additional property which is accessed by KConfigWidgets.

  • In configuration dialog, Apply and Defaults are now connected with this combo box.
  • When opening the config dialog while the preferred screen is not connected, this setting is no longer reset immediately.
  • Port from QDesktopWidget (deprecated) to QScreen.
  • Bonus: QScreen allows to display some more information about the selected screen.

screenselector-1 (before/after/after)

Test Plan

  • Get someone with enough displays, select one, disconnect it, reopen config dialog.

TODO

  • Port PresentationWidget to QScreen, otherwise PresentationWidget and PreferredScreenSelector assume different screen lists. See !233 (merged).

Extracted from !202 (merged).

Edited by David Hurka

Merge request reports