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

Remove QT_CHECK

parent f06fc866
......@@ -320,22 +320,14 @@ void ArticleListView::startResizingTitleColumn()
// Interactive so that the user can still resize the column himself if he
// wants to
header()->setSectionResizeMode(ArticleModel::ItemTitleColumn, QHeaderView::Stretch);
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, &ArticleListView::finishResizingTitleColumn, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "finishResizingTitleColumn", Qt::QueuedConnection);
#endif
}
void ArticleListView::finishResizingTitleColumn()
{
if (QApplication::mouseButtons() != Qt::NoButton) {
// Come back later: user is still resizing the widget
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, &ArticleListView::finishResizingTitleColumn, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "finishResizingTitleColumn", Qt::QueuedConnection);
#endif
return;
}
header()->setSectionResizeMode(QHeaderView::Interactive);
......
......@@ -1102,11 +1102,7 @@ void MainWidget::slotArticleDelete()
void MainWidget::slotFramesChanged()
{
// We need to wait till the frame is fully loaded
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(m_part, &Akregator::Part::slotAutoSave, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(m_part, "slotAutoSave", Qt::QueuedConnection);
#endif
}
void MainWidget::slotArticleToggleKeepFlag(bool)
......
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