Remove dead private method from TextEdit implementations
Change-Id: I6c9a7c71607167b326dc45a35d97bcaf25a9d1b9 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
This commit is contained in:
parent
86ca326d9f
commit
3cfee36b99
|
@ -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);
|
||||
|
|
|
@ -88,7 +88,6 @@ public:
|
|||
|
||||
void updateDefaultTextOption();
|
||||
void relayoutDocument();
|
||||
void updateSelection();
|
||||
bool determineHorizontalAlignment();
|
||||
bool setHAlign(QDeclarative1TextEdit::HAlignment, bool forceAlign = false);
|
||||
void mirrorChange();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -85,7 +85,6 @@ public:
|
|||
|
||||
void updateDefaultTextOption();
|
||||
void relayoutDocument();
|
||||
void updateSelection();
|
||||
bool determineHorizontalAlignment();
|
||||
bool setHAlign(QQuickTextEdit::HAlignment, bool forceAlign = false);
|
||||
void mirrorChange();
|
||||
|
|
Loading…
Reference in New Issue