Unnecessary includes removed.
authoreshe <jessehakanen@gmail.com>
Tue, 13 Jul 2010 21:01:50 +0000 (22:01 +0100)
committereshe <jessehakanen@gmail.com>
Tue, 13 Jul 2010 21:01:50 +0000 (22:01 +0100)
21 files changed:
src/detailscreen.cpp
src/detailscreen.h
src/filereader.cpp
src/graphicselement.cpp
src/graphicselement.h
src/graphicsscreen.cpp
src/graphicsscreen.h
src/imageelement.h
src/imageitem.cpp
src/imageitem.h
src/mainwindow.h
src/mainwindowstack.cpp
src/mainwindowstack.h
src/pointer.cpp
src/pointer.h
src/rectangle.h
src/textelement.cpp
src/themescreen.h
src/themeselector.h
src/unitselector.h
src/widgetscreen.h

index 1c3cd10..ba54052 100644 (file)
 
 #include <QtGui/QGraphicsTextItem>
 #include <QtGui/QGraphicsLineItem>
 
 #include <QtGui/QGraphicsTextItem>
 #include <QtGui/QGraphicsLineItem>
-#include <QtGui/QGraphicsView>
-#include <QtGui/QApplication>
-#include <QtGui/QDesktopWidget>
 #include <QtCore/QString>
 #include <QtCore/QDebug>
 #include <QtCore/QString>
 #include <QtCore/QDebug>
-#include <math.h>
 #include "detailscreen.h"
 #include "odometer.h"
 #include "graphicsscene.h"
 #include "detailscreen.h"
 #include "odometer.h"
 #include "graphicsscene.h"
index 4c30e75..75eee3f 100644 (file)
 #ifndef DETAILSCREEN_H
 #define DETAILSCREEN_H
 
 #ifndef DETAILSCREEN_H
 #define DETAILSCREEN_H
 
-#include "location.h"
 #include "graphicsscreen.h"
 
 #include "graphicsscreen.h"
 
+class QString;
 class QGraphicsTextItem;
 class QGraphicsLineItem;
 class QGraphicsTextItem;
 class QGraphicsLineItem;
-class QGraphicsView;
-class GraphicsScene;
 
 class DetailScreen : public GraphicsScreen
 {
 
 class DetailScreen : public GraphicsScreen
 {
index 0cd9054..2f24b6f 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #include <QtCore/QString>
  */
 
 #include <QtCore/QString>
+#include <QtCore/QByteArray>
 #include <QtCore/QDir>
 #include <QtCore/QFile>
 #include "filereader.h"
 #include <QtCore/QDir>
 #include <QtCore/QFile>
 #include "filereader.h"
index b290d87..3befe29 100644 (file)
@@ -19,7 +19,6 @@
 #include <QtCore/QString>
 #include <QtCore/QByteArray>
 #include <QtCore/QDebug>
 #include <QtCore/QString>
 #include <QtCore/QByteArray>
 #include <QtCore/QDebug>
-#include <QtCore/QMap>
 #include <QtGui/QGraphicsScene>
 #include <QtGui/QFont>
 #include <QtGui/QFontDatabase>
 #include <QtGui/QGraphicsScene>
 #include <QtGui/QFont>
 #include <QtGui/QFontDatabase>
index fbd7858..8880c07 100644 (file)
@@ -24,9 +24,9 @@
 
 class QString;
 class QByteArray;
 
 class QString;
 class QByteArray;
+class QFont;
 class GraphicsScene;
 class Reader;
 class GraphicsScene;
 class Reader;
-class QFont;
 
 class GraphicsElement
 {
 
 class GraphicsElement
 {
index 19dfb36..006a33c 100644 (file)
@@ -18,8 +18,6 @@
 
 #include <QtGui/QApplication>
 #include <QtGui/QDesktopWidget>
 
 #include <QtGui/QApplication>
 #include <QtGui/QDesktopWidget>
-#include <QtGui/QGraphicsScene>
-#include <QtGui/QApplication>
 #include "graphicsscreen.h"
 #include "imageitem.h"
 #include "graphicsscene.h"
 #include "graphicsscreen.h"
 #include "imageitem.h"
 #include "graphicsscene.h"
index 75947a7..9799bf3 100644 (file)
 
 #include <QtGui/QGraphicsView>
 #include "abstractscreen.h"
 
 #include <QtGui/QGraphicsView>
 #include "abstractscreen.h"
-#include "location.h"
-#include "imageitem.h"
 
 
-class QGraphicsScene;
 class GraphicsScene;
 class GraphicsScene;
+class ImageItem;
 
 class GraphicsScreen : public QGraphicsView, public AbstractScreen
 {
 
 class GraphicsScreen : public QGraphicsView, public AbstractScreen
 {
index c21cba6..0452123 100644 (file)
 #include "graphicselement.h"
 #include "location.h"
 
 #include "graphicselement.h"
 #include "location.h"
 
-class ZipReader;
-class GraphicsScene;
 class QString;
 class QGraphicsPixmapItem;
 class QString;
 class QGraphicsPixmapItem;
+class Reader;
+class GraphicsScene;
 
 class ImageElement : public GraphicsElement
 {
 
 class ImageElement : public GraphicsElement
 {
index 046334c..0891f36 100644 (file)
@@ -16,6 +16,7 @@
  *
  */
 
  *
  */
 
+#include <QtCore/QString>
 #include "imageitem.h"
 
 ImageItem::ImageItem(QString const& filename, QGraphicsItem *parent):
 #include "imageitem.h"
 
 ImageItem::ImageItem(QString const& filename, QGraphicsItem *parent):
index 286d561..30ff5e4 100644 (file)
 #define IMAGEITEM_H
 
 #include <QtCore/QObject>
 #define IMAGEITEM_H
 
 #include <QtCore/QObject>
-#include <QtCore/QString>
 #include <QtGui/QGraphicsPixmapItem>
 
 #include <QtGui/QGraphicsPixmapItem>
 
+class QString;
+
 class ImageItem: public QObject, public QGraphicsPixmapItem
 {
     Q_OBJECT
 class ImageItem: public QObject, public QGraphicsPixmapItem
 {
     Q_OBJECT
index 373fe2d..dba2779 100644 (file)
@@ -19,9 +19,8 @@
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
-#include <QMainWindow>
+#include <QtGui/QMainWindow>
 
 
-class MainScreen;
 class MainWindowStack;
 class MainMenu;
 class Theme;
 class MainWindowStack;
 class MainMenu;
 class Theme;
index ca9b501..388176b 100644 (file)
@@ -16,7 +16,6 @@
  *
  */
 
  *
  */
 
-#include "widgetscreen.h"
 #include "mainwindowstack.h"
 
 MainWindowStack::MainWindowStack(QWidget* parent): WidgetScreen(parent),
 #include "mainwindowstack.h"
 
 MainWindowStack::MainWindowStack(QWidget* parent): WidgetScreen(parent),
index 9325044..ef741ec 100644 (file)
@@ -19,8 +19,7 @@
 #ifndef MAINWINDOWSTACK_H
 #define MAINWINDOWSTACK_H
 
 #ifndef MAINWINDOWSTACK_H
 #define MAINWINDOWSTACK_H
 
-#include <QtGui/QStackedWidget>
-#include "abstractscreen.h"
+#include <QtCore/QList>
 #include "widgetscreen.h"
 
 class MainWindowStack : public WidgetScreen
 #include "widgetscreen.h"
 
 class MainWindowStack : public WidgetScreen
index 2431844..973a412 100644 (file)
  *
  */
 
  *
  */
 
+#include <QtGui/QGraphicsPixmapItem>
 #include <QtCore/QDebug>
 #include <QtCore/QTimeLine>
 #include <QtCore/QDebug>
 #include <QtCore/QTimeLine>
-#include <QtGui/QGraphicsItemAnimation>
-#include <QtGui/QGraphicsPixmapItem>
 #include <math.h>
 #include "pointer.h"
 #include "reader.h"
 #include <math.h>
 #include "pointer.h"
 #include "reader.h"
index 4ae1818..a5f063f 100644 (file)
 
 #include <QtCore/QObject>
 #include "graphicselement.h"
 
 #include <QtCore/QObject>
 #include "graphicselement.h"
-#include "location.h"
 
 
-class Reader;
 class QGraphicsPixmapItem;
 class QGraphicsPixmapItem;
-class GraphicsScene;
 class QTimeLine;
 class QTimeLine;
+class GraphicsScene;
+class Reader;
 
 class Pointer : public QObject, public GraphicsElement
 {
 
 class Pointer : public QObject, public GraphicsElement
 {
index 72912a0..b9c1fb6 100644 (file)
 #include "graphicselement.h"
 #include "location.h"
 
 #include "graphicselement.h"
 #include "location.h"
 
-class GraphicsScene;
 class QString;
 class QString;
-class Reader;
 class QGraphicsRectItem;
 class QGraphicsRectItem;
+class Reader;
+class GraphicsScene;
 
 class Rectangle : public GraphicsElement
 {
 
 class Rectangle : public GraphicsElement
 {
index 98b2fb8..5779d1c 100644 (file)
 #include <QtCore/QDebug>
 #include <QtGui/QGraphicsScene>
 #include <QtGui/QGraphicsTextItem>
 #include <QtCore/QDebug>
 #include <QtGui/QGraphicsScene>
 #include <QtGui/QGraphicsTextItem>
-#include "reader.h"
 #include "textelement.h"
 #include "textelement.h"
+#include "reader.h"
 #include "odometer.h"
 #include "graphicsscene.h"
 #include "odometer.h"
 #include "graphicsscene.h"
-#include "location.h"
 
 namespace
 {
 
 namespace
 {
@@ -132,8 +131,6 @@ bool TextElement::setAttribute(QString const& name, QString const& value)
 
 void TextElement::addToScene(GraphicsScene* scene)
 {
 
 void TextElement::addToScene(GraphicsScene* scene)
 {
-    Location::Fix fix;
-
     specialFields_.clear();
 
     for(int i = 0; i < FIELD_COUNT; i++)
     specialFields_.clear();
 
     for(int i = 0; i < FIELD_COUNT; i++)
index 3e1da8b..320cca1 100644 (file)
@@ -20,7 +20,6 @@
 #define THEMESCREEN_H
 
 #include "graphicsscreen.h"
 #define THEMESCREEN_H
 
 #include "graphicsscreen.h"
-#include "location.h"
 
 class QString;
 class QWidget;
 
 class QString;
 class QWidget;
index 4543657..7d29ac8 100644 (file)
@@ -21,8 +21,8 @@
 
 #include <QtGui/QDialog>
 
 
 #include <QtGui/QDialog>
 
-class ButtonSelector;
 class QString;
 class QString;
+class ButtonSelector;
 
 class ThemeSelector : public QDialog
 {
 
 class ThemeSelector : public QDialog
 {
index 793682b..b5baad6 100644 (file)
@@ -21,8 +21,8 @@
 
 #include <QtGui/QDialog>
 
 
 #include <QtGui/QDialog>
 
-class ButtonSelector;
 class QString;
 class QString;
+class ButtonSelector;
 
 class UnitSelector : public QDialog
 {
 
 class UnitSelector : public QDialog
 {
index 83c83f5..adef502 100644 (file)
@@ -19,7 +19,6 @@
 #ifndef WIDGETSCREEN_H
 #define WIDGETSCREEN_H
 
 #ifndef WIDGETSCREEN_H
 #define WIDGETSCREEN_H
 
-#include <QtGui/QWidget>
 #include <QtGui/QStackedWidget>
 #include "abstractscreen.h"
 
 #include <QtGui/QStackedWidget>
 #include "abstractscreen.h"