Commit 5c88ac1f authored by Kevin Ottens's avatar Kevin Ottens

Porting to KXmlGuiWindow.

svn path=/branches/work/kmainwindow-decoupling-branch/kdemultimedia/juk/; revision=654692
parent 9037307d
......@@ -22,7 +22,7 @@
#include <kapplication.h>
#include <kstatusbar.h>
#include <kmainwindow.h>
#include <kxmlguiwindow.h>
#include <klocale.h>
#include <kinputdialog.h>
#include <kurl.h>
......
......@@ -56,7 +56,7 @@ JuK* JuK::m_instance;
////////////////////////////////////////////////////////////////////////////////
JuK::JuK(QWidget *parent) :
KMainWindow(parent, Qt::WDestructiveClose),
KXmlGuiWindow(parent, Qt::WDestructiveClose),
m_systemTray(0),
m_player(PlayerManager::instance()),
m_shuttingDown(false)
......@@ -341,7 +341,7 @@ void JuK::keyPressEvent(QKeyEvent *e)
{
if (e->key() >= Qt::Key_Back && e->key() <= Qt::Key_MediaLast)
e->accept();
KMainWindow::keyPressEvent(e);
KXmlGuiWindow::keyPressEvent(e);
}
/**
......
......@@ -16,7 +16,7 @@
#ifndef JUK_H
#define JUK_H
#include <kmainwindow.h>
#include <kxmlguiwindow.h>
#include "playermanager.h"
#include <QKeyEvent>
......@@ -35,7 +35,7 @@ class SystemTray;
class PlayerManager;
class PlaylistSplitter;
class JuK : public KMainWindow
class JuK : public KXmlGuiWindow
{
Q_OBJECT
......
......@@ -22,7 +22,7 @@
#include "collectionlist.h"
#include "tagtransactionmanager.h"
#include <kmainwindow.h>
#include <kxmlguiwindow.h>
#include <kapplication.h>
#include <kstatusbar.h>
#include <klocale.h>
......@@ -69,7 +69,7 @@ void MusicBrainzLookup::error()
void MusicBrainzLookup::message(const QString &s) const
{
KMainWindow *w = static_cast<KMainWindow *>(kapp->mainWidget());
KXmlGuiWindow *w = static_cast<KXmlGuiWindow *>(kapp->mainWidget());
w->statusBar()->message(QString("%1 (%2)").arg(s).arg(m_file.fileInfo().fileName()), 3000);
}
......
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