IntegralRectangleAction
Qualified name: mv::gui::IntegralRectangleAction
-
class IntegralRectangleAction : public mv::gui::RectangleAction<IntegralRangeAction>
Integral rectangle action class.
Stores an integral rectangle and creates interfaces to interact with it
- Author
Thomas Kroes
Public Functions
-
Q_INVOKABLE IntegralRectangleAction(QObject *parent, const QString &title)
Construct with pointer to
parentobject andtitle.- Parameters:
parent – Pointer to parent object
title – Title of the action
-
inline void setRectangle(const QRect &rectangle)
Set rectangle to
rectangle.- Parameters:
rectangle – Rectangle
-
virtual void fromVariantMap(const QVariantMap &variantMap) override
Load widget action from variant map.
- Parameters:
Variant – map representation of the widget action
-
virtual QVariantMap toVariantMap() const override
Save widget action to variant map.
- Returns:
Variant map representation of the widget action
-
void rectangleChanged(std::int32_t left, std::int32_t right, std::int32_t bottom, std::int32_t top)
Signals that the rectangle changed.
- Parameters:
left – Rectangle left
right – Rectangle right
bottom – Rectangle bottom
top – Rectangle top
Protected Functions
-
virtual void connectToPublicAction(WidgetAction *publicAction, bool recursive) override
Connect this action to a public action.
- Parameters:
publicAction – Pointer to public action to connect to
recursive – Whether to also connect descendant child actions
-
virtual void disconnectFromPublicAction(bool recursive) override
Disconnect this action from its public action.
- Parameters:
recursive – Whether to also disconnect descendant child actions