Commit 9e662646 authored by Harald Sitter's avatar Harald Sitter 🦄

port away from browser extension compat

this extension is only relevant for konqueror and had no impact on actual
functionality so it is a simply removal of affected code
parent cea5c2b3
......@@ -74,8 +74,6 @@ MainWindow::MainWindow()
connect(m_part, &Part::canceled, this, &MainWindow::scanFailed);
connect(m_part, &Part::canceled, m_histories, &HistoryCollection::stop);
#warning port
// connect(BrowserExtension::childObject(m_part), &KParts::BrowserExtension::openUrlNotify, this, &MainWindow::urlAboutToChange);
const KConfigGroup config = KSharedConfig::openConfig()->group("general");
m_combo->setHistoryItems(config.readPathEntry("comboHistory", QStringList()));
......
......@@ -50,16 +50,9 @@
namespace Filelight {
BrowserExtension::BrowserExtension(Part *parent)
// : KParts::BrowserExtension(parent)
: QObject(parent)
{}
Part::Part(QWidget *parentWidget, QObject *parent, const QList<QVariant>&)
: KXmlGuiWindow(parentWidget)
, m_summary(nullptr)
, m_ext(new BrowserExtension(this))
, m_map(nullptr)
, m_started(false)
, m_widget(nullptr)
......@@ -199,10 +192,6 @@ QString Part::prettyUrl() const {
void
Part::updateURL(const QUrl &u)
{
//the map has changed internally, update the interface to reflect this
emit m_ext->openUrlNotify(); //must be done first
emit m_ext->setLocationBarUrl(u.toString(QUrl::PreferLocalFile));
if (m_manager->running())
m_manager->abort();
......
......@@ -40,23 +40,6 @@ namespace Filelight
class Part;
class SummaryWidget;
// COMPAT
class BrowserExtension : public
// KParts::BrowserExtension
QObject
{
Q_OBJECT
public:
explicit BrowserExtension(Part*);
signals:
void openUrlNotify();
void setLocationBarUrl(QString);
};
class Part : public
// KParts::ReadOnlyPart
KXmlGuiWindow
......@@ -92,7 +75,6 @@ private:
QLayout *m_layout;
SummaryWidget *m_summary;
BrowserExtension *m_ext;
RadialMap::Widget *m_map;
QWidget *m_stateWidget;
class ScanManager *m_manager;
......
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