Commit 3701a34c authored by David Faure's avatar David Faure
Browse files

Small code cleanups in the about page

parent 5a13d42e
......@@ -18,15 +18,7 @@ K_PLUGIN_FACTORY(KonqAboutPageFactory, registerPlugin<KonqAboutPage>();)
Q_GLOBAL_STATIC(KonqAboutPageSingleton, s_staticData)
KonqAboutPageSingleton::KonqAboutPageSingleton()
{
}
KonqAboutPageSingleton::~KonqAboutPageSingleton()
{
}
QString KonqAboutPageSingleton::loadFile(const QString &file)
static QString loadFile(const QString &file)
{
QString res;
if (file.isEmpty()) {
......@@ -360,19 +352,6 @@ KonqAboutPage::KonqAboutPage(QWidget *parentWidget, QObject *parent, const QVari
: KHTMLPart(parentWidget, parent, BrowserViewGUI)
{
Q_UNUSED(args)
#if 0
QTextCodec *codec = KGlobal::locale()->codecForEncoding();
if (codec) {
setEncoding(codec->name(), true);
} else {
setEncoding("iso-8859-1", true);
}
// about:blah isn't a kioslave -> disable View source
QAction *act = actionCollection()->action("viewDocumentSource");
if (act) {
act->setEnabled(false);
}
#endif
}
KonqAboutPage::~KonqAboutPage()
......
......@@ -8,9 +8,6 @@ class QUrl;
class KonqAboutPageSingleton
{
public:
KonqAboutPageSingleton();
~KonqAboutPageSingleton();
QString launch();
QString intro();
QString specs();
......@@ -18,8 +15,6 @@ public:
QString plugins();
private:
static QString loadFile(const QString &file);
QString m_launch_html, m_intro_html, m_specs_html, m_tips_html, m_plugins_html;
};
......@@ -45,7 +40,6 @@ protected:
private:
void serve(const QString &, const QString &);
KHTMLPart *m_doc;
QString m_htmlDoc;
QString m_what;
};
......
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