From b25c1249e8f7a185bea74d1aca6a5bb4185968f5 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Mon, 15 Jun 2009 18:54:45 +0000 Subject: [PATCH] Fix compilation (static int declaration does not work in header) svn path=/trunk/kdenlive/; revision=3541 --- src/titledocument.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/titledocument.h b/src/titledocument.h index e673cc60..cb213a56 100644 --- a/src/titledocument.h +++ b/src/titledocument.h @@ -26,7 +26,7 @@ class QGraphicsPolygonItem; class TitleDocument { - QGraphicsScene* m_scene; + public: TitleDocument(); void setScene(QGraphicsScene* scene); @@ -37,14 +37,12 @@ public: /** \brief Get the background color (incl. alpha) from the document, if possibly * \returns The background color of the document, inclusive alpha. If none found, returns (0,0,0,0) */ QColor getBackgroundColor(); - - static const int OriginXLeft = 0; - static const int OriginYTop = 1; - - static const int AxisDefault = 0; - static const int AxisInverted = 1; + + enum ItemOrigin {OriginXLeft = 0, OriginYTop = 1}; + enum AxisPosition {AxisDefault = 0, AxisInverted = 1}; private: + QGraphicsScene* m_scene; QString colorToString(const QColor&); QString rectFToString(const QRectF&); QRectF stringToRect(const QString &); -- 2.39.2