X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=src%2Fgridlines.h;h=28db500051934fbb04b24c3fe51c149778d1af96;hb=9e2fef3185dcb1ffe1622e226f0064bef5f547c9;hp=0ea46c68af312bbdeaf7e95eb843918de23bd2d3;hpb=26c667771f0ad6f46ff2db33989d6d0a21467c7f;p=harmattan%2Fcameraplus diff --git a/src/gridlines.h b/src/gridlines.h index 0ea46c6..28db500 100644 --- a/src/gridlines.h +++ b/src/gridlines.h @@ -3,7 +3,7 @@ /*! * This file is part of CameraPlus. * - * Copyright (C) 2012 Mohammed Sameer + * Copyright (C) 2012-2013 Mohammed Sameer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -23,16 +23,34 @@ #ifndef GRID_LINES_H #define GRID_LINES_H +#if defined(QT4) #include +#elif defined(QT5) +#include +#endif +#include +#if defined(QT4) class GridLines : public QDeclarativeItem { +#elif defined(QT5) +class GridLines : public QQuickPaintedItem { +#endif + Q_OBJECT public: +#if defined(QT4) GridLines(QDeclarativeItem *parent = 0); +#elif defined(QT5) + GridLines(QQuickItem *parent = 0); +#endif ~GridLines(); +#if defined(QT4) void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); +#elif defined(QT5) + void paint(QPainter* painter); +#endif protected: void geometryChanged(const QRectF& newGeometry, const QRectF& oldGeometry);