kalarm
Go to the documentation of this file.
21 #ifndef RESOURCEMODELVIEW_H
22 #define RESOURCEMODELVIEW_H
26 #include "resources/alarmresource.h"
27 #include "resources/alarmresources.h"
29 #include <QAbstractListModel>
30 #include <QSortFilterProxyModel>
31 #include <QItemDelegate>
37 using namespace KAlarmCal;
44 virtual int rowCount(
const QModelIndex& parent = QModelIndex())
const;
45 virtual QModelIndex index(
int row,
int column,
const QModelIndex& parent)
const;
46 virtual QVariant data(
const QModelIndex&,
int role = Qt::DisplayRole)
const;
47 virtual bool setData(
const QModelIndex&,
const QVariant& value,
int role = Qt::EditRole);
48 virtual Qt::ItemFlags flags(
const QModelIndex&)
const;
49 AlarmResource* resource(
const QModelIndex&)
const;
50 void removeResource(AlarmResource*);
51 void notifyChange(
const QModelIndex&);
55 void addResource(AlarmResource*);
56 void updateResource(AlarmResource*);
57 void slotStandardChanged(CalEvent::Type);
58 void slotLoaded(AlarmResource*,
bool active);
59 void slotStatusChanged(AlarmResource*, AlarmResources::Change);
76 void setFilter(CalEvent::Type);
77 AlarmResource* resource(
int row)
const;
78 AlarmResource* resource(
const QModelIndex&)
const;
79 void notifyChange(
int row);
80 void notifyChange(
const QModelIndex&);
83 virtual bool filterAcceptsRow(
int sourceRow,
const QModelIndex& sourceParent)
const;
86 CalEvent::Type mResourceType;
95 virtual void setModel(QAbstractItemModel*);
96 AlarmResource* resource(
int row)
const;
97 AlarmResource* resource(
const QModelIndex&)
const;
98 void notifyChange(
int row)
const;
99 void notifyChange(
const QModelIndex&)
const;
102 virtual void mouseReleaseEvent(QMouseEvent*);
103 virtual bool viewportEvent(QEvent*);
112 virtual bool editorEvent(QEvent*, QAbstractItemModel*,
const QStyleOptionViewItem&,
const QModelIndex&);
115 #endif // RESOURCEMODELVIEW_H
ResourceDelegate(ResourceView *parent=0)
ResourceView(QWidget *parent=0)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:10 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.