From: David Faure Date: Wed, 10 Jan 2007 17:31:00 +0000 (+0000) Subject: Doesn't need a config.h X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/b8572433e25a9118b38ac1271a8c435cf0930bc0 Doesn't need a config.h Reduce kapplication.h usage to the minimum svn path=/trunk/playground/utils/dolphin/; revision=622088 --- diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index fcfab60f0..c2beb202f 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -22,23 +22,13 @@ #ifndef _DOLPHIN_MAINWINDOW_H_ #define _DOLPHIN_MAINWINDOW_H_ -#ifdef HAVE_CONFIG_H -#include -#endif - -#include #include #include -#include #include -#include - -#include -#include #include "dolphinview.h" -#include "undomanager.h" +#include "undomanager.h" // for DolphinCommand::Type class KPrinter; class KUrl; diff --git a/src/dolphinsettings.cpp b/src/dolphinsettings.cpp index c3dc5fbee..ed8259d74 100644 --- a/src/dolphinsettings.cpp +++ b/src/dolphinsettings.cpp @@ -23,10 +23,10 @@ #include #include -#include #include #include #include +#include #include #include diff --git a/src/main.cpp b/src/main.cpp index d48ef548e..f5a51ee30 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,7 +20,6 @@ #include "dolphinapplication.h" #include "dolphinmainwindow.h" -#include #include #include #include diff --git a/src/progressindicator.cpp b/src/progressindicator.cpp index 1126b823d..6805788eb 100644 --- a/src/progressindicator.cpp +++ b/src/progressindicator.cpp @@ -21,6 +21,7 @@ #include "progressindicator.h" #include "dolphinmainwindow.h" #include "dolphinstatusbar.h" +#include 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(); } }