summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-23 13:09:29 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-23 13:14:31 -0700
commit106775b1961711a5e74c80d1dde7aab5a9e2e336 (patch)
treee5cb8c61701d930cbc2a3aaf9fa2f8432266aba6 /qt-ui/diveplanner.h
parent31449dca22873e500842ab1cfcca3a211764d98a (diff)
downloadsubsurface-106775b1961711a5e74c80d1dde7aab5a9e2e336.tar.gz
Clean up coding style
Just to keep me sane. The code still shows compile time warnings which are the areas where we need to complete things to actually do the deco calculations, etc. But now seemed a good time to merge it into master as hopefully more people can contribute. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 453cec63e..041ebb2d3 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -10,14 +10,14 @@ class Button : public QObject, public QGraphicsPixmapItem {
public:
explicit Button(QObject* parent = 0);
protected:
- virtual void mousePressEvent(QGraphicsSceneMouseEvent* event);
+ virtual void mousePressEvent(QGraphicsSceneMouseEvent* event);
signals:
void clicked();
};
class DiveHandler : public QGraphicsEllipseItem{
public:
- DiveHandler();
+ DiveHandler();
QGraphicsLineItem *from;
QGraphicsLineItem *to;
qreal time;
@@ -26,7 +26,7 @@ public:
class Ruler : public QGraphicsLineItem{
public:
- Ruler();
+ Ruler();
void setMinimum(double minimum);
void setMaximum(double maximum);
void setTickInterval(double interval);
@@ -52,15 +52,15 @@ class DivePlannerGraphics : public QGraphicsView {
public:
DivePlannerGraphics(QWidget* parent = 0);
protected:
- virtual void mouseDoubleClickEvent(QMouseEvent* event);
- virtual void showEvent(QShowEvent* event);
- virtual void resizeEvent(QResizeEvent* event);
- virtual void mouseMoveEvent(QMouseEvent* event);
- virtual void mousePressEvent(QMouseEvent* event);
- virtual void mouseReleaseEvent(QMouseEvent* event);
-
- void clear_generated_deco();
- void create_deco_stop();
+ virtual void mouseDoubleClickEvent(QMouseEvent* event);
+ virtual void showEvent(QShowEvent* event);
+ virtual void resizeEvent(QResizeEvent* event);
+ virtual void mouseMoveEvent(QMouseEvent* event);
+ virtual void mousePressEvent(QMouseEvent* event);
+ virtual void mouseReleaseEvent(QMouseEvent* event);
+
+ void clearGeneratedDeco();
+ void createDecoStops();
bool isPointOutOfBoundaries(const QPointF& point);
private slots:
@@ -69,7 +69,7 @@ private slots:
private:
- void moveActiveHandler(const QPointF& pos);
+ void moveActiveHandler(const QPointF& pos);
QList<QGraphicsLineItem*> lines;
QList<DiveHandler *> handles;
QGraphicsLineItem *verticalLine;