aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-10 20:28:33 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-11 12:34:34 -0800
commitd49acdb3c0298ab3c2493db70d81c4731d6f3fcb (patch)
treedd11f7172fc4141f1506b23c691fa7443144cf29 /qt-ui
parent829473ddc64e50169fbc177c6ee5ce2bf702a3ed (diff)
downloadsubsurface-d49acdb3c0298ab3c2493db70d81c4731d6f3fcb.tar.gz
Clean up include files
They should have a newline at the end. Forward declarations of classes should be 'class'. Function / method definitions don't end on a ';' Remove obsolete QStateMachine forward reference. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/animationfunctions.h4
-rw-r--r--qt-ui/profile/diveeventitem.h2
-rw-r--r--qt-ui/profile/divelineitem.h2
-rw-r--r--qt-ui/profile/divepixmapitem.h2
-rw-r--r--qt-ui/profile/diveprofileitem.h2
-rw-r--r--qt-ui/profile/diverectitem.h2
-rw-r--r--qt-ui/profile/divetooltipitem.h2
-rw-r--r--qt-ui/profile/profilewidget2.h36
8 files changed, 25 insertions, 27 deletions
diff --git a/qt-ui/profile/animationfunctions.h b/qt-ui/profile/animationfunctions.h
index 958e53c03..ed0815af9 100644
--- a/qt-ui/profile/animationfunctions.h
+++ b/qt-ui/profile/animationfunctions.h
@@ -11,6 +11,6 @@ namespace Animations{
void moveTo(QObject *obj, qreal x, qreal y, int msecs = 500);
void moveTo(QObject *obj, const QPointF& pos, int msecs = 500);
void animDelete(QObject *obj);
-};
+}
-#endif \ No newline at end of file
+#endif
diff --git a/qt-ui/profile/diveeventitem.h b/qt-ui/profile/diveeventitem.h
index d729daa9f..5b0d23479 100644
--- a/qt-ui/profile/diveeventitem.h
+++ b/qt-ui/profile/diveeventitem.h
@@ -26,4 +26,4 @@ private:
struct event* internalEvent;
};
-#endif \ No newline at end of file
+#endif
diff --git a/qt-ui/profile/divelineitem.h b/qt-ui/profile/divelineitem.h
index 497f803eb..fbe898924 100644
--- a/qt-ui/profile/divelineitem.h
+++ b/qt-ui/profile/divelineitem.h
@@ -14,4 +14,4 @@ public:
void animateMoveTo(qreal x, qreal y);
};
-#endif \ No newline at end of file
+#endif
diff --git a/qt-ui/profile/divepixmapitem.h b/qt-ui/profile/divepixmapitem.h
index c520e40a0..addbbb12d 100644
--- a/qt-ui/profile/divepixmapitem.h
+++ b/qt-ui/profile/divepixmapitem.h
@@ -14,4 +14,4 @@ public:
DivePixmapItem(QObject* parent = 0);
};
-#endif \ No newline at end of file
+#endif
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h
index b47cbd513..41213658d 100644
--- a/qt-ui/profile/diveprofileitem.h
+++ b/qt-ui/profile/diveprofileitem.h
@@ -41,7 +41,7 @@ public:
void setHorizontalDataColumn(int column);
void setVerticalDataColumn(int column);
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) = 0;
- virtual void clear(){};
+ virtual void clear(){}
public slots:
virtual void preferencesChanged();
virtual void modelDataChanged(const QModelIndex& topLeft = QModelIndex(), const QModelIndex& bottomRight = QModelIndex());
diff --git a/qt-ui/profile/diverectitem.h b/qt-ui/profile/diverectitem.h
index a595a64f1..6d073d335 100644
--- a/qt-ui/profile/diverectitem.h
+++ b/qt-ui/profile/diverectitem.h
@@ -14,4 +14,4 @@ public:
DiveRectItem(QObject *parent = 0, QGraphicsItem *parentItem = 0);
};
-#endif \ No newline at end of file
+#endif
diff --git a/qt-ui/profile/divetooltipitem.h b/qt-ui/profile/divetooltipitem.h
index 8e9573e54..36a44d628 100644
--- a/qt-ui/profile/divetooltipitem.h
+++ b/qt-ui/profile/divetooltipitem.h
@@ -58,4 +58,4 @@ private:
plot_info pInfo;
};
-#endif \ No newline at end of file
+#endif
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index 605d93f58..1378bd152 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -16,31 +16,29 @@
#include "graphicsview-common.h"
#include "divelineitem.h"
+struct dive;
+struct plot_info;
class ToolTipItem;
class MeanDepthLine;
class DiveReportedCeiling;
class DiveTextItem;
class TemperatureAxis;
class DiveEventItem;
-struct DivePlotDataModel;
-struct DivePixmapItem;
-struct DiveRectItem;
-struct DepthAxis;
-struct DiveCartesianAxis;
-struct DiveProfileItem;
-struct TimeAxis;
-struct dive;
-struct QStateMachine;
-struct DiveCartesianPlane;
-struct DiveTemperatureItem;
-struct plot_info;
-struct DiveGasPressureItem;
-struct DiveCalculatedCeiling;
-struct DiveReportedCeiling;
-struct DiveCalculatedTissue;
-struct PartialPressureGasItem;
-struct PartialGasPressureAxis;
-struct AbstractProfilePolygonItem;
+class DivePlotDataModel;
+class DivePixmapItem;
+class DiveRectItem;
+class DepthAxis;
+class DiveCartesianAxis;
+class DiveProfileItem;
+class TimeAxis;
+class DiveCartesianPlane;
+class DiveTemperatureItem;
+class DiveGasPressureItem;
+class DiveCalculatedCeiling;
+class DiveCalculatedTissue;
+class PartialPressureGasItem;
+class PartialGasPressureAxis;
+class AbstractProfilePolygonItem;
class ProfileWidget2 : public QGraphicsView {
Q_OBJECT