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

digikam

Digikam::AlbumSelectComboBox

Digikam::AlbumSelectComboBox Class Reference

#include <albumselectcombobox.h>

Inheritance diagram for Digikam::AlbumSelectComboBox:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AlbumSelectComboBox (QWidget *parent=0)
 ~AlbumSelectComboBox ()
QSortFilterProxyModel * filterModel () const
AbstractCheckableAlbumModel * model () const
void setDefaultAlbumModels ()
void setDefaultTagModels ()
void setModels (AbstractCheckableAlbumModel *model, QSortFilterProxyModel *filterModel)
void setNoSelectionText (const QString &text)

Protected Slots

virtual void updateText ()

Protected Attributes

QSortFilterProxyModel * m_filterModel
AbstractCheckableAlbumModel * m_model
QString m_noSelectionText

Detailed Description

Definition at line 38 of file albumselectcombobox.h.


Constructor & Destructor Documentation

Digikam::AlbumSelectComboBox::AlbumSelectComboBox ( QWidget *  parent = 0  ) 

Definition at line 42 of file albumselectcombobox.cpp.

Digikam::AlbumSelectComboBox::~AlbumSelectComboBox (  ) 

Definition at line 50 of file albumselectcombobox.cpp.


Member Function Documentation

QSortFilterProxyModel * Digikam::AlbumSelectComboBox::filterModel (  )  const

Return the filter model in use.

Definition at line 101 of file albumselectcombobox.cpp.

AbstractCheckableAlbumModel * Digikam::AlbumSelectComboBox::model (  )  const

Returns the source model.

Retrieve selection information from here.

Definition at line 96 of file albumselectcombobox.cpp.

void Digikam::AlbumSelectComboBox::setDefaultAlbumModels (  ) 

Once after creation, call one of these three methods.

Use the first one if you want a standard combo box for PAlbums and the second one for tags, while the third allows you to provide custom source and filter models. The first two also set a default noSelectionText. Customize afterwards if required.

Definition at line 54 of file albumselectcombobox.cpp.

void Digikam::AlbumSelectComboBox::setDefaultTagModels (  ) 

Definition at line 62 of file albumselectcombobox.cpp.

void Digikam::AlbumSelectComboBox::setModels ( AbstractCheckableAlbumModel *  model,
QSortFilterProxyModel *  filterModel 
)

Definition at line 69 of file albumselectcombobox.cpp.

void Digikam::AlbumSelectComboBox::setNoSelectionText ( const QString &  text  ) 

Sets the text that is used to describe the state when no album is selected.

This may be something like "Any album" or "No tag selected"

Definition at line 90 of file albumselectcombobox.cpp.

void Digikam::AlbumSelectComboBox::updateText (  )  [protected, virtual, slot]

Updates the text describing the selection ("3 Albums selected").

Can be overridden to customize the default text.

Definition at line 106 of file albumselectcombobox.cpp.


Member Data Documentation

QSortFilterProxyModel* Digikam::AlbumSelectComboBox::m_filterModel [protected]

Definition at line 75 of file albumselectcombobox.h.

AbstractCheckableAlbumModel* Digikam::AlbumSelectComboBox::m_model [protected]

Definition at line 74 of file albumselectcombobox.h.

QString Digikam::AlbumSelectComboBox::m_noSelectionText [protected]

Definition at line 76 of file albumselectcombobox.h.


The documentation for this class was generated from the following files:
  • albumselectcombobox.h
  • albumselectcombobox.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.9-20090814
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