summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxrect.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-06-29 05:34:21 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-06-29 05:34:21 (GMT)
commit6856dd2850245414fb610e651391f5fe141605de (patch)
treec6ce82c0c8c237fee03113553e0fa8c34d5828a2 /src/declarative/fx/qfxrect.h
parent3d725363a43d408e1f57292fc54ab2925529fa6e (diff)
downloadQt-6856dd2850245414fb610e651391f5fe141605de.zip
Qt-6856dd2850245414fb610e651391f5fe141605de.tar.gz
Qt-6856dd2850245414fb610e651391f5fe141605de.tar.bz2
Change border semantics for Rect.
* Odd pen widths are drawn at a half pixel offset to keep things smooth. * A mitre join is used to make sure rects with thick borders don't look rounded. * A pen width of zero means no border.
Diffstat (limited to 'src/declarative/fx/qfxrect.h')
-rw-r--r--src/declarative/fx/qfxrect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxrect.h b/src/declarative/fx/qfxrect.h
index c279a1c..df490b0 100644
--- a/src/declarative/fx/qfxrect.h
+++ b/src/declarative/fx/qfxrect.h
@@ -58,7 +58,7 @@ class Q_DECLARATIVE_EXPORT QFxPen : public QObject
Q_PROPERTY(QColor color READ color WRITE setColor)
public:
QFxPen(QObject *parent=0)
- : QObject(parent), _width(0), _color("#000000"), _valid(false)
+ : QObject(parent), _width(1), _color("#000000"), _valid(false)
{}
int width() const { return _width; }