mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
Doesn't need a config.h
Reduce kapplication.h usage to the minimum svn path=/trunk/playground/utils/dolphin/; revision=622088
This commit is contained in:
parent
d8ab89171d
commit
b8572433e2
|
@ -22,23 +22,13 @@
|
|||
#ifndef _DOLPHIN_MAINWINDOW_H_
|
||||
#define _DOLPHIN_MAINWINDOW_H_
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <kapplication.h>
|
||||
#include <kmainwindow.h>
|
||||
#include <ksortablelist.h>
|
||||
#include <kvbox.h>
|
||||
|
||||
#include <q3valuelist.h>
|
||||
#include <q3ptrlist.h>
|
||||
|
||||
#include <QCloseEvent>
|
||||
#include <QString>
|
||||
|
||||
#include "dolphinview.h"
|
||||
#include "undomanager.h"
|
||||
#include "undomanager.h" // for DolphinCommand::Type
|
||||
|
||||
class KPrinter;
|
||||
class KUrl;
|
||||
|
|
|
@ -23,10 +23,10 @@
|
|||
#include <assert.h>
|
||||
#include <qdir.h>
|
||||
|
||||
#include <kapplication.h>
|
||||
#include <kbookmark.h>
|
||||
#include <kbookmarkmanager.h>
|
||||
#include <kicontheme.h>
|
||||
#include <kinstance.h>
|
||||
#include <klocale.h>
|
||||
#include <kstandarddirs.h>
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include "dolphinapplication.h"
|
||||
#include "dolphinmainwindow.h"
|
||||
#include <kapplication.h>
|
||||
#include <kaboutdata.h>
|
||||
#include <kcmdlineargs.h>
|
||||
#include <klocale.h>
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "progressindicator.h"
|
||||
#include "dolphinmainwindow.h"
|
||||
#include "dolphinstatusbar.h"
|
||||
#include <QApplication>
|
||||
|
||||
ProgressIndicator::ProgressIndicator(DolphinMainWindow* mainWindow,
|
||||
const QString& progressText,
|
||||
|
@ -74,7 +75,7 @@ void ProgressIndicator::execOperation()
|
|||
DolphinStatusBar* statusBar = m_mainWindow->activeView()->statusBar();
|
||||
statusBar->setProgress((m_operationsIndex * 100) / m_operationsCount);
|
||||
#warning "EVIL, DANGER, FIRE"
|
||||
kapp->processEvents();
|
||||
qApp->processEvents();
|
||||
statusBar->repaint();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user