summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxrect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxrect.h')
-rw-r--r--src/declarative/fx/qfxrect.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxrect.h b/src/declarative/fx/qfxrect.h
index 42e7b2f..420ec44 100644
--- a/src/declarative/fx/qfxrect.h
+++ b/src/declarative/fx/qfxrect.h
@@ -42,7 +42,7 @@
#ifndef QFXRECT_H
#define QFXRECT_H
-#include <qfxitem.h>
+#include <QtDeclarative/qfxitem.h>
QT_BEGIN_HEADER
@@ -58,11 +58,11 @@ class Q_DECLARATIVE_EXPORT QFxPen : public QObject
Q_PROPERTY(QColor color READ color WRITE setColor)
public:
QFxPen(QObject *parent=0)
- : QObject(parent), _width(1), _color("#000000"), _valid(false)
+ : QObject(parent), _width(0), _color("#000000"), _valid(false)
{}
int width() const { return _width; }
- void setWidth(int w) { _width = w; emit updated(); _valid = (_width < 1) ? false : true; }
+ void setWidth(int w);
QColor color() const { return _color; }
void setColor(const QColor &c);