Rename Qt Quick-specific classes to QQuick*
[profile/ivi/qtdeclarative.git] / src / declarative / items / qquickrectangle_p_p.h
similarity index 79%
rename from src/declarative/items/qsgrectangle_p_p.h
rename to src/declarative/items/qquickrectangle_p_p.h
index 234a029..93140ce 100644 (file)
@@ -40,8 +40,8 @@
 **
 ****************************************************************************/
 
-#ifndef QSGRECTANGLE_P_P_H
-#define QSGRECTANGLE_P_P_H
+#ifndef QQUICKRECTANGLE_P_P_H
+#define QQUICKRECTANGLE_P_P_H
 
 //
 //  W A R N I N G
 // We mean it.
 //
 
-#include "qsgitem_p.h"
+#include "qquickitem_p.h"
 
 QT_BEGIN_NAMESPACE
 
-class QSGGradient;
-class QSGRectangle;
-class QSGRectanglePrivate : public QSGItemPrivate
+class QQuickGradient;
+class QQuickRectangle;
+class QQuickRectanglePrivate : public QQuickItemPrivate
 {
-    Q_DECLARE_PUBLIC(QSGRectangle)
+    Q_DECLARE_PUBLIC(QQuickRectangle)
 
 public:
-    QSGRectanglePrivate() :
+    QQuickRectanglePrivate() :
     color(Qt::white), gradient(0), pen(0), radius(0), penMargin(0), penOffset(0)
     {
     }
 
-    ~QSGRectanglePrivate()
+    ~QQuickRectanglePrivate()
     {
         delete pen;
     }
 
     QColor color;
-    QSGGradient *gradient;
-    QSGPen *pen;
+    QQuickGradient *gradient;
+    QQuickPen *pen;
     qreal radius;
     qreal penMargin;
     qreal penOffset;
     static int doUpdateSlotIdx;
 
-    QSGPen *getPen() {
+    QQuickPen *getPen() {
         if (!pen) {
-            Q_Q(QSGRectangle);
-            pen = new QSGPen;
+            Q_Q(QQuickRectangle);
+            pen = new QQuickPen;
             static int penChangedSignalIdx = -1;
             if (penChangedSignalIdx < 0)
-                penChangedSignalIdx = QSGPen::staticMetaObject.indexOfSignal("penChanged()");
+                penChangedSignalIdx = QQuickPen::staticMetaObject.indexOfSignal("penChanged()");
             if (doUpdateSlotIdx < 0)
-                doUpdateSlotIdx = QSGRectangle::staticMetaObject.indexOfSlot("doUpdate()");
+                doUpdateSlotIdx = QQuickRectangle::staticMetaObject.indexOfSlot("doUpdate()");
             QMetaObject::connect(pen, penChangedSignalIdx, q, doUpdateSlotIdx);
         }
         return pen;
@@ -100,4 +100,4 @@ public:
 
 QT_END_NAMESPACE
 
-#endif // QSGRECTANGLE_P_P_H
+#endif // QQUICKRECTANGLE_P_P_H