Commit bb807be2 authored by Laurent Montel's avatar Laurent Montel 😁

Remove QT_CHECK

parent e02c7e57
...@@ -828,11 +828,7 @@ void AgendaView::init(const QDate &start, const QDate &end) ...@@ -828,11 +828,7 @@ void AgendaView::init(const QDate &start, const QDate &end)
updateTimeBarWidth(); updateTimeBarWidth();
// Don't call it now, bottom agenda isn't fully up yet // Don't call it now, bottom agenda isn't fully up yet
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, &AgendaView::alignAgendas, Qt::QueuedConnection); QMetaObject::invokeMethod(this, &AgendaView::alignAgendas, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "alignAgendas", Qt::QueuedConnection);
#endif
// Whoever changes this code, remember to leave createDayLabels() // Whoever changes this code, remember to leave createDayLabels()
// inside the ctor, so it's always called before readSettings(), so // inside the ctor, so it's always called before readSettings(), so
...@@ -1594,11 +1590,7 @@ void AgendaView::updateEventDates(AgendaItem *item, bool addIncidence, Akonadi:: ...@@ -1594,11 +1590,7 @@ void AgendaView::updateEventDates(AgendaItem *item, bool addIncidence, Akonadi::
if (td->dtDue().toLocalTime() == endDt) { if (td->dtDue().toLocalTime() == endDt) {
// No change // No change
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, &AgendaView::updateView, Qt::QueuedConnection); QMetaObject::invokeMethod(this, &AgendaView::updateView, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "updateView", Qt::QueuedConnection);
#endif
return; return;
} }
} }
...@@ -1641,11 +1633,7 @@ void AgendaView::updateEventDates(AgendaItem *item, bool addIncidence, Akonadi:: ...@@ -1641,11 +1633,7 @@ void AgendaView::updateEventDates(AgendaItem *item, bool addIncidence, Akonadi::
// cancelling one of the subsequent dialogs. // cancelling one of the subsequent dialogs.
if (!result) { if (!result) {
setChanges(changes() | IncidencesEdited); setChanges(changes() | IncidencesEdited);
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, &AgendaView::updateView, Qt::QueuedConnection); QMetaObject::invokeMethod(this, &AgendaView::updateView, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "updateView", Qt::QueuedConnection);
#endif
return; return;
} }
...@@ -1659,11 +1647,7 @@ void AgendaView::updateEventDates(AgendaItem *item, bool addIncidence, Akonadi:: ...@@ -1659,11 +1647,7 @@ void AgendaView::updateEventDates(AgendaItem *item, bool addIncidence, Akonadi::
// recreated. All others have to!!! // recreated. All others have to!!!
if (incidence->recurs() || incidence->hasRecurrenceId()) { if (incidence->recurs() || incidence->hasRecurrenceId()) {
d->mUpdateItem = aitem; d->mUpdateItem = aitem;
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, &AgendaView::updateView, Qt::QueuedConnection); QMetaObject::invokeMethod(this, &AgendaView::updateView, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "updateView", Qt::QueuedConnection);
#endif
} }
enableAgendaUpdate(true); enableAgendaUpdate(true);
......
...@@ -523,11 +523,7 @@ void EventView::setChanges(Changes changes) ...@@ -523,11 +523,7 @@ void EventView::setChanges(Changes changes)
{ {
Q_D(EventView); Q_D(EventView);
if (d->mChanges == NothingChanged) { if (d->mChanges == NothingChanged) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, &EventView::updateView, Qt::QueuedConnection); QMetaObject::invokeMethod(this, &EventView::updateView, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "updateView", Qt::QueuedConnection);
#endif
} }
d->mChanges = changes; d->mChanges = changes;
......
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