Commit ca6f027e authored by Luigi Toscano's avatar Luigi Toscano

Port away from KApplication

All remaining instances where just plain QApplication.
parent 67ffed2e
......@@ -17,7 +17,6 @@
#include "deletedialog.h"
#include "ui_deletedialogbase.h"
#include <KApplication>
#include <KStandardGuiItem>
#include <klocale.h>
#include <kiconloader.h>
......
......@@ -900,7 +900,7 @@ void FileRenamer::rename(const PlaylistItemList &items)
if(itemMap.isEmpty() || ConfirmationDialog(map).exec() != QDialog::Accepted)
return;
KApplication::setOverrideCursor(Qt::WaitCursor);
QApplication::setOverrideCursor(Qt::WaitCursor);
for(QMap<QString, QString>::ConstIterator it = map.constBegin();
it != map.constEnd(); ++it)
{
......@@ -915,7 +915,7 @@ void FileRenamer::rename(const PlaylistItemList &items)
processEvents();
}
KApplication::restoreOverrideCursor();
QApplication::restoreOverrideCursor();
if(!errorFiles.isEmpty())
KMessageBox::errorList(0, i18n("The following rename operations failed:\n"), errorFiles);
......
......@@ -118,7 +118,7 @@ JuK::JuK(const QStringList &filesToOpen, QWidget *parent) :
if(firstRun) {
QRect r = rect();
r.moveCenter(KApplication::desktop()->screenGeometry().center());
r.moveCenter(QApplication::desktop()->screenGeometry().center());
move(r.topLeft());
}
......
......@@ -23,9 +23,9 @@
#include "mediafiles.h"
#include <KAboutData>
#include <KApplication>
#include <KWindowSystem>
#include <QApplication>
#include <QDBusConnection>
#include <QDBusMessage>
#include <QWidget>
......@@ -56,7 +56,7 @@ bool MediaPlayer2::CanQuit() const
void MediaPlayer2::Quit() const
{
kapp->quit();
qApp->quit();
}
bool MediaPlayer2::CanSetFullscreen() const
......
......@@ -777,7 +777,7 @@ void Playlist::slotRefresh()
if(l.isEmpty())
l = visibleItems();
KApplication::setOverrideCursor(Qt::WaitCursor);
QApplication::setOverrideCursor(Qt::WaitCursor);
foreach(PlaylistItem *item, l) {
item->refreshFromDisk();
......@@ -790,7 +790,7 @@ void Playlist::slotRefresh()
processEvents();
}
KApplication::restoreOverrideCursor();
QApplication::restoreOverrideCursor();
}
void Playlist::slotRenameFile()
......@@ -880,7 +880,7 @@ void Playlist::slotCoverChanged(int coverId)
void Playlist::slotGuessTagInfo(TagGuesser::Type type)
{
KApplication::setOverrideCursor(Qt::WaitCursor);
QApplication::setOverrideCursor(Qt::WaitCursor);
const PlaylistItemList items = selectedItems();
setDynamicListsFrozen(true);
......@@ -901,7 +901,7 @@ void Playlist::slotGuessTagInfo(TagGuesser::Type type)
dataChanged();
setDynamicListsFrozen(false);
KApplication::restoreOverrideCursor();
QApplication::restoreOverrideCursor();
}
void Playlist::slotReload()
......@@ -1358,7 +1358,7 @@ void Playlist::addFiles(const QStringList &files, PlaylistItem *after)
if(!after)
after = static_cast<PlaylistItem *>(topLevelItem(topLevelItemCount() - 1));
KApplication::setOverrideCursor(Qt::WaitCursor);
QApplication::setOverrideCursor(Qt::WaitCursor);
m_blockDataChanged = true;
......@@ -1374,7 +1374,7 @@ void Playlist::addFiles(const QStringList &files, PlaylistItem *after)
slotWeightDirty();
dataChanged();
KApplication::restoreOverrideCursor();
QApplication::restoreOverrideCursor();
}
void Playlist::refreshAlbums(const PlaylistItemList &items, coverKey id)
......
......@@ -536,7 +536,7 @@ void TagEditor::save(const PlaylistItemList &list)
{
if(!list.isEmpty() && m_dataChanged) {
KApplication::setOverrideCursor(Qt::WaitCursor);
QApplication::setOverrideCursor(Qt::WaitCursor);
m_dataChanged = false;
m_performingSave = true;
......@@ -603,7 +603,7 @@ void TagEditor::save(const PlaylistItemList &list)
TagTransactionManager::instance()->commit();
CollectionList::instance()->dataChanged();
m_performingSave = false;
KApplication::restoreOverrideCursor();
QApplication::restoreOverrideCursor();
}
}
......
......@@ -18,7 +18,6 @@
#include "webimagefetcher.h"
#include <KApplication>
#include <KStatusBar>
#include <KXmlGuiWindow>
#include <KLocale>
......
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