summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Martins <[email protected]>2015-07-31 23:24:24 +0100
committerSergio Martins <[email protected]>2015-07-31 23:24:24 +0100
commit09da10f0c93429c06ee8d1dc1957d235fc69bf9d (patch)
tree31ee57f73e6b70e519ab81a6b72dd1553fc9128b
parent206ab9d26d2cca7ee1cf5c32255b2d0ae4ce04ef (diff)
korganizer: Use Q_DECL_OVERRIDE
-rw-r--r--korganizer/akonadicollectionview.cpp2
-rw-r--r--korganizer/views/collectionview/quickview.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/korganizer/akonadicollectionview.cpp b/korganizer/akonadicollectionview.cpp
index a549f20..7667476 100644
--- a/korganizer/akonadicollectionview.cpp
+++ b/korganizer/akonadicollectionview.cpp
@@ -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);
diff --git a/korganizer/views/collectionview/quickview.cpp b/korganizer/views/collectionview/quickview.cpp
index eeae127..2bf9ba9 100644
--- a/korganizer/views/collectionview/quickview.cpp
+++ b/korganizer/views/collectionview/quickview.cpp
@@ -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;
}