Commit 7aff828a authored by Sergio Martins's avatar Sergio Martins
Browse files

korganizer: Use Q_DECL_OVERRIDE

parent 52117ac3
......@@ -288,7 +288,7 @@ public:
return score;
}
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE
{
const int leftScore = score(left);
const int rightScore = score(right);
......
......@@ -46,23 +46,23 @@ class FreebusyViewCalendar : public EventViews::ViewCalendar
{
public:
virtual ~FreebusyViewCalendar() {};
virtual bool isValid(const KCalCore::Incidence::Ptr &incidence) const
bool isValid(const KCalCore::Incidence::Ptr &incidence) const Q_DECL_OVERRIDE
{
return isValid(incidence->uid());
}
virtual bool isValid(const QString &incidenceIdentifier) const
bool isValid(const QString &incidenceIdentifier) const Q_DECL_OVERRIDE
{
return incidenceIdentifier.startsWith(QStringLiteral("fb-"));
}
virtual QString displayName(const KCalCore::Incidence::Ptr &incidence) const
QString displayName(const KCalCore::Incidence::Ptr &incidence) const Q_DECL_OVERRIDE
{
Q_UNUSED(incidence);
return i18n("Free/Busy calendar from %1", name);
}
virtual QColor resourceColor(const KCalCore::Incidence::Ptr &incidence) const
QColor resourceColor(const KCalCore::Incidence::Ptr &incidence) const Q_DECL_OVERRIDE
{
bool ok = false;
int status = incidence->customProperty(QStringLiteral("FREEBUSY").toLatin1(), QStringLiteral("STATUS").toLatin1()).toInt(&ok);
......@@ -84,12 +84,12 @@ public:
}
}
virtual QString iconForIncidence(const KCalCore::Incidence::Ptr &incidence) const
QString iconForIncidence(const KCalCore::Incidence::Ptr &incidence) const Q_DECL_OVERRIDE
{
return QString();
}
virtual KCalCore::Calendar::Ptr getCalendar() const
KCalCore::Calendar::Ptr getCalendar() const Q_DECL_OVERRIDE
{
return mCalendar;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment