diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-11-23 22:46:34 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-11-23 22:46:34 (GMT) |
commit | 862eda78461ad7f4e2a30cc7b6467ace0abf88a9 (patch) | |
tree | 206890dc3985bd3cfdcc9dfc19e0266ab20ff85b /src | |
parent | 88dd7568fff419510a7c26ffb93d93cc276d7b3b (diff) | |
parent | b1c412cefa51f0eea79dbf279f2a23414ccecc3d (diff) | |
download | Qt-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.cpp | 5 | ||||
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativerectangle.cpp | 3 |
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 |