diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-11-15 20:46:56 (GMT) |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-11-15 20:51:59 (GMT) |
commit | fac026f1f7f0eff03f8ca8e05d760d639aeabcaa (patch) | |
tree | 4be8da079cda6d80cf4a3b3b482623217938c500 /doc/src/snippets/code | |
parent | 81ed8051e0ee027f1a74aa75cc0cfd2b3ae6377f (diff) | |
download | Qt-fac026f1f7f0eff03f8ca8e05d760d639aeabcaa.zip Qt-fac026f1f7f0eff03f8ca8e05d760d639aeabcaa.tar.gz Qt-fac026f1f7f0eff03f8ca8e05d760d639aeabcaa.tar.bz2 |
doc: Removed usage of Qt 3 support member from example code
This code is used in the documentation for QRegion::isEmpty. It
shouldn't mention isNull, since isEmpty replaces it in the case of
QRegion (unlike QRect).
Diffstat (limited to 'doc/src/snippets/code')
-rw-r--r-- | doc/src/snippets/code/src_gui_painting_qregion_unix.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/src/snippets/code/src_gui_painting_qregion_unix.cpp b/doc/src/snippets/code/src_gui_painting_qregion_unix.cpp index fb1f363..ea42e70 100644 --- a/doc/src/snippets/code/src_gui_painting_qregion_unix.cpp +++ b/doc/src/snippets/code/src_gui_painting_qregion_unix.cpp @@ -41,19 +41,15 @@ //! [0] QRegion r1(10, 10, 20, 20); -r1.isNull(); // false r1.isEmpty(); // false -QRegion r2(40, 40, 20, 20); QRegion r3; -r3.isNull(); // true r3.isEmpty(); // true +QRegion r2(40, 40, 20, 20); r3 = r1.intersected(r2); // r3: intersection of r1 and r2 -r3.isNull(); // false r3.isEmpty(); // true r3 = r1.united(r2); // r3: union of r1 and r2 -r3.isNull(); // false r3.isEmpty(); // false //! [0] |