Rename Qt Quick-specific classes to QQuick*
[profile/ivi/qtdeclarative.git] / src / declarative / items / qquickrectangle_p.h
similarity index 74%
rename from src/declarative/items/qsgrectangle_p.h
rename to src/declarative/items/qquickrectangle_p.h
index 4d93e66..838b944 100644 (file)
 **
 ****************************************************************************/
 
-#ifndef QSGRECTANGLE_P_H
-#define QSGRECTANGLE_P_H
+#ifndef QQUICKRECTANGLE_P_H
+#define QQUICKRECTANGLE_P_H
 
-#include "qsgitem.h"
+#include "qquickitem.h"
 
 #include <QtGui/qbrush.h>
 
@@ -54,7 +54,7 @@ QT_BEGIN_HEADER
 QT_BEGIN_NAMESPACE
 
 QT_MODULE(Declarative)
-class Q_DECLARATIVE_PRIVATE_EXPORT QSGPen : public QObject
+class Q_DECLARATIVE_PRIVATE_EXPORT QQuickPen : public QObject
 {
     Q_OBJECT
 
@@ -62,7 +62,7 @@ class Q_DECLARATIVE_PRIVATE_EXPORT QSGPen : public QObject
     Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY penChanged)
     Q_PROPERTY(bool aligned READ aligned WRITE setAligned NOTIFY penChanged)
 public:
-    QSGPen(QObject *parent=0);
+    QQuickPen(QObject *parent=0);
 
     qreal width() const;
     void setWidth(qreal w);
@@ -85,7 +85,7 @@ private:
     bool m_valid : 1;
 };
 
-class Q_AUTOTEST_EXPORT QSGGradientStop : public QObject
+class Q_AUTOTEST_EXPORT QQuickGradientStop : public QObject
 {
     Q_OBJECT
 
@@ -93,7 +93,7 @@ class Q_AUTOTEST_EXPORT QSGGradientStop : public QObject
     Q_PROPERTY(QColor color READ color WRITE setColor)
 
 public:
-    QSGGradientStop(QObject *parent=0);
+    QQuickGradientStop(QObject *parent=0);
 
     qreal position() const;
     void setPosition(qreal position);
@@ -109,18 +109,18 @@ private:
     QColor m_color;
 };
 
-class Q_AUTOTEST_EXPORT QSGGradient : public QObject
+class Q_AUTOTEST_EXPORT QQuickGradient : public QObject
 {
     Q_OBJECT
 
-    Q_PROPERTY(QDeclarativeListProperty<QSGGradientStop> stops READ stops)
+    Q_PROPERTY(QDeclarativeListProperty<QQuickGradientStop> stops READ stops)
     Q_CLASSINFO("DefaultProperty", "stops")
 
 public:
-    QSGGradient(QObject *parent=0);
-    ~QSGGradient();
+    QQuickGradient(QObject *parent=0);
+    ~QQuickGradient();
 
-    QDeclarativeListProperty<QSGGradientStop> stops();
+    QDeclarativeListProperty<QQuickGradientStop> stops();
 
     const QGradient *gradient() const;
 
@@ -131,31 +131,31 @@ private:
     void doUpdate();
 
 private:
-    QList<QSGGradientStop *> m_stops;
+    QList<QQuickGradientStop *> m_stops;
     mutable QGradient *m_gradient;
-    friend class QSGRectangle;
-    friend class QSGGradientStop;
+    friend class QQuickRectangle;
+    friend class QQuickGradientStop;
 };
 
-class QSGRectanglePrivate;
-class Q_DECLARATIVE_PRIVATE_EXPORT QSGRectangle : public QSGItem
+class QQuickRectanglePrivate;
+class Q_DECLARATIVE_PRIVATE_EXPORT QQuickRectangle : public QQuickItem
 {
     Q_OBJECT
 
     Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
-    Q_PROPERTY(QSGGradient *gradient READ gradient WRITE setGradient)
-    Q_PROPERTY(QSGPen * border READ border CONSTANT)
+    Q_PROPERTY(QQuickGradient *gradient READ gradient WRITE setGradient)
+    Q_PROPERTY(QQuickPen * border READ border CONSTANT)
     Q_PROPERTY(qreal radius READ radius WRITE setRadius NOTIFY radiusChanged)
 public:
-    QSGRectangle(QSGItem *parent=0);
+    QQuickRectangle(QQuickItem *parent=0);
 
     QColor color() const;
     void setColor(const QColor &);
 
-    QSGPen *border();
+    QQuickPen *border();
 
-    QSGGradient *gradient() const;
-    void setGradient(QSGGradient *gradient);
+    QQuickGradient *gradient() const;
+    void setGradient(QQuickGradient *gradient);
 
     qreal radius() const;
     void setRadius(qreal radius);
@@ -173,17 +173,17 @@ private Q_SLOTS:
     void doUpdate();
 
 private:
-    Q_DISABLE_COPY(QSGRectangle)
-    Q_DECLARE_PRIVATE(QSGRectangle)
+    Q_DISABLE_COPY(QQuickRectangle)
+    Q_DECLARE_PRIVATE(QQuickRectangle)
 };
 
 QT_END_NAMESPACE
 
-QML_DECLARE_TYPE(QSGPen)
-QML_DECLARE_TYPE(QSGGradientStop)
-QML_DECLARE_TYPE(QSGGradient)
-QML_DECLARE_TYPE(QSGRectangle)
+QML_DECLARE_TYPE(QQuickPen)
+QML_DECLARE_TYPE(QQuickGradientStop)
+QML_DECLARE_TYPE(QQuickGradient)
+QML_DECLARE_TYPE(QQuickRectangle)
 
 QT_END_HEADER
 
-#endif // QSGRECTANGLE_P_H
+#endif // QQUICKRECTANGLE_P_H