• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

digikam

Digikam::AbstractCheckableAlbumModel

Digikam::AbstractCheckableAlbumModel Class Reference

#include <albummodel.h>

Inheritance diagram for Digikam::AbstractCheckableAlbumModel:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 155 of file albummodel.h.


Signals

void checkStateChanged (Album *album, int checkState)

Public Member Functions

 AbstractCheckableAlbumModel (Album::Type albumType, Album *rootAlbum, RootAlbumBehavior rootBehavior=IncludeRootAlbum, QObject *parent=0)
QList< Album * > checkedAlbums () const
Qt::CheckState checkState (Album *album) const
bool isCheckable () const
bool isChecked (Album *album) const
bool isTristate () const
void resetCheckedAlbums ()
void setCheckable (bool isCheckable)
void setChecked (Album *album, bool isChecked)
void setCheckState (Album *album, Qt::CheckState state)
void setTristate (bool isTristate)

Protected Member Functions

virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
virtual Qt::ItemFlags flags (const QModelIndex &index) const
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)

Constructor & Destructor Documentation

Digikam::AbstractCheckableAlbumModel::AbstractCheckableAlbumModel ( Album::Type  albumType,
Album *  rootAlbum,
RootAlbumBehavior  rootBehavior = IncludeRootAlbum,
QObject *  parent = 0 
)

Abstract base class that manages the check state of Albums.

Call setCheckable(true) to enable checkable albums.

Definition at line 488 of file albummodel.cpp.


Member Function Documentation

QList< Album * > Digikam::AbstractCheckableAlbumModel::checkedAlbums (  )  const

Returns a list of album with check state Checked.

Definition at line 545 of file albummodel.cpp.

Qt::CheckState Digikam::AbstractCheckableAlbumModel::checkState ( Album *  album  )  const

Returns the check state of the album.

Definition at line 530 of file albummodel.cpp.

void Digikam::AbstractCheckableAlbumModel::checkStateChanged ( Album *  album,
int  checkState 
) [signal]

Emitted when the check state of an album changes.

checkState contains the new Qt::CheckState of album

QVariant Digikam::AbstractCheckableAlbumModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const [protected, virtual]

Reimplemented from Digikam::AbstractAlbumModel.

Definition at line 563 of file albummodel.cpp.

Qt::ItemFlags Digikam::AbstractCheckableAlbumModel::flags ( const QModelIndex &  index  )  const [protected, virtual]

Reimplemented from Digikam::AbstractAlbumModel.

Definition at line 578 of file albummodel.cpp.

bool Digikam::AbstractCheckableAlbumModel::isCheckable (  )  const

Definition at line 507 of file albummodel.cpp.

bool Digikam::AbstractCheckableAlbumModel::isChecked ( Album *  album  )  const

Returns if the given album has the check state Checked.

Definition at line 525 of file albummodel.cpp.

bool Digikam::AbstractCheckableAlbumModel::isTristate (  )  const

Definition at line 520 of file albummodel.cpp.

void Digikam::AbstractCheckableAlbumModel::resetCheckedAlbums (  ) 

Resets the checked state of all albums to Qt::Unchecked.

Definition at line 551 of file albummodel.cpp.

void Digikam::AbstractCheckableAlbumModel::setCheckable ( bool  isCheckable  ) 

Triggers if the albums in this model are checkable.

Definition at line 496 of file albummodel.cpp.

void Digikam::AbstractCheckableAlbumModel::setChecked ( Album *  album,
bool  isChecked 
)

Sets the check state of album to Checked or Unchecked.

Definition at line 535 of file albummodel.cpp.

void Digikam::AbstractCheckableAlbumModel::setCheckState ( Album *  album,
Qt::CheckState  state 
)

Sets the check state of the album.

Definition at line 540 of file albummodel.cpp.

bool Digikam::AbstractCheckableAlbumModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
) [protected, virtual]

Reimplemented from Digikam::AbstractAlbumModel.

Definition at line 583 of file albummodel.cpp.

void Digikam::AbstractCheckableAlbumModel::setTristate ( bool  isTristate  ) 

Triggers if the albums in this model are tristate.

Note that you want to set setCheckable(true) before.

Definition at line 512 of file albummodel.cpp.


The documentation for this class was generated from the following files:
  • albummodel.h
  • albummodel.cpp

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • digikam
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal