Remove dead private method from TextEdit implementations

Change-Id: I6c9a7c71607167b326dc45a35d97bcaf25a9d1b9
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
This commit is contained in:
Pekka Vuorela 2011-12-09 11:40:27 +02:00 committed by Qt by Nokia
parent 86ca326d9f
commit 3cfee36b99
4 changed files with 0 additions and 36 deletions

View File

@ -1610,23 +1610,6 @@ void QDeclarative1TextEdit::moveCursorDelegate()
d->cursor->setY(cursorRect.y());
}
void QDeclarative1TextEditPrivate::updateSelection()
{
Q_Q(QDeclarative1TextEdit);
QTextCursor cursor = control->textCursor();
bool startChange = (lastSelectionStart != cursor.selectionStart());
bool endChange = (lastSelectionEnd != cursor.selectionEnd());
cursor.beginEditBlock();
cursor.setPosition(lastSelectionStart, QTextCursor::MoveAnchor);
cursor.setPosition(lastSelectionEnd, QTextCursor::KeepAnchor);
cursor.endEditBlock();
control->setTextCursor(cursor);
if(startChange)
q->selectionStartChanged();
if(endChange)
q->selectionEndChanged();
}
void QDeclarative1TextEdit::updateSelectionMarkers()
{
Q_D(QDeclarative1TextEdit);

View File

@ -88,7 +88,6 @@ public:
void updateDefaultTextOption();
void relayoutDocument();
void updateSelection();
bool determineHorizontalAlignment();
bool setHAlign(QDeclarative1TextEdit::HAlignment, bool forceAlign = false);
void mirrorChange();

View File

@ -1700,23 +1700,6 @@ void QQuickTextEdit::moveCursorDelegate()
d->cursor->setY(cursorRect.y());
}
void QQuickTextEditPrivate::updateSelection()
{
Q_Q(QQuickTextEdit);
QTextCursor cursor = control->textCursor();
bool startChange = (lastSelectionStart != cursor.selectionStart());
bool endChange = (lastSelectionEnd != cursor.selectionEnd());
cursor.beginEditBlock();
cursor.setPosition(lastSelectionStart, QTextCursor::MoveAnchor);
cursor.setPosition(lastSelectionEnd, QTextCursor::KeepAnchor);
cursor.endEditBlock();
control->setTextCursor(cursor);
if (startChange)
q->selectionStartChanged();
if (endChange)
q->selectionEndChanged();
}
void QQuickTextEdit::updateSelectionMarkers()
{
Q_D(QQuickTextEdit);

View File

@ -85,7 +85,6 @@ public:
void updateDefaultTextOption();
void relayoutDocument();
void updateSelection();
bool determineHorizontalAlignment();
bool setHAlign(QQuickTextEdit::HAlignment, bool forceAlign = false);
void mirrorChange();