Utils::ToggleAspect Class

class Utils::ToggleAspect

A toggle aspect is a boolean property of some object, together with a description of its behavior for common operations like visualizing or persisting. It also contains independent tooltips, icons and text for the action() according to the on / off state of the aspect. More...

Header: #include <ToggleAspect>
Inherits: Utils::BoolAspect

Reimplemented Public Functions

virtual QAction *action() override

Reimplemented Protected Functions

virtual void announceChanges(Utils::BaseAspect::Changes changes, Utils::BaseAspect::Announcement howToAnnounce = DoEmit) override

Detailed Description

The aspect is displayed using a QCheckBox.

The visual representation often contains a label in front or after the display of the actual checkmark.