Commit f59ccd0b authored by Harald Sitter's avatar Harald Sitter 🦄

don't access signals through kparts but Part instead

parent df08798a
......@@ -71,11 +71,11 @@ MainWindow::MainWindow()
stateChanged(QStringLiteral( "scan_failed" )); //bah! doesn't affect the parts' actions, should I add them to the actionCollection here?
connect(m_part, &KParts::ReadOnlyPart::started, this, &MainWindow::scanStarted);
connect(m_part, static_cast<void (KParts::ReadOnlyPart::*)()>(&KParts::ReadOnlyPart::completed), this, &MainWindow::scanCompleted);
connect(m_part, &KParts::ReadOnlyPart::canceled, this, &MainWindow::scanFailed);
connect(m_part, &Part::started, this, &MainWindow::scanStarted);
connect(m_part, static_cast<void (Part::*)()>(&Part::completed), this, &MainWindow::scanCompleted);
connect(m_part, &Part::canceled, this, &MainWindow::scanFailed);
connect(m_part, &KParts::ReadOnlyPart::canceled, m_histories, &HistoryCollection::stop);
connect(m_part, &Part::canceled, m_histories, &HistoryCollection::stop);
connect(BrowserExtension::childObject(m_part), &KParts::BrowserExtension::openUrlNotify, this, &MainWindow::urlAboutToChange);
const KConfigGroup config = KSharedConfig::openConfig()->group("general");
......
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