Emit completedWithPendingAction when loading a page with http-equiv="refresh"
... | ... | @@ -48,8 +48,10 @@ |
#include <QDropEvent> | ||
#include <QDBusConnection> | ||
#include <QMimeData> | ||
#ifdef KActivities_FOUND | ||
#endif | ||
#include <kparts_version.h> | ||
#include <KJobWidgets> | ||
#include <KParts/Part> | ||
... | ... | @@ -366,8 +368,12 @@ void KonqView::connectPart() |
this, SLOT(slotStarted(KIO::Job*))); | ||
connect(m_pPart, SIGNAL(completed()), | ||
this, SLOT(slotCompleted())); | ||
connect(m_pPart, SIGNAL(completed(bool)), | ||
this, SLOT(slotCompleted(bool))); | ||
#if KPARTS_VERSION < QT_VERSION_CHECK(5, 81, 0) | ||
connect(m_pPart, QOverload<bool>::of(&KParts::ReadOnlyPart::completed), this, QOverload<bool>::of(&KonqView::slotCompleted)); | ||
#else | ||
connect(m_pPart, &KParts::ReadOnlyPart::completedWithPendingAction, this, [this](){slotCompleted(true);}); | ||
connect(m_pPart, &KParts::ReadOnlyPart::completed, this, &KonqView::slotCompleted); | ||
|
||
#endif | ||
connect(m_pPart, SIGNAL(canceled(QString)), | ||
this, SLOT(slotCanceled(QString))); | ||
connect(m_pPart, SIGNAL(setWindowCaption(QString)), | ||
... | ... |
-
Developer
Broke the compile : @stefanocrocco /home/jenkins/workspace/Applications/konqueror/kf5-qt5 SUSEQt5.15/src/konqview.cpp: In member function ���void KonqView::connectPart()���: 12:00:32 /home/jenkins/workspace/Applications/konqueror/kf5-qt5 SUSEQt5.15/src/konqview.cpp:375:86: error: no matching function for call to ���KonqView::connect(KParts::ReadOnlyPart*&, , KonqView*, )��� 12:00:32 375 | connect(m_pPart, &KParts::ReadOnlyPart::completed, this, &KonqView::slotCompleted);