TrustSelectorWidget

Widget for selecting trust level with visual feedback.

Declared in src/libs/libpair/pair/ui/TrustSelectorWidget.hpp
Inherits QWidget
Group ui

Detailed description

TrustSelectorWidget provides a UI for selecting the trust level (IGNORED, TRUST, BLOCK) for an associate node. It displays three TrustIconWidget buttons with labels and shows capability descriptions for each trust level.

This class is explained in the trust-levels explanation.

TrustSelectorWidget

See also TrustIconWidget, Associate.

Property documentation

selectedLevel property

selectedLevel : TrustLevel

This property holds the trust level that the user selected.

A click on one of the three icons sets it. A change shows the selected icon at full size and opacity and the other two smaller and dimmed, sets the level of the capability description, gives haptic feedback and emits selectionChanged(). The default is IGNORE.

Access functions:

  • TrustLevel selectedLevel() const
  • void setSelectedLevel(TrustLevel level)

Notifier signal:

  • void selectionChanged(TrustLevel level)
In this section