Skip to content

kwin/rules: Add Exclusive and SelectAll types to options model

Ismael Asensio requested to merge work/iasensio/refactor-options-model into master

A "Select All" option has the value of all the rest of the options combined. Used for the Window Types property.

An Exclusive option cannot be check as the same time as any other options, but uses its own value. Used for "All Activities" and "All Virtual Desktops" properties.

SelectAll option Exclusive option
selectall-options exclusive-options

Co-Authored-By: @fusionfuture

This builds on a refactor of OptionsModel to provide allOptionsMask, bitMaskand useFlags as properties and roles from OptionsModel in C++ side, to simplify the QML part and improve the treatment of flag-based properties in OptionsComboBox.

Edited by Ismael Asensio

Merge request reports

Loading