digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::SearchGroupLabel Class Reference
Inheritance diagram for Digikam::SearchGroupLabel:

Signals

void removeClicked ()

Public Member Functions

 SearchGroupLabel (SearchViewThemedPartsCache *const cache, SearchGroup::Type type, QWidget *const parent=nullptr)
SearchXml::Operator defaultFieldOperator () const
SearchXml::Operator groupOperator () const
void setDefaultFieldOperator (SearchXml::Operator op)
void setGroupOperator (SearchXml::Operator op)

Protected Slots

void boxesToggled ()
void toggleGroupOperator ()
void toggleShowOptions ()

Protected Member Functions

void adjustOperatorOptions ()
void paintEvent (QPaintEvent *) override
void setExtended (bool extended)
void updateGroupLabel ()

Member Function Documentation

◆ adjustOperatorOptions()

void Digikam::SearchGroupLabel::adjustOperatorOptions ( )
protected

In the UI, the NOT is done at the level of the field operator, but in fact we put a NOT in front of the whole group, so it is the group operator!

  1. allBox, All of these conditions are met: (A && B && C), Group And/Or, Field And
  2. anyBox, Any of these conditions are met: (A || B || C), Group And/Or, Field Or
  3. oneNotBox, At least one of these conditions is not met: !(A && B && C) = (!A || !B || !C), Group AndNot/OrNot, Field And
  4. noneBox, None of these conditions are met: !(A || B || C) = (!A && !B && !C), Group AndNot/OrNot, Field Or