summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-11-23 22:46:34 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-11-23 22:46:34 (GMT)
commit862eda78461ad7f4e2a30cc7b6467ace0abf88a9 (patch)
tree206890dc3985bd3cfdcc9dfc19e0266ab20ff85b /src
parent88dd7568fff419510a7c26ffb93d93cc276d7b3b (diff)
parentb1c412cefa51f0eea79dbf279f2a23414ccecc3d (diff)
downloadQt-862eda78461ad7f4e2a30cc7b6467ace0abf88a9.zip
Qt-862eda78461ad7f4e2a30cc7b6467ace0abf88a9.tar.gz
Qt-862eda78461ad7f4e2a30cc7b6467ace0abf88a9.tar.bz2
Merge branch '4.7-upstream' into 4.7-water
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qiodevice.cpp5
-rw-r--r--src/declarative/graphicsitems/qdeclarativerectangle.cpp3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/corelib/io/qiodevice.cpp b/src/corelib/io/qiodevice.cpp
index 26e587d..68fb2bf 100644
--- a/src/corelib/io/qiodevice.cpp
+++ b/src/corelib/io/qiodevice.cpp
@@ -395,7 +395,10 @@ QIODevice::QIODevice(QIODevicePrivate &dd, QObject *parent)
/*!
- Destructs the QIODevice object.
+ The destructor is virtual, and QIODevice is an abstract base
+ class. This destructor does not call close(), but the subclass
+ destructor might. If you are in doubt, call close() before
+ destroying the QIODevice.
*/
QIODevice::~QIODevice()
{
diff --git a/src/declarative/graphicsitems/qdeclarativerectangle.cpp b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
index fc3954f..7686dde 100644
--- a/src/declarative/graphicsitems/qdeclarativerectangle.cpp
+++ b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
@@ -260,6 +260,9 @@ void QDeclarativeRectangle::doUpdate()
A width of 1 creates a thin line. For no line, use a width of 0 or a transparent color.
+ \note The width of the rectangle's border does not affect the geometry of the
+ rectangle itself or its position relative to other items if anchors are used.
+
If \c border.width is an odd number, the rectangle is painted at a half-pixel offset to retain
border smoothness. Also, the border is rendered evenly on either side of the
rectangle's boundaries, and the spare pixel is rendered to the right and below the