You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
2.1 KiB
93 lines
2.1 KiB
12 years ago
|
--- ./src/widgets/qtextedit.cpp.resetinputcontext 2012-08-04 14:53:34.000000000 +0200
|
||
|
+++ ./src/widgets/qtextedit.cpp 2012-09-29 11:36:19.410163805 +0200
|
||
|
@@ -1904,9 +1904,6 @@
|
||
13 years ago
|
|
||
|
void QTextEdit::removeSelectedText( int selNum )
|
||
|
{
|
||
|
- if(selNum != 0)
|
||
|
- resetInputContext();
|
||
|
-
|
||
|
QTextCursor c1 = doc->selectionStartCursor( selNum );
|
||
|
c1.restoreState();
|
||
|
QTextCursor c2 = doc->selectionEndCursor( selNum );
|
||
12 years ago
|
@@ -3169,7 +3166,6 @@
|
||
13 years ago
|
return;
|
||
|
}
|
||
|
#endif
|
||
|
- resetInputContext();
|
||
|
QTextParagraph *p = doc->paragAt( para );
|
||
|
if ( !p )
|
||
|
return;
|
||
12 years ago
|
@@ -3196,7 +3192,6 @@
|
||
13 years ago
|
return;
|
||
|
}
|
||
|
#endif
|
||
|
- resetInputContext();
|
||
|
for ( int i = 0; i < (int)doc->numSelections(); ++i )
|
||
|
doc->removeSelection( i );
|
||
|
|
||
12 years ago
|
@@ -3238,7 +3233,6 @@
|
||
13 years ago
|
if ( d->optimMode )
|
||
|
return;
|
||
|
#endif
|
||
|
- resetInputContext();
|
||
|
QTextParagraph *p = doc->paragAt( para );
|
||
|
if ( !p )
|
||
|
return;
|
||
12 years ago
|
@@ -3283,7 +3277,6 @@
|
||
13 years ago
|
if ( isReadOnly() || !doc->commands()->isUndoAvailable() || !undoEnabled )
|
||
|
return;
|
||
|
|
||
|
- resetInputContext();
|
||
|
for ( int i = 0; i < (int)doc->numSelections(); ++i )
|
||
|
doc->removeSelection( i );
|
||
|
|
||
12 years ago
|
@@ -3334,7 +3327,6 @@
|
||
13 years ago
|
if ( isReadOnly() || !doc->commands()->isRedoAvailable() || !undoEnabled )
|
||
|
return;
|
||
|
|
||
|
- resetInputContext();
|
||
|
for ( int i = 0; i < (int)doc->numSelections(); ++i )
|
||
|
doc->removeSelection( i );
|
||
|
|
||
12 years ago
|
@@ -3448,7 +3440,6 @@
|
||
13 years ago
|
{
|
||
|
if ( isReadOnly() )
|
||
|
return;
|
||
|
- resetInputContext();
|
||
|
normalCopy();
|
||
|
removeSelectedText();
|
||
|
updateMicroFocusHint();
|
||
12 years ago
|
@@ -3936,7 +3927,6 @@
|
||
13 years ago
|
return;
|
||
|
}
|
||
|
#endif
|
||
|
- resetInputContext();
|
||
|
if ( !isModified() && isReadOnly() &&
|
||
|
this->context() == context && this->text() == text )
|
||
|
return;
|
||
12 years ago
|
@@ -4110,7 +4100,6 @@
|
||
13 years ago
|
if ( !p )
|
||
|
return;
|
||
|
|
||
|
- resetInputContext();
|
||
|
if ( index > p->length() - 1 )
|
||
|
index = p->length() - 1;
|
||
|
|
||
12 years ago
|
@@ -4167,7 +4156,6 @@
|
||
13 years ago
|
return;
|
||
|
}
|
||
|
#endif
|
||
|
- resetInputContext();
|
||
|
if ( doc->hasSelection( selNum ) ) {
|
||
|
doc->removeSelection( selNum );
|
||
|
repaintChanged();
|
||
12 years ago
|
@@ -5074,7 +5062,6 @@
|
||
|
}
|
||
13 years ago
|
if ( dc == doc )
|
||
|
return;
|
||
|
- resetInputContext();
|
||
|
doc = dc;
|
||
|
delete cursor;
|
||
|
cursor = new QTextCursor( doc );
|