[PlasmaCore] Make ConstraintHint a flag and add FullRepresentationFillArea

This commit is contained in:
Mikel Johnson 2020-11-19 17:38:32 +03:00
parent f8ae743c2f
commit 5cbdc03197

View File

@ -55,11 +55,13 @@ public:
* This enumeration lists the various hints that an applet can pass to its
* constraint regarding the way that it is represented
*/
enum ConstraintHints {
enum ConstraintHints { //TODO KF6 ConstraintHints -> ConstraintHint
NoHint = 0,
CanFillArea = 1 /**< The applet can fill the area and ignore constraint margins*/
CanFillArea = 1, /**< The CompactRepresentation can fill the area and ignore constraint margins*/ // (TODO: KF6 CanFillArea -> CompactRepresentationFillArea)
FullRepresentationFillArea = 2 /**< The FullRepresentation can fill the area and ignore constraint margins*/
};
Q_ENUM(ConstraintHints)
Q_DECLARE_FLAGS(ConstraintFlags, ConstraintHints)
Q_FLAG(ConstraintFlags)
/**
* The FormFactor enumeration describes how a Plasma::Applet should arrange
@ -324,6 +326,7 @@ PLASMA_EXPORT Types::Direction locationToInverseDirection(Types::Location locati
Q_DECLARE_OPERATORS_FOR_FLAGS(Types::ContainmentDisplayHints)
Q_DECLARE_OPERATORS_FOR_FLAGS(Types::Constraints)
Q_DECLARE_OPERATORS_FOR_FLAGS(Types::ConstraintFlags)
Q_DECLARE_OPERATORS_FOR_FLAGS(Types::Flip)
Q_DECLARE_OPERATORS_FOR_FLAGS(Types::ComponentTypes)
Q_DECLARE_OPERATORS_FOR_FLAGS(Types::BackgroundFlags)