Skip to content
Commit 293cb32c authored by Roman Gilg's avatar Roman Gilg
Browse files

Add enforced mode size getter

Summary:
Introduce little helper to API, which gives back either the current mode size
or if no current mode is set the preferred mode or if there is no preferred
mode as last resort the first one in the map if the map is not empty.

In a small behavior change `geometry()` then can still give a valid geometry
back even if no current mode is set at the moment.

Test Plan: Compiles.

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24037
parent 31d71564
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