summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-06-29 03:49:57 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-06-29 03:49:57 (GMT)
commita9c721865d8da3533692452ca8dd4bf49e66528c (patch)
tree7b2f49d61e0485af95079bef1949ef7384212933 /src
parentbe8bf6e6b57197d8e34c95905a6e61952e5e9766 (diff)
downloadQt-a9c721865d8da3533692452ca8dd4bf49e66528c.zip
Qt-a9c721865d8da3533692452ca8dd4bf49e66528c.tar.gz
Qt-a9c721865d8da3533692452ca8dd4bf49e66528c.tar.bz2
Remove an unnecessary connect() in TextInput
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextinput.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
index 7a16dbf..ef40f98 100644
--- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
@@ -1403,9 +1403,6 @@ void QDeclarativeTextInputPrivate::init()
q, SIGNAL(accepted()));
q->connect(control, SIGNAL(updateNeeded(QRect)),
q, SLOT(updateRect(QRect)));
- q->connect(control, SIGNAL(selectionChanged()),
- q, SLOT(updateRect()));//TODO: Only update rect in selection
- //Note that above TODOs probably aren't that big a savings
q->updateSize();
oldValidity = control->hasAcceptableInput();
lastSelectionStart = 0;
@@ -1437,6 +1434,7 @@ void QDeclarativeTextInput::cursorPosChanged()
void QDeclarativeTextInput::selectionChanged()
{
Q_D(QDeclarativeTextInput);
+ updateRect();//TODO: Only update rect in selection
emit selectedTextChanged();
if(d->lastSelectionStart != d->control->selectionStart()){