Commit 486e05b2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

If include is define in .h remove it if it's defined in .cpp too (scripted)

parent 12cb9d4e
Pipeline #38506 failed with stage
in 11 minutes and 23 seconds
......@@ -19,7 +19,6 @@
#include <QApplication>
#include <QDialogButtonBox>
#include <QDomDocument>
#include <QDomElement>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QLabel>
......
......@@ -9,11 +9,9 @@
#include "area.h"
#include <QDebug>
#include <QPolygonF>
#include <QRect>
#include <math.h>
#include "action.h"
#include "annotations.h"
......
......@@ -40,7 +40,6 @@
#include <QMimeDatabase>
#include <QPageSize>
#include <QPrintDialog>
#include <QPrinter>
#include <QRegularExpression>
#include <QScreen>
#include <QStack>
......
......@@ -16,7 +16,6 @@
#include <QFileInfo>
#include <QLabel>
#include <QPrintEngine>
#include <QPrinter>
#include <QShowEvent>
#include <QSize>
#include <QStringList>
......
......@@ -29,7 +29,6 @@
#include <KWallet>
#endif
#include "document.h"
#include "document_p.h"
#include "page.h"
#include "page_p.h"
......
......@@ -12,7 +12,6 @@
#include <QDebug>
#include "fontinfo.h"
#include "generator.h"
#include "utils.h"
using namespace Okular;
......
......@@ -29,7 +29,6 @@
#include "action.h"
#include "annotations.h"
#include "annotations_p.h"
#include "area.h"
#include "debug_p.h"
#include "document.h"
#include "document_p.h"
......@@ -40,7 +39,6 @@
#include "pagesize.h"
#include "pagetransition.h"
#include "rotationjob_p.h"
#include "textpage.h"
#include "textpage_p.h"
#include "tile.h"
#include "tilesmanager_p.h"
......
......@@ -27,7 +27,6 @@
#include "page.h"
#include "textpage.h"
#include "document.h"
#include <cmath>
......
......@@ -22,7 +22,6 @@
#include <QCoreApplication>
#include <QMimeDatabase>
#include <QMimeType>
#include <QUrl>
#include <QBitArray>
#include <QDir>
......
......@@ -22,7 +22,6 @@
#include "ebook_chm.h"
#include "ebook_chm_encoding.h"
#include "helper_entitydecoder.h"
#include "bitfiddle.h"
......
......@@ -13,7 +13,6 @@
#include <QDomDocument>
#include <QFile>
#include <QHash>
#include <QList>
#include <QPainter>
#include <QQueue>
#include <QString>
......
......@@ -16,10 +16,8 @@
#include "dviRenderer.h"
#include "dvisourcesplitter.h"
#include "hyperlink.h"
#include "prebookmark.h"
#include "psgs.h"
//#include "renderedDviPagePixmap.h"
#include "dviPageInfo.h"
#include <KConfig>
#include <KLocalizedString>
......
......@@ -32,7 +32,6 @@
#include <QEventLoop>
#include <QFileInfo>
#include <QLabel>
#include <QPrinter>
#include <QTemporaryFile>
#include <QStandardPaths>
......
......@@ -21,7 +21,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <QDebug>
......
......@@ -11,7 +11,6 @@
#include <KLocalizedString>
#include <QDir>
#include <QTextCursor>
#include <QTextDocument>
#include <QTextFrame>
......
......@@ -21,7 +21,6 @@ extern "C" {
}
#include "image.h"
#include "unpluck.h"
#define GET_FUNCTION_CODE_TYPE(x) (((x) >> 3) & 0x1F)
#define GET_FUNCTION_CODE_DATALEN(x) ((x)&0x7)
......
......@@ -13,7 +13,6 @@
#include "annots.h"
#include <poppler-annotation.h>
// qt/kde includes
#include <QLoggingCategory>
......@@ -22,7 +21,6 @@
#include <core/annotations.h>
#include <core/area.h>
#include "config-okular-poppler.h"
#include "debug_pdf.h"
#include "generator_pdf.h"
#include "popplerembeddedfile.h"
......
......@@ -17,7 +17,6 @@
#include <poppler-qt5.h>
#include <config-okular-poppler.h>
extern Okular::Action *createLinkFromPopplerLink(const Poppler::Link *popplerLink, bool deletePopplerLink = true);
#define SET_ANNOT_ACTIONS \
......
......@@ -45,7 +45,6 @@
#include <core/movie.h>
#include <core/page.h>
#include <core/pagetransition.h>
#include <core/printoptionswidget.h>
#include <core/sound.h>
#include <core/sourcereference.h>
#include <core/textpage.h>
......
......@@ -27,7 +27,6 @@
#include <QTimer>
#include <core/bookmarkmanager.h>
#include <core/document.h>
#include <core/generator.h>
#include <core/page.h>
......
......@@ -33,7 +33,6 @@
#include <QDialogButtonBox>
#include <QFile>
#include <QFileDialog>
#include <QIcon>
#include <QInputDialog>
#include <QLabel>
#include <QLayout>
......@@ -55,13 +54,11 @@
#include <KDirWatch>
#include <KFilterBase>
#include <KFilterDev>
#include <KIO/Job>
#include <KIO/OpenFileManagerWindowJob>
#include <KJobWidgets>
#include <KMessageBox>
#include <KParts/GUIActivateEvent>
#include <KPasswordDialog>
#include <KPluginFactory>
#include <KPluginMetaData>
#include <KSharedDataCache>
#include <KStandardShortcut>
......@@ -90,7 +87,6 @@
#include "core/action.h"
#include "core/annotations.h"
#include "core/bookmarkmanager.h"
#include "core/document.h"
#include "core/document_p.h"
#include "core/fileprinter.h"
#include "core/form.h"
......
......@@ -43,8 +43,6 @@
#include <QDragMoveEvent>
#include <QFileDialog>
#include <QMenuBar>
#include <QMimeDatabase>
#include <QMimeType>
#include <QObject>
#include <QScreen>
#include <QTabBar>
......
......@@ -14,7 +14,6 @@
#include <QCursor>
#include <QEvent>
#include <QMouseEvent>
#include <QPainter>
// local includes
#include "core/annotations.h"
......
......@@ -24,7 +24,6 @@
#include <QFont>
#include <QFontInfo>
#include <QFontMetrics>
#include <QFrame>
#include <QLabel>
#include <QLayout>
#include <QMenu>
......
......@@ -30,7 +30,6 @@
// local includes
#include "core/action.h"
#include "core/document.h"
#include "core/form.h"
#include "debug_ui.h"
FormWidgetsController::FormWidgetsController(Okular::Document *doc)
......
......@@ -11,7 +11,6 @@
// qt/kde includes
#include <QApplication>
#include <QItemDelegate>
#include <QModelIndex>
#include <QTextDocument>
#include <QVariant>
......
......@@ -25,8 +25,6 @@
#include <math.h>
// local includes
#include "core/annotations.h"
#include "core/area.h"
#include "core/observer.h"
#include "core/page.h"
#include "core/page_p.h"
......
......@@ -84,7 +84,6 @@
#include "tts.h"
#endif
#include "core/action.h"
#include "core/area.h"
#include "core/audioplayer.h"
#include "core/document_p.h"
#include "core/form.h"
......
......@@ -35,7 +35,6 @@
#include <memory>
// local includes
#include "annotationtools.h"
#include "conf/editannottooldialog.h"
#include "core/annotations.h"
#include "core/area.h"
......
......@@ -27,7 +27,6 @@
#include <qpainter.h>
#include <qtooltip.h>
#include "core/annotations.h"
#include "core/document.h"
#include "core/page.h"
#include "ui/guiutils.h"
......
......@@ -34,7 +34,6 @@
// local includes
#include "core/document.h"
#include "core/fontinfo.h"
static const int IsExtractableRole = Qt::UserRole;
static const int FontInfoRole = Qt::UserRole + 1;
......
......@@ -11,7 +11,6 @@
#include "searchlineedit.h"
// local includes
#include "core/document.h"
// qt/kde includes
#include <KBusyIndicatorWidget>
......
......@@ -24,7 +24,6 @@
// local includes
#include "core/action.h"
#include "core/document.h"
#include "ktreeviewsearchline.h"
#include "pageitemdelegate.h"
#include "settings.h"
......
......@@ -18,7 +18,6 @@
#include "core/document.h"
#include "core/page.h"
#include "pageitemdelegate.h"
Q_DECLARE_METATYPE(QModelIndex)
......
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