summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-04-04 07:36:42 +0200
committerPali Roh├ír <[email protected]>2017-12-22 09:10:28 +0100
commitc080678e0d516ffc427e6e9fe17bf2ff5027df28 (patch)
tree34f32d9735e8529aad1b53bf3053a89283092e3e
parenta448c90e9d790804652f3c75147fcaddfbc3e20a (diff)
Clean not necessary includes
-rw-r--r--libkopete/avdevice/videodevice.cpp1
-rw-r--r--libkopete/avdevice/videodevice.h1
-rw-r--r--libkopete/avdevice/videodevicepool.cpp1
-rw-r--r--libkopete/contactlist/xmlcontactstorage.cpp2
-rw-r--r--libkopete/kabcpersistence.cpp1
-rw-r--r--libkopete/kopeteaccount.cpp5
-rw-r--r--libkopete/kopeteaccountmanager.h1
-rw-r--r--libkopete/kopeteavatarmanager.cpp1
-rw-r--r--libkopete/kopeteavatarmanager.h1
-rw-r--r--libkopete/kopeteblacklister.h1
-rw-r--r--libkopete/kopetechatsession.cpp1
-rw-r--r--libkopete/kopetechatsession.h1
-rw-r--r--libkopete/kopetechatsessionmanager.h1
-rw-r--r--libkopete/kopetecommand.h1
-rw-r--r--libkopete/kopetecommandhandler.h1
-rw-r--r--libkopete/kopetecontact.cpp9
-rw-r--r--libkopete/kopetecontactlist.cpp1
-rw-r--r--libkopete/kopetecontactlist.h2
-rw-r--r--libkopete/kopetecontactlistelement.h1
-rw-r--r--libkopete/kopeteglobal.cpp1
-rw-r--r--libkopete/kopetegroup.cpp1
-rw-r--r--libkopete/kopeteidentity.cpp2
-rw-r--r--libkopete/kopeteidentitymanager.h1
-rw-r--r--libkopete/kopeteinfoevent.cpp1
-rw-r--r--libkopete/kopeteinfoevent.h1
-rw-r--r--libkopete/kopeteinfoeventmanager.cpp1
-rw-r--r--libkopete/kopetemessagehandlerchain.h1
-rw-r--r--libkopete/kopetemetacontact.cpp1
-rw-r--r--libkopete/kopetemimetypehandler.h1
-rw-r--r--libkopete/kopeteonlinestatusmanager.h3
-rw-r--r--libkopete/kopetepassword.cpp5
-rw-r--r--libkopete/kopeteplugin.h1
-rw-r--r--libkopete/kopetepluginmanager.cpp3
-rw-r--r--libkopete/kopeteproperties.h1
-rw-r--r--libkopete/kopetepropertycontainer.h1
-rw-r--r--libkopete/kopeteprotocol.cpp1
-rw-r--r--libkopete/kopeteprotocol.h1
-rw-r--r--libkopete/kopetestatusmanager.cpp1
-rw-r--r--libkopete/kopetetransfermanager.cpp1
-rw-r--r--libkopete/kopeteutils.cpp2
-rw-r--r--libkopete/kopeteutils.h1
-rw-r--r--libkopete/kopetewalletmanager.cpp1
-rw-r--r--libkopete/private/kopeteutils_private.cpp1
-rw-r--r--libkopete/private/kopeteutils_private.h1
-rw-r--r--libkopete/private/kopeteviewmanager.cpp1
-rw-r--r--libkopete/tasks/kopetetask.h1
-rw-r--r--libkopete/ui/addressbooklinkwidget.cpp1
-rw-r--r--libkopete/ui/addressbookselectordialog.cpp2
-rw-r--r--libkopete/ui/addresseeitem.cpp1
-rw-r--r--libkopete/ui/addresseeitem.h1
-rw-r--r--libkopete/ui/avatardialog.cpp1
-rw-r--r--libkopete/ui/avatarselectorwidget.cpp3
-rw-r--r--libkopete/ui/avatarwebcamdialog.cpp1
-rw-r--r--libkopete/ui/collapsiblewidget.cpp3
-rw-r--r--libkopete/ui/collapsiblewidget.h1
-rw-r--r--libkopete/ui/contactaddednotifydialog.cpp2
-rw-r--r--libkopete/ui/kopetecontactaction.cpp1
-rw-r--r--libkopete/ui/kopeteinfodialog.cpp1
-rw-r--r--libkopete/ui/kopetelistview.cpp1
-rw-r--r--libkopete/ui/kopetestdaction.cpp1
60 files changed, 3 insertions, 87 deletions
diff --git a/libkopete/avdevice/videodevice.cpp b/libkopete/avdevice/videodevice.cpp
index efb78c8..d067220 100644
--- a/libkopete/avdevice/videodevice.cpp
+++ b/libkopete/avdevice/videodevice.cpp
@@ -23,6 +23,7 @@
#include <cstdlib>
#include <cerrno>
#include <cstring>
+#include <KLocalizedString>
#include <kdebug.h>
diff --git a/libkopete/avdevice/videodevice.h b/libkopete/avdevice/videodevice.h
index 1c0f85c..0ecec71 100644
--- a/libkopete/avdevice/videodevice.h
+++ b/libkopete/avdevice/videodevice.h
@@ -76,7 +76,6 @@
#include <qstring.h>
#include <qfile.h>
#include <qimage.h>
-#include <KLocalizedString>
#include "videoinput.h"
diff --git a/libkopete/avdevice/videodevicepool.cpp b/libkopete/avdevice/videodevicepool.cpp
index 5a4f645..8c5624c 100644
--- a/libkopete/avdevice/videodevicepool.cpp
+++ b/libkopete/avdevice/videodevicepool.cpp
@@ -25,7 +25,6 @@
#include <cerrno>
#include <cstring>
-#include <KLocalizedString>
#include <kglobal.h>
#include <kconfig.h>
#include <kconfiggroup.h>
diff --git a/libkopete/contactlist/xmlcontactstorage.cpp b/libkopete/contactlist/xmlcontactstorage.cpp
index 620e2e9..f70d6b0 100644
--- a/libkopete/contactlist/xmlcontactstorage.cpp
+++ b/libkopete/contactlist/xmlcontactstorage.cpp
@@ -25,9 +25,7 @@
#include <QFile>
#include <QUuid>
#include <QRegExp>
-#include <QLocale>
#include <QSaveFile>
-#include <QTextCodec>
#include <QTextStream>
#include <QStandardPaths>
diff --git a/libkopete/kabcpersistence.cpp b/libkopete/kabcpersistence.cpp
index 8c5338e..19703d9 100644
--- a/libkopete/kabcpersistence.cpp
+++ b/libkopete/kabcpersistence.cpp
@@ -22,7 +22,6 @@
#include <KLocalizedString>
#include <kmessagebox.h>
#include <kmessagebox_queued.h>
-#include <KConfigGroup>
#include <QString>
#include <QTimer>
diff --git a/libkopete/kopeteaccount.cpp b/libkopete/kopeteaccount.cpp
index 2dcdb21..685d305 100644
--- a/libkopete/kopeteaccount.cpp
+++ b/libkopete/kopeteaccount.cpp
@@ -20,20 +20,18 @@
#include "kopeteaccount.h"
-#include <QApplication>
#include <QWidget>
#include <QTimer>
#include <QPixmap>
#include <QIcon>
#include <QPointer>
#include <QDialog>
-#include <QLocale>
#include <QIcon>
#include <QAction>
-#include <QMenu>
#include <QDialogButtonBox>
#include <QPushButton>
#include <QVBoxLayout>
+#include <QMenu>
#include <kconfig.h>
@@ -41,7 +39,6 @@
#include <kmessagebox.h>
#include <kmessagebox_queued.h>
#include <KSharedConfig>
-#include <KAboutData>
#include <kactionmenu.h>
#include <kconfiggroup.h>
#include <KConfigGroup>
diff --git a/libkopete/kopeteaccountmanager.h b/libkopete/kopeteaccountmanager.h
index 6001113..a7767ff 100644
--- a/libkopete/kopeteaccountmanager.h
+++ b/libkopete/kopeteaccountmanager.h
@@ -21,7 +21,6 @@
#include <QtCore/QObject>
#include <QColor>
-#include <QDebug>
#include "libkopete_export.h"
#include "libkopete_debug.h"
diff --git a/libkopete/kopeteavatarmanager.cpp b/libkopete/kopeteavatarmanager.cpp
index 8937d09..b2f1654 100644
--- a/libkopete/kopeteavatarmanager.cpp
+++ b/libkopete/kopeteavatarmanager.cpp
@@ -19,7 +19,6 @@
// Qt includes
#include <QBuffer>
-#include <QCoreApplication>
#include <QFile>
#include <QPointer>
#include <QStringList>
diff --git a/libkopete/kopeteavatarmanager.h b/libkopete/kopeteavatarmanager.h
index 88fb5c4..37f720e 100644
--- a/libkopete/kopeteavatarmanager.h
+++ b/libkopete/kopeteavatarmanager.h
@@ -20,7 +20,6 @@
#include <QtCore/QObject>
#include <QtCore/QList>
#include <QImage>
-#include <QDebug>
#include <kjob.h>
diff --git a/libkopete/kopeteblacklister.h b/libkopete/kopeteblacklister.h
index 84630e3..bafcb95 100644
--- a/libkopete/kopeteblacklister.h
+++ b/libkopete/kopeteblacklister.h
@@ -16,7 +16,6 @@
#ifndef KOPETEBLACKLISTER_H
#define KOPETEBLACKLISTER_H
-#include <QDebug>
#include <QtCore/QObject>
#include "libkopete_debug.h"
diff --git a/libkopete/kopetechatsession.cpp b/libkopete/kopetechatsession.cpp
index 68a1da6..6a9d1e0 100644
--- a/libkopete/kopetechatsession.cpp
+++ b/libkopete/kopetechatsession.cpp
@@ -22,7 +22,6 @@
#include "kopetechatsession.h"
-#include <QApplication>
#include <QFile>
#include <QRegExp>
#include <QPointer>
diff --git a/libkopete/kopetechatsession.h b/libkopete/kopetechatsession.h
index 7376037..b1a4b6d 100644
--- a/libkopete/kopetechatsession.h
+++ b/libkopete/kopetechatsession.h
@@ -25,7 +25,6 @@
#define KOPETECHATSESSION_H
#include <QtCore/QObject>
-#include <QDebug>
#include <kxmlguiclient.h>
#include "libkopete_export.h"
diff --git a/libkopete/kopetechatsessionmanager.h b/libkopete/kopetechatsessionmanager.h
index 94727fc..7667119 100644
--- a/libkopete/kopetechatsessionmanager.h
+++ b/libkopete/kopetechatsessionmanager.h
@@ -20,7 +20,6 @@
#include <QtCore/QObject>
#include <QtCore/QList>
-#include <QDebug>
#include "kopetechatsession.h"
#include "kopetemessage.h"
diff --git a/libkopete/kopetecommand.h b/libkopete/kopetecommand.h
index caafd10..4714b0d 100644
--- a/libkopete/kopetecommand.h
+++ b/libkopete/kopetecommand.h
@@ -18,7 +18,6 @@
#ifndef KOPETECOMMAND_H
#define KOPETECOMMAND_H
-#include <QDebug>
#include <QtCore/QObject>
#include <QAction>
diff --git a/libkopete/kopetecommandhandler.h b/libkopete/kopetecommandhandler.h
index 841ddfe..da78440 100644
--- a/libkopete/kopetecommandhandler.h
+++ b/libkopete/kopetecommandhandler.h
@@ -18,7 +18,6 @@
#define KOPETECOMMANDHANDLER_H
#include <QtCore/QMultiHash>
-#include <QDebug>
#include <QKeySequence>
#include <kprocess.h>
diff --git a/libkopete/kopetecontact.cpp b/libkopete/kopetecontact.cpp
index 22dbc6c..1af44c6 100644
--- a/libkopete/kopetecontact.cpp
+++ b/libkopete/kopetecontact.cpp
@@ -19,9 +19,6 @@
#include "kopetecontact.h"
-#include <QApplication>
-#include <QTextDocument>
-#include <QTimer>
#include <QDialog>
#include <QIcon>
#include <QMenu>
@@ -52,14 +49,8 @@
#include "kopetedeletecontacttask.h"
//For the moving to another metacontact dialog
-#include <QLabel>
-#include <QImage>
-#include <QMimeData>
-#include <QMimeType>
#include <QVBoxLayout>
-#include <QTreeWidget>
#include <QCheckBox>
-#include <KConfigGroup>
#include <QDialogButtonBox>
#include <QPushButton>
diff --git a/libkopete/kopetecontactlist.cpp b/libkopete/kopetecontactlist.cpp
index 51b9780..44671ce 100644
--- a/libkopete/kopetecontactlist.cpp
+++ b/libkopete/kopetecontactlist.cpp
@@ -31,7 +31,6 @@
#include <kapplication.h>
#include <kdebug.h>
#include <kglobal.h>
-#include <QSaveFile>
// Kopete includes
#include "kopeteaccount.h"
diff --git a/libkopete/kopetecontactlist.h b/libkopete/kopetecontactlist.h
index ea26d19..b10c138 100644
--- a/libkopete/kopetecontactlist.h
+++ b/libkopete/kopetecontactlist.h
@@ -21,9 +21,7 @@
#include <QtCore/QObject>
#include <QtCore/QList>
-#include <QStandardItemModel>
-#include <QUrl>
#include "libkopete_export.h"
diff --git a/libkopete/kopetecontactlistelement.h b/libkopete/kopetecontactlistelement.h
index 33b36f0..3733ee1 100644
--- a/libkopete/kopetecontactlistelement.h
+++ b/libkopete/kopetecontactlistelement.h
@@ -21,7 +21,6 @@
#include <QtCore/QList>
#include <QtCore/QMap>
-#include <QStandardItem>
#include "libkopete_export.h"
#include "kopetepropertycontainer.h"
diff --git a/libkopete/kopeteglobal.cpp b/libkopete/kopeteglobal.cpp
index 16106c8..7d98d67 100644
--- a/libkopete/kopeteglobal.cpp
+++ b/libkopete/kopeteglobal.cpp
@@ -19,7 +19,6 @@
#include "kopeteuiglobal.h"
#include <QtCore/QLatin1String>
-#include <QApplication>
#include <kdebug.h>
#include <KLocalizedString>
diff --git a/libkopete/kopetegroup.cpp b/libkopete/kopetegroup.cpp
index 19c943e..5452240 100644
--- a/libkopete/kopetegroup.cpp
+++ b/libkopete/kopetegroup.cpp
@@ -24,7 +24,6 @@
#include "kopetecontact.h"
#include "kopetechatsession.h"
-#include <QIcon>
#include <KLocalizedString>
namespace Kopete {
diff --git a/libkopete/kopeteidentity.cpp b/libkopete/kopeteidentity.cpp
index 3ad9ece..993cbcf 100644
--- a/libkopete/kopeteidentity.cpp
+++ b/libkopete/kopeteidentity.cpp
@@ -22,13 +22,11 @@
#include "kopetecontact.h"
#include "kopeteprotocol.h"
-#include <QStringList>
#include <KDebug>
#include <KConfigGroup>
#include <KSharedConfigPtr>
#include <KLocalizedString>
#include <KRandom>
-#include <QMenu>
#include <KSharedConfig>
diff --git a/libkopete/kopeteidentitymanager.h b/libkopete/kopeteidentitymanager.h
index f9a1549..1d0b6b5 100644
--- a/libkopete/kopeteidentitymanager.h
+++ b/libkopete/kopeteidentitymanager.h
@@ -19,7 +19,6 @@
#define __kopeteidentitymanager_h__
#include <QtCore/QObject>
-#include <QDebug>
#include "libkopete_debug.h"
#include "libkopete_export.h"
diff --git a/libkopete/kopeteinfoevent.cpp b/libkopete/kopeteinfoevent.cpp
index f1dbd44..dcf7b28 100644
--- a/libkopete/kopeteinfoevent.cpp
+++ b/libkopete/kopeteinfoevent.cpp
@@ -16,7 +16,6 @@
#include "kopeteinfoevent.h"
#include "kopeteinfoeventmanager.h"
-#include <QStringList>
#include <kdebug.h>
diff --git a/libkopete/kopeteinfoevent.h b/libkopete/kopeteinfoevent.h
index f1dbb4a..dd8d0b2 100644
--- a/libkopete/kopeteinfoevent.h
+++ b/libkopete/kopeteinfoevent.h
@@ -19,7 +19,6 @@
#include <QMap>
#include <QObject>
#include <QString>
-#include <QDebug>
#include "libkopete_export.h"
#include "libkopete_debug.h"
diff --git a/libkopete/kopeteinfoeventmanager.cpp b/libkopete/kopeteinfoeventmanager.cpp
index 152cdba..1a15758 100644
--- a/libkopete/kopeteinfoeventmanager.cpp
+++ b/libkopete/kopeteinfoeventmanager.cpp
@@ -17,7 +17,6 @@
#include "kopeteinfoevent.h"
#include <QApplication>
-#include <QStringList>
namespace Kopete {
class InfoEventManager::Private
diff --git a/libkopete/kopetemessagehandlerchain.h b/libkopete/kopetemessagehandlerchain.h
index c6a7103..b31afee 100644
--- a/libkopete/kopetemessagehandlerchain.h
+++ b/libkopete/kopetemessagehandlerchain.h
@@ -18,7 +18,6 @@
#define KOPETEMESSAGEHANDLERCHAIN_H
#include <QtCore/QObject>
-#include <QDebug>
#include <kdemacros.h>
#include <QExplicitlySharedDataPointer>
diff --git a/libkopete/kopetemetacontact.cpp b/libkopete/kopetemetacontact.cpp
index 6442cc9..85a8595 100644
--- a/libkopete/kopetemetacontact.cpp
+++ b/libkopete/kopetemetacontact.cpp
@@ -21,7 +21,6 @@
#include "kopetemetacontact.h"
#include "kopetemetacontact_p.h"
-#include <QTextDocument>
#include <kcontacts/addressee.h>
diff --git a/libkopete/kopetemimetypehandler.h b/libkopete/kopetemimetypehandler.h
index 3054a48..1240c47 100644
--- a/libkopete/kopetemimetypehandler.h
+++ b/libkopete/kopetemimetypehandler.h
@@ -19,7 +19,6 @@
#define KOPETEMIMETYPEHANDLER_H
#include <QUrl>
-#include <QDebug>
class QString;
class QStringList;
diff --git a/libkopete/kopeteonlinestatusmanager.h b/libkopete/kopeteonlinestatusmanager.h
index 1bdb793..4350966 100644
--- a/libkopete/kopeteonlinestatusmanager.h
+++ b/libkopete/kopeteonlinestatusmanager.h
@@ -22,10 +22,7 @@
#include "libkopete_debug.h"
#include <QObject>
-#include <QFlags>
-#include <QMap>
#include <QIcon>
-#include <QDebug>
class QPixmap;
class QColor;
diff --git a/libkopete/kopetepassword.cpp b/libkopete/kopetepassword.cpp
index b883f4b..eb09695 100644
--- a/libkopete/kopetepassword.cpp
+++ b/libkopete/kopetepassword.cpp
@@ -20,12 +20,7 @@
#include <KWallet/kwallet.h>
-#include <QApplication>
-#include <QLabel>
-#include <QLineEdit>
#include <QCheckBox>
-#include <QDialog>
-#include <QDebug>
#include <KGlobal>
#include <kconfig.h>
diff --git a/libkopete/kopeteplugin.h b/libkopete/kopeteplugin.h
index 2418210..dc913e0 100644
--- a/libkopete/kopeteplugin.h
+++ b/libkopete/kopeteplugin.h
@@ -26,7 +26,6 @@
#include <KAboutData>
#include <QObject>
-#include <QDebug>
#include "libkopete_debug.h"
#include "libkopete_export.h"
diff --git a/libkopete/kopetepluginmanager.cpp b/libkopete/kopetepluginmanager.cpp
index 851136a..3cca4aa 100644
--- a/libkopete/kopetepluginmanager.cpp
+++ b/libkopete/kopetepluginmanager.cpp
@@ -25,12 +25,9 @@
#include <valgrind/valgrind.h>
#endif
-#include <QUrl>
-#include <QFile>
#include <QTimer>
#include <QStack>
#include <QRegExp>
-#include <QApplication>
#include <KDebug>
#include <KConfig>
diff --git a/libkopete/kopeteproperties.h b/libkopete/kopeteproperties.h
index 649cd8b..0227c78 100644
--- a/libkopete/kopeteproperties.h
+++ b/libkopete/kopeteproperties.h
@@ -19,7 +19,6 @@
#include <QMultiHash>
#include <QVariant>
-#include <QDebug>
#include <typeinfo>
diff --git a/libkopete/kopetepropertycontainer.h b/libkopete/kopetepropertycontainer.h
index 5c281c9..351de69 100644
--- a/libkopete/kopetepropertycontainer.h
+++ b/libkopete/kopetepropertycontainer.h
@@ -22,7 +22,6 @@
#define KOPETEPROPERTYCONTAINER_H
#include <QtCore/QObject>
-#include <QDebug>
#include <kdemacros.h>
#include "kopeteglobal.h"
diff --git a/libkopete/kopeteprotocol.cpp b/libkopete/kopeteprotocol.cpp
index 75beed2..fe8e3f7 100644
--- a/libkopete/kopeteprotocol.cpp
+++ b/libkopete/kopeteprotocol.cpp
@@ -20,7 +20,6 @@
#include "kopeteprotocol.h"
#include <kdebug.h>
-#include <QAction>
#include <KLocalizedString>
#include <kjob.h>
diff --git a/libkopete/kopeteprotocol.h b/libkopete/kopeteprotocol.h
index 4039248..38a50fa 100644
--- a/libkopete/kopeteprotocol.h
+++ b/libkopete/kopeteprotocol.h
@@ -22,7 +22,6 @@
#define KOPETEPROTOCOL_H
#include <QtCore/QFlags>
-#include <QDebug>
#include "kopeteplugin.h"
#include "kopeteonlinestatus.h"
diff --git a/libkopete/kopetestatusmanager.cpp b/libkopete/kopetestatusmanager.cpp
index ce78c75..74ab157 100644
--- a/libkopete/kopetestatusmanager.cpp
+++ b/libkopete/kopetestatusmanager.cpp
@@ -28,7 +28,6 @@
#include <QPushButton>
#include <QVBoxLayout>
#include <QStandardPaths>
-#include <QTextCodec>
#include <kmessagebox.h>
#include <kmessagebox_queued.h>
diff --git a/libkopete/kopetetransfermanager.cpp b/libkopete/kopetetransfermanager.cpp
index d97694c..3344dd4 100644
--- a/libkopete/kopetetransfermanager.cpp
+++ b/libkopete/kopetetransfermanager.cpp
@@ -21,7 +21,6 @@
#include <QDebug>
#include <QtCore/QTimerEvent>
-#include <QTextDocument>
#include <kfiledialog.h>
#include <kfileitem.h>
diff --git a/libkopete/kopeteutils.cpp b/libkopete/kopeteutils.cpp
index b922ccf..d22cf73 100644
--- a/libkopete/kopeteutils.cpp
+++ b/libkopete/kopeteutils.cpp
@@ -19,9 +19,7 @@
#include "kopeteutils.h"
-#include <QMap>
#include <QPixmap>
-#include <QByteArray>
#include <kmessagebox.h>
#include <kmessagebox_queued.h>
diff --git a/libkopete/kopeteutils.h b/libkopete/kopeteutils.h
index fe12364..3d382c6 100644
--- a/libkopete/kopeteutils.h
+++ b/libkopete/kopeteutils.h
@@ -18,7 +18,6 @@
#ifndef KOPETE_UTILS_H
#define KOPETE_UTILS_H
-#include <QObject>
#include <QString>
#include <QPixmap>
diff --git a/libkopete/kopetewalletmanager.cpp b/libkopete/kopetewalletmanager.cpp
index 5da1e5c..fb739cb 100644
--- a/libkopete/kopetewalletmanager.cpp
+++ b/libkopete/kopetewalletmanager.cpp
@@ -22,7 +22,6 @@
#include <QTimer>
#include <QWidget>
-#include <QApplication>
static WId mainWindowID()
{
diff --git a/libkopete/private/kopeteutils_private.cpp b/libkopete/private/kopeteutils_private.cpp
index 684e55f..2b4edad 100644
--- a/libkopete/private/kopeteutils_private.cpp
+++ b/libkopete/private/kopeteutils_private.cpp
@@ -16,7 +16,6 @@
#include "kopeteutils_private.h"
#include <QApplication>
-#include <QMap>
#include <kmessagebox.h>
#include <kmessagebox_queued.h>
diff --git a/libkopete/private/kopeteutils_private.h b/libkopete/private/kopeteutils_private.h
index cecac73..d32c852 100644
--- a/libkopete/private/kopeteutils_private.h
+++ b/libkopete/private/kopeteutils_private.h
@@ -21,7 +21,6 @@
#include <QMap>
#include <QObject>
#include <QString>
-#include <QPixmap>
class KNotification;
diff --git a/libkopete/private/kopeteviewmanager.cpp b/libkopete/private/kopeteviewmanager.cpp
index 00f87b0..27ceb22 100644
--- a/libkopete/private/kopeteviewmanager.cpp
+++ b/libkopete/private/kopeteviewmanager.cpp
@@ -17,7 +17,6 @@
#include "kopeteviewmanager.h"
#include <QList>
-#include <QTextDocument>
#include <QtAlgorithms>
#include <kconfig.h>
diff --git a/libkopete/tasks/kopetetask.h b/libkopete/tasks/kopetetask.h
index 5ff3de5..1dbfb18 100644
--- a/libkopete/tasks/kopetetask.h
+++ b/libkopete/tasks/kopetetask.h
@@ -18,7 +18,6 @@
#ifndef KOPETETASK_H
#define KOPETETASK_H
-#include <QDebug>
#include <kcompositejob.h>
diff --git a/libkopete/ui/addressbooklinkwidget.cpp b/libkopete/ui/addressbooklinkwidget.cpp
index 6dd993b..3d59931 100644
--- a/libkopete/ui/addressbooklinkwidget.cpp
+++ b/libkopete/ui/addressbooklinkwidget.cpp
@@ -24,7 +24,6 @@
#include "addressbooklinkwidget.h"
#include <qapplication.h>
-#include <QLineEdit>
#include <KLocalizedString>
#include <QPushButton>
diff --git a/libkopete/ui/addressbookselectordialog.cpp b/libkopete/ui/addressbookselectordialog.cpp
index 0a51631..306617a 100644
--- a/libkopete/ui/addressbookselectordialog.cpp
+++ b/libkopete/ui/addressbookselectordialog.cpp
@@ -23,11 +23,9 @@
#include <QTreeWidgetItem>
#include <QVBoxLayout>
-#include <KLocalizedString>
#include <QDialog>
#include <QPointer>
#include <ktreewidgetsearchline.h>
-#include <KConfigGroup>
#include <QDialogButtonBox>
#include <QPushButton>
diff --git a/libkopete/ui/addresseeitem.cpp b/libkopete/ui/addresseeitem.cpp
index b22c595..5bf3813 100644
--- a/libkopete/ui/addresseeitem.cpp
+++ b/libkopete/ui/addresseeitem.cpp
@@ -25,7 +25,6 @@
#include <QPixmap>
#include <QIcon>
-#include <KLocalizedString>
#include <kdebug.h>
AddresseeItem::AddresseeItem(QTreeWidget *parent, const KContacts::Addressee &addressee)
diff --git a/libkopete/ui/addresseeitem.h b/libkopete/ui/addresseeitem.h
index ebe4dca..11df0dc 100644
--- a/libkopete/ui/addresseeitem.h
+++ b/libkopete/ui/addresseeitem.h
@@ -21,7 +21,6 @@
#ifndef ADDRESSEEITEM_H
#define ADDRESSEEITEM_H
-#include <QLineEdit>
#include <QTreeWidget>
#include "addressbookselectorwidget.h"
diff --git a/libkopete/ui/avatardialog.cpp b/libkopete/ui/avatardialog.cpp
index 68333ba..d7756ac 100644
--- a/libkopete/ui/avatardialog.cpp
+++ b/libkopete/ui/avatardialog.cpp
@@ -24,7 +24,6 @@
#include <QDialogButtonBox>
// KDE includes
-#include <KConfigGroup>
#include <KLocalizedString>
// Kopete includes
diff --git a/libkopete/ui/avatarselectorwidget.cpp b/libkopete/ui/avatarselectorwidget.cpp
index 0c0eaad..8a65bcb 100644
--- a/libkopete/ui/avatarselectorwidget.cpp
+++ b/libkopete/ui/avatarselectorwidget.cpp
@@ -25,14 +25,11 @@
#include <QListWidgetItem>
#include <QIcon>
#include <QPainter>
-#include <QLocale>
#include <QUrl>
-#include <QDebug>
// KDE includes
#include <kfiledialog.h>
#include <kpixmapregionselectordialog.h>
-#include <KConfigGroup>
#include "ui_avatarselectorwidget.h"
#ifndef VIDEOSUPPORT_DISABLED
diff --git a/libkopete/ui/avatarwebcamdialog.cpp b/libkopete/ui/avatarwebcamdialog.cpp
index c6c9565..706181e 100644
--- a/libkopete/ui/avatarwebcamdialog.cpp
+++ b/libkopete/ui/avatarwebcamdialog.cpp
@@ -24,7 +24,6 @@
#include <QVBoxLayout>
// KDE includes
-#include <KConfigGroup>
// Kopete includes
#ifndef VIDEOSUPPORT_DISABLED
diff --git a/libkopete/ui/collapsiblewidget.cpp b/libkopete/ui/collapsiblewidget.cpp
index 591ad07..c258649 100644
--- a/libkopete/ui/collapsiblewidget.cpp
+++ b/libkopete/ui/collapsiblewidget.cpp
@@ -19,14 +19,13 @@
#include "collapsiblewidget.h"
-#include <QtGui>
#include <QStyle>
#include <QTimeLine>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QStyleOption>
+#include <QPainter>
-#include <KConfigGroup>
/******************************************************************
* Helper classes
diff --git a/libkopete/ui/collapsiblewidget.h b/libkopete/ui/collapsiblewidget.h
index f30ddae..b19af34 100644
--- a/libkopete/ui/collapsiblewidget.h
+++ b/libkopete/ui/collapsiblewidget.h
@@ -25,7 +25,6 @@
#include <QScrollArea>
#include <QLabel>
-#include <QDebug>
#include <QAbstractButton>
#include <libkopete_export.h>
diff --git a/libkopete/ui/contactaddednotifydialog.cpp b/libkopete/ui/contactaddednotifydialog.cpp
index a1978ca..b896905 100644
--- a/libkopete/ui/contactaddednotifydialog.cpp
+++ b/libkopete/ui/contactaddednotifydialog.cpp
@@ -21,11 +21,9 @@
#include <KLocalizedString>
#include <kcombobox.h>
-#include <QLineEdit>
#include <QPushButton>
#include <kcontacts/addressee.h>
-#include <KConfigGroup>
#include <QDialogButtonBox>
#include <QPushButton>
#include <QVBoxLayout>
diff --git a/libkopete/ui/kopetecontactaction.cpp b/libkopete/ui/kopetecontactaction.cpp
index 0cbd7e4..67c1698 100644
--- a/libkopete/ui/kopetecontactaction.cpp
+++ b/libkopete/ui/kopetecontactaction.cpp
@@ -20,7 +20,6 @@
#include "kopetecontact.h"
#include "kopeteonlinestatus.h"
-#include <QIcon>
#include <kactioncollection.h>
diff --git a/libkopete/ui/kopeteinfodialog.cpp b/libkopete/ui/kopeteinfodialog.cpp
index 6f47e2f..24d0bcc 100644
--- a/libkopete/ui/kopeteinfodialog.cpp
+++ b/libkopete/ui/kopeteinfodialog.cpp
@@ -25,7 +25,6 @@
#include <QDialogButtonBox>
#include <KTitleWidget>
-#include <KConfigGroup>
#include <KLocalizedString>
namespace Kopete {
diff --git a/libkopete/ui/kopetelistview.cpp b/libkopete/ui/kopetelistview.cpp
index b031a8f..743dd9e 100644
--- a/libkopete/ui/kopetelistview.cpp
+++ b/libkopete/ui/kopetelistview.cpp
@@ -22,7 +22,6 @@
#include "kopeteglobal.h"
#include "kopetebehaviorsettings.h"
-#include <QApplication>
#include <QStyleOptionSlider>
#include <QStyle>
#include <QWheelEvent>
diff --git a/libkopete/ui/kopetestdaction.cpp b/libkopete/ui/kopetestdaction.cpp
index 639c24a..84a3eb9 100644
--- a/libkopete/ui/kopetestdaction.cpp
+++ b/libkopete/ui/kopetestdaction.cpp
@@ -19,7 +19,6 @@
#include "kopetestdaction.h"
#include <QIcon>
-#include <QApplication>
#include <KLocalizedString>