kalarm
eventlistmodel.cpp
Go to the documentation of this file.
60 Preferences::connect(SIGNAL(archivedColourChanged(QColor)), mAlarmInstance, SLOT(slotUpdateArchivedColour(QColor)));
61 Preferences::connect(SIGNAL(disabledColourChanged(QColor)), mAlarmInstance, SLOT(slotUpdateDisabledColour(QColor)));
62 Preferences::connect(SIGNAL(holidaysChanged(KHolidays::HolidayRegion)), mAlarmInstance, SLOT(slotUpdateHolidays()));
63 Preferences::connect(SIGNAL(workTimeChanged(QTime,QTime,QBitArray)), mAlarmInstance, SLOT(slotUpdateWorkingHours()));
93 //for(int x=0; x<mEvents.count(); ++x)kDebug(0)<<"Resource"<<(void*)mEvents[x]->resource()<<"Event"<<(void*)mEvents[x];
101 mIconSize = mTextIcon->size().expandedTo(mFileIcon->size()).expandedTo(mCommandIcon->size()).expandedTo(mEmailIcon->size()).expandedTo(mAudioIcon->size());
151 DateTime due = event->expired() ? event->startDateTime() : event->nextTrigger(KAEvent::DISPLAY_TRIGGER);
156 DateTime due = event->expired() ? event->startDateTime() : event->nextTrigger(KAEvent::DISPLAY_TRIGGER);
545 void EventListModel::resourceStatusChanged(AlarmResource* resource, AlarmResources::Change change)
556 void EventListModel::slotResourceStatusChanged(AlarmResource* resource, AlarmResources::Change change)
869 return QString("%1%2").arg(static_cast<char>('0' + repeatOrder)).arg(repeatInterval, 8, 10, QLatin1Char('0'));
913 return i18nc("@info:whatsthis", "Alarm message text, URL of text file to display, command to execute, or email subject line");
964 void EventListFilterModel::slotDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
static void resourceStatusChanged(AlarmResource *, AlarmResources::Change)
Definition: eventlistmodel.cpp:545
void setSortRole(int role)
QSize size() const
Definition: eventlistmodel.h:51
virtual void setSourceModel(QAbstractItemModel *sourceModel)
void updateCommandError(const QString &eventId)
Definition: eventlistmodel.cpp:523
QModelIndex eventIndex(const KAEvent *) const
Definition: eventlistmodel.cpp:714
Definition: eventlistmodel.h:52
Definition: eventlistmodel.h:53
Definition: eventlistmodel.h:46
Definition: eventlistmodel.h:46
bool isValid() const
Definition: eventlistmodel.h:46
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void endInsertRows()
virtual QVariant headerData(int section, Qt::Orientation, int role=Qt::DisplayRole) const
Definition: eventlistmodel.cpp:352
bool isEmpty() const
static QString timeToAlarmText(const KAlarmCal::DateTime &dateTime)
Definition: alarmtime.cpp:77
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
Definition: eventlistmodel.h:48
void setDynamicSortFilter(bool enable)
void * internalPointer() const
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: eventlistmodel.cpp:111
static void connect(QObject *receiver, const char *member)
virtual QVariant data(const QModelIndex &, int role=Qt::DisplayRole) const
Definition: eventlistmodel.cpp:132
QModelIndex createIndex(int row, int column, void *ptr) const
EventListFilterModel(EventListModel *baseModel, QObject *parent=0)
Definition: eventlistmodel.cpp:927
Definition: eventlistmodel.h:46
void setValue(const T &value)
static void connect(const char *signal, const QObject *receiver, const char *member)
Definition: preferences.cpp:369
void beginInsertRows(const QModelIndex &parent, int first, int last)
Definition: eventlistmodel.h:54
Definition: eventlistmodel.h:46
static QString alarmTimeText(const KAlarmCal::DateTime &dateTime)
Definition: alarmtime.cpp:39
QAbstractItemModel * sourceModel() const
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
virtual QModelIndex index(int row, int column=0, const QModelIndex &parent=QModelIndex()) const
Definition: eventlistmodel.cpp:125
Definition: eventlistmodel.h:41
QSize expandedTo(const QSize &otherSize) const
virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const
virtual bool setData(const QModelIndex &, const QVariant &value, int role=Qt::EditRole)
Definition: eventlistmodel.cpp:341
void getRgb(int *r, int *g, int *b, int *a) const
Definition: eventlistmodel.h:46
virtual Qt::ItemFlags flags(const QModelIndex &) const
Definition: eventlistmodel.cpp:382
int column() const
QString fromLatin1(const char *str, int size)
KAEvent::List events(CalEvent::Types s=CalEvent::EMPTY) const
Definition: alarmcalendar.h:96
QModelIndex eventIndex(const KAEvent *) const
Definition: eventlistmodel.cpp:959
void removeResource(AlarmResource *)
Definition: eventlistmodel.cpp:640
void endRemoveRows()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: eventlistmodel.cpp:118
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.