digiKam
Digikam::IccProfilesMenuAction Class Reference
+ Inheritance diagram for Digikam::IccProfilesMenuAction:

Signals

void triggered (const IccProfile &profile)
 

Public Member Functions

void addProfile (const IccProfile &profile, const QString &description=QString())
 
void addProfiles (const QList< IccProfile > &profile)
 
void disableIfEmpty ()
 
 IccProfilesMenuAction (const QIcon &icon, const QString &text, QObject *const parent)
 
 IccProfilesMenuAction (const QString &text, QObject *const parent)
 
QObject * parentObject () const
 
void replaceProfiles (const QList< IccProfile > &profile)
 

Protected Slots

void slotTriggered (QObject *)
 

Protected Attributes

QObject * m_parent
 

Constructor & Destructor Documentation

◆ IccProfilesMenuAction() [1/2]

Digikam::IccProfilesMenuAction::IccProfilesMenuAction ( const QIcon &  icon,
const QString &  text,
QObject *const  parent 
)

◆ IccProfilesMenuAction() [2/2]

Digikam::IccProfilesMenuAction::IccProfilesMenuAction ( const QString &  text,
QObject *const  parent 
)

Member Function Documentation

◆ addProfile()

void Digikam::IccProfilesMenuAction::addProfile ( const IccProfile profile,
const QString &  description = QString() 
)

Add the given profile with the given description, or, if null, a standard description. Does not test for duplicity, does not sort into existing profiles.

References m_parent, and slotTriggered().

Referenced by addProfiles().

◆ addProfiles()

void Digikam::IccProfilesMenuAction::addProfiles ( const QList< IccProfile > &  profile)

Checks the given profiles for validity, creates a suitable description (ICC profile description, file path), removes duplicates (in newly added list) by file path, sorts them and adds them in sorted order.

References addProfile().

Referenced by replaceProfiles().

◆ disableIfEmpty()

void Digikam::IccProfilesMenuAction::disableIfEmpty ( )

Disables if the menu is currently empty.

◆ parentObject()

QObject * Digikam::IccProfilesMenuAction::parentObject ( ) const

Return the parent QObject.

References m_parent.

◆ replaceProfiles()

void Digikam::IccProfilesMenuAction::replaceProfiles ( const QList< IccProfile > &  profile)

Equivalent to calling clear() and addProfiles().

References addProfiles().

◆ slotTriggered

void Digikam::IccProfilesMenuAction::slotTriggered ( QObject *  obj)
protectedslot

◆ triggered

void Digikam::IccProfilesMenuAction::triggered ( const IccProfile profile)
signal

Referenced by slotTriggered().

Member Data Documentation

◆ m_parent

QObject* Digikam::IccProfilesMenuAction::m_parent
protected

Referenced by addProfile(), and parentObject().


The documentation for this class was generated from the following files: