kalarm
#include <itemlistmodel.h>
Signals | |
void | haveEventsStatus (bool have) |
Public Member Functions | |
ItemListModel (CalEvent::Types allowed, QObject *parent=0) | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
KAEvent | event (int row) const |
KAEvent | event (const QModelIndex &) const |
QModelIndex | eventIndex (Akonadi::Item::Id) const |
virtual Qt::ItemFlags | flags (const QModelIndex &) const |
bool | haveEvents () const |
CalEvent::Types | includedTypes () const |
Static Public Member Functions | |
static int | iconWidth () |
Protected Member Functions | |
virtual bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const |
Detailed Description
Definition at line 38 of file itemlistmodel.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
- Parameters
-
allowed the alarm types (active/archived/template) included in this model
Definition at line 36 of file itemlistmodel.cpp.
Member Function Documentation
|
virtual |
Reimplemented in TemplateListModel, and AlarmListModel.
Definition at line 63 of file itemlistmodel.cpp.
KAEvent ItemListModel::event | ( | int | row | ) | const |
Definition at line 163 of file itemlistmodel.cpp.
KAEvent ItemListModel::event | ( | const QModelIndex & | index | ) | const |
Definition at line 171 of file itemlistmodel.cpp.
QModelIndex ItemListModel::eventIndex | ( | Akonadi::Item::Id | ) | const |
Definition at line 152 of file itemlistmodel.cpp.
|
protectedvirtual |
Reimplemented in TemplateListModel, and AlarmListModel.
Definition at line 110 of file itemlistmodel.cpp.
|
virtual |
Reimplemented in TemplateListModel.
Definition at line 142 of file itemlistmodel.cpp.
bool ItemListModel::haveEvents | ( | ) | const |
Determine whether the model contains any items.
Definition at line 179 of file itemlistmodel.cpp.
|
signal |
Signal emitted when either the first item is added to the model, or when the last item is deleted from the model.
|
inlinestatic |
Definition at line 59 of file itemlistmodel.h.
|
inline |
Definition at line 47 of file itemlistmodel.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.