Commit 081a634c authored by David Faure's avatar David Faure
Browse files

Remove now unused KParts::BrowserInterface subclass

parent f8b382b1
......@@ -50,16 +50,8 @@
using namespace Akregator;
BrowserInterface::BrowserInterface(MainWindow *shell, const QString &name)
: KParts::BrowserInterface(shell)
{
setObjectName(name);
m_shell = shell;
}
MainWindow::MainWindow(QWidget *parent)
: KParts::MainWindow(parent)
, m_browserIface(new BrowserInterface(this, QStringLiteral("browser_interface")))
, m_part()
, m_statusLabel(new KSqueezedTextLabel(this))
{
......@@ -119,7 +111,6 @@ bool MainWindow::loadPart()
connect(m_part.data(), &Part::setWindowCaption, this, qOverload<const QString &>(&KMainWindow::setCaption));
createGUI(m_part);
browserExtension(m_part)->setBrowserInterface(m_browserIface);
setAutoSaveSettings();
return true;
}
......@@ -193,11 +184,6 @@ void MainWindow::applyNewToolbarConfig()
applyMainWindowSettings(KSharedConfig::openConfig()->group(autoSaveGroup()));
}
KParts::BrowserExtension *MainWindow::browserExtension(KParts::ReadOnlyPart *p)
{
return KParts::BrowserExtension::childObject(p);
}
void MainWindow::slotQuit()
{
qApp->quit();
......
......@@ -26,8 +26,6 @@
#define AKREGATOR_MAINWINDOW_H
#include <kparts/mainwindow.h>
#include <kparts/browserinterface.h>
#include <kparts/browserextension.h>
#include <kio/job.h>
#include <QPointer>
......@@ -38,17 +36,6 @@ namespace Akregator {
class Part;
class MainWindow;
class BrowserInterface : public KParts::BrowserInterface
{
Q_OBJECT
public:
explicit BrowserInterface(Akregator::MainWindow *shell, const QString &name);
private:
Akregator::MainWindow *m_shell;
};
/**
* This is the application "Shell". It has a menubar, toolbar, and
* statusbar but relies on the "Part" to do all the real work.
......@@ -100,10 +87,6 @@ protected:
protected Q_SLOTS:
void slotQuit();
private:
KParts::BrowserExtension *browserExtension(KParts::ReadOnlyPart *p);
private Q_SLOTS:
void optionsConfigureKeys();
......@@ -112,8 +95,6 @@ private Q_SLOTS:
void slotOnShutdown();
private:
BrowserInterface *m_browserIface = nullptr;
QPointer<Akregator::Part> m_part;
KSqueezedTextLabel *m_statusLabel = nullptr;
};
......
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