digiKam
Digikam::TableViewColumns::ColumnThumbnail Class Reference
+ Inheritance diagram for Digikam::TableViewColumns::ColumnThumbnail:

Public Types

enum  ColumnCompareResult { CmpEqual = 0 , CmpABiggerB = 1 , CmpALessB = 2 }
 
enum  ColumnFlag { ColumnNoFlags = 0 , ColumnCustomPainting = 1 , ColumnCustomSorting = 2 , ColumnHasConfigurationWidget = 4 }
 

Signals

void signalAllDataChanged ()
 
void signalDataChanged (const qlonglong imageId)
 

Public Member Functions

virtual bool columnAffectedByChangeset (const ImageChangeset &imageChangeset) const
 
virtual ColumnCompareResult compare (TableViewModel::Item *const itemA, TableViewModel::Item *const itemB) const
 
QVariant data (TableViewModel::Item *const item, const int role) const override
 
ColumnFlags getColumnFlags () const override
 
virtual TableViewColumnConfiguration getConfiguration () const
 
virtual TableViewColumnConfigurationWidgetgetConfigurationWidget (QWidget *const parentWidget) const
 
QString getTitle () const override
 
bool paint (QPainter *const painter, const QStyleOptionViewItem &option, TableViewModel::Item *const item) const override
 
virtual void setConfiguration (const TableViewColumnConfiguration &newConfiguration)
 
QSize sizeHint (const QStyleOptionViewItem &option, TableViewModel::Item *const item) const override
 
void updateThumbnailSize () override
 

Static Public Member Functions

template<class MyType >
static ColumnCompareResult compareHelper (const MyType &A, const MyType &B)
 
static bool compareHelperBoolFailCheck (const bool okA, const bool okB, ColumnCompareResult *const result)
 
static bool CreateFromConfiguration (TableViewShared *const tableViewShared, const TableViewColumnConfiguration &pConfiguration, TableViewColumn **const pNewColumn, QObject *const parent=nullptr)
 
static TableViewColumnDescription getDescription ()
 
template<typename columnClass >
static bool getSubColumnIndex (const QString &subColumnId, typename columnClass::SubColumn *const subColumn)
 

Protected Attributes

TableViewColumnConfiguration configuration
 
TableViewShared *const s
 

Member Enumeration Documentation

◆ ColumnCompareResult

Enumerator
CmpEqual 
CmpABiggerB 
CmpALessB 

◆ ColumnFlag

Enumerator
ColumnNoFlags 
ColumnCustomPainting 
ColumnCustomSorting 
ColumnHasConfigurationWidget 

Member Function Documentation

◆ columnAffectedByChangeset()

bool Digikam::TableViewColumn::columnAffectedByChangeset ( const ImageChangeset imageChangeset) const
virtualinherited

◆ compare()

TableViewColumn::ColumnCompareResult Digikam::TableViewColumn::compare ( TableViewModel::Item *const  itemA,
TableViewModel::Item *const  itemB 
) const
virtualinherited

This function should never be called, because subclasses have to do the comparison on their own. But it can not be pure, since then every subclass which does not do custom comparison would have to implement an empty stub.

Reimplemented in Digikam::TableViewColumns::ColumnPhotoProperties, Digikam::TableViewColumns::ColumnItemProperties, Digikam::TableViewColumns::ColumnGeoProperties, Digikam::TableViewColumns::ColumnFileProperties, Digikam::TableViewColumns::ColumnDigikamProperties, and Digikam::TableViewColumns::ColumnAudioVideoProperties.

References Digikam::TableViewColumn::CmpEqual.

Referenced by Digikam::TableViewModel::lessThan().

◆ compareHelper()

template<class MyType >
static ColumnCompareResult Digikam::TableViewColumn::compareHelper ( const MyType &  A,
const MyType &  B 
)
inlinestaticinherited

◆ compareHelperBoolFailCheck()

bool Digikam::TableViewColumn::compareHelperBoolFailCheck ( const bool  okA,
const bool  okB,
ColumnCompareResult *const  result 
)
staticinherited

◆ CreateFromConfiguration()

bool Digikam::TableViewColumns::ColumnThumbnail::CreateFromConfiguration ( TableViewShared *const  tableViewShared,
const TableViewColumnConfiguration pConfiguration,
TableViewColumn **const  pNewColumn,
QObject *const  parent = nullptr 
)
static

◆ data()

QVariant Digikam::TableViewColumns::ColumnThumbnail::data ( TableViewModel::Item *const  item,
const int  role 
) const
overridevirtual

Reimplemented from Digikam::TableViewColumn.

◆ getColumnFlags()

TableViewColumn::ColumnFlags Digikam::TableViewColumns::ColumnThumbnail::getColumnFlags ( ) const
overridevirtual

Reimplemented from Digikam::TableViewColumn.

◆ getConfiguration()

◆ getConfigurationWidget()

TableViewColumnConfigurationWidget * Digikam::TableViewColumn::getConfigurationWidget ( QWidget *const  parentWidget) const
virtualinherited

◆ getDescription()

TableViewColumnDescription Digikam::TableViewColumns::ColumnThumbnail::getDescription ( )
static

◆ getSubColumnIndex()

template<typename columnClass >
static bool Digikam::TableViewColumn::getSubColumnIndex ( const QString &  subColumnId,
typename columnClass::SubColumn *const  subColumn 
)
inlinestaticinherited

◆ getTitle()

QString Digikam::TableViewColumns::ColumnThumbnail::getTitle ( ) const
overridevirtual

◆ paint()

bool Digikam::TableViewColumns::ColumnThumbnail::paint ( QPainter *const  painter,
const QStyleOptionViewItem &  option,
TableViewModel::Item *const  item 
) const
overridevirtual

◆ setConfiguration()

◆ signalAllDataChanged

◆ signalDataChanged

void Digikam::TableViewColumn::signalDataChanged ( const qlonglong  imageId)
signalinherited

◆ sizeHint()

QSize Digikam::TableViewColumns::ColumnThumbnail::sizeHint ( const QStyleOptionViewItem &  option,
TableViewModel::Item *const  item 
) const
overridevirtual

Reimplemented from Digikam::TableViewColumn.

◆ updateThumbnailSize()

void Digikam::TableViewColumns::ColumnThumbnail::updateThumbnailSize ( )
overridevirtual

Reimplemented from Digikam::TableViewColumn.

Member Data Documentation

◆ configuration

◆ s


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