DecimalPointAction

Qualified name: mv::gui::DecimalPointAction

class DecimalPointAction : public mv::gui::NumericalPointAction<float, DecimalAction>

Decimal action class.

Stores a two-dimensional decimal point value.

Author

Thomas Kroes

Public Functions

explicit Q_INVOKABLE DecimalPointAction(QObject *parent, const QString &title)

Construct with pointer to parent object and title.

Parameters:
  • parent – Pointer to parent object

  • title – Title of the action

void valueChanged(float x, float y)

Signals that the coordinate values changed to x and y.

Parameters:
  • x – X coordinate value

  • y – Y coordinate value

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

Protected Static Attributes

static constexpr int INIT_DECIMALS = 1

Initialization value.

Friends

friend class AbstractActionsManager