summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-05-31 05:38:45 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-05-31 05:38:45 (GMT)
commita0b725d916ec794c1a0f02b37525a15ad27d145d (patch)
tree81010ed6d5c83af8fd2dd321956625aae6ddf4fe /src/declarative
parent79a587d813c2df9c45fea7423e5e6c40e2d2b67b (diff)
downloadQt-a0b725d916ec794c1a0f02b37525a15ad27d145d.zip
Qt-a0b725d916ec794c1a0f02b37525a15ad27d145d.tar.gz
Qt-a0b725d916ec794c1a0f02b37525a15ad27d145d.tar.bz2
Repaint all text when Ctrl+A is pressed in TextEdit
QTextControl::updateRequest() with empty rect means update all. Task-number: QTBUG-11013
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextedit.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextedit.cpp b/src/declarative/graphicsitems/qdeclarativetextedit.cpp
index 167db77..f02b7d1 100644
--- a/src/declarative/graphicsitems/qdeclarativetextedit.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetextedit.cpp
@@ -1066,9 +1066,14 @@ void QDeclarativeTextEdit::drawContents(QPainter *painter, const QRect &bounds)
void QDeclarativeTextEdit::updateImgCache(const QRectF &rf)
{
Q_D(const QDeclarativeTextEdit);
- QRect r = rf.toRect();
- if (r != QRect(0,0,INT_MAX,INT_MAX)) // Don't translate "everything"
- r = r.translated(0,d->yoff);
+ QRect r;
+ if (!rf.isValid()) {
+ r = QRect(0,0,INT_MAX,INT_MAX);
+ } else {
+ r = rf.toRect();
+ if (r != QRect(0,0,INT_MAX,INT_MAX)) // Don't translate "everything"
+ r = r.translated(0,d->yoff);
+ }
dirtyCache(r);
emit update();
}
20:40:19 (GMT)'>2008-08-191-2/+9 | | * | BUG: fix for bug 7104 look for GL in X11R6 dirsBill Hoffman2008-08-191-4/+4 | | * | BUG: fix for 7045, use gcc for .mBill Hoffman2008-08-191-2/+3 | | * | BUG: fix 6647 arguments after -E should not be parsed by CMakeBill Hoffman2008-08-193-11/+18 | | * | BUG: fix for 6794 support for LTCG WholeProgramOptimization, which is not ↵Bill Hoffman2008-08-191-0/+1 | | | | | | | | available in VS 8 and newer. * | BUG: fix for bug 6775, FindPHP4 did not honor requiredBill Hoffman2008-08-191-0/+2 | | * | BUG: fix for 6710 CMAKE_OSX_SYSROOT should be a PATHBill Hoffman2008-08-191-1/+1 | | * | BUG: fix for 7446 NSIS support for other languagesBill Hoffman2008-08-191-1/+55 | | * | ENH: check in current build scriptsBill Hoffman2008-08-194-3/+7 | | * | BUG: fix for 7496, do not just report configure done when there is an error ↵Bill Hoffman2008-08-191-1/+6 | | | | | | | | during configure * | BUG: 7448 fix crash in ccmake when compiler is changedBill Hoffman2008-08-191-1/+4 | | * | ENH: Add test_clean target to wipe out testsBrad King2008-08-192-0/+60 | | | | | | | | | | | | We frequently need to wipe out all the CMake test build directories in order to run tests from scratch. This change adds a test_clean custom target to remove all these directories for out-of-source builds. * | ENH: Disallow link-type keywords in link interfaceBrad King2008-08-194-0/+69 | | | | | | | | | | | | | | | | | | The LINK_INTERFACE_LIBRARIES target property may not contain the "debug", "optimized", or "general" keywords. These keywords are supported only by the target_link_libraries (and link_libraries) command and are not a generic library list feature in CMake. When a user attempts to add one of these keywords to the property value, we now produce an error message that refers users to alternative means. * | ENH: Clarify link interface documentationBrad King2008-08-191-5/+14 | | | | | | | | | | | | | | | | The LINK_INTERFACE_LIBRARIES property does not apply for STATIC libraries. The IMPORTED_LINK_INTERFACE_LIBRARIES property does apply for STATIC libraries. State both explicitly in the documentation. Also, clarify that the per-configuration version of these properties completely overrids the generic version. * | BUG: Linking to modules is for 2.2 compat onlyBrad King2008-08-191-8/+11 | | | | | | | | | | | | | | | | The compatibility check to allow linking to modules should test for CMake 2.2, not the unreleased 2.3. See issue #7500. Furthermore, the message should be more clear about fixing the code instead of setting CMAKE_BACKWARDS_COMPATIBILITY unless one is just trying to build an existing project. * | STYLE: Nightly Date StampBrad King2008-08-191-1/+1 | | * | ENH: Improve errors when a policy is REQUIREDBrad King2008-08-184-165/+142 | | | | | | | | | | | | In the future some policies may be set to REQUIRED_IF_USED or REQUIRED_ALWAYS. This change clarifies the error messages users receive when violating the requirements. * | ENH: Add UNKNOWN type for IMPORTED librariesBrad King2008-08-18