Commit 46f8a8ca authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.rewriter: allow more debuging info

Change-Id: I8e4571ac5a8a0ee57823e2e54a2c63f5bbe4538f
Reviewed-on: http://codereview.qt.nokia.com/2571Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent f0713a5a
......@@ -93,6 +93,17 @@ void PlainTextEditModifier::replace(int offset, int length, const QString &repla
void PlainTextEditModifier::move(const MoveInfo &moveInfo)
{
#if 0
qDebug() << "Original:" << m_textEdit->toPlainText();
qDebug() << "Move:" << m_textEdit->toPlainText().mid(moveInfo.objectStart, moveInfo.objectEnd - moveInfo.objectStart);
qDebug() << " prefix:" << moveInfo.prefixToInsert;
qDebug() << " suffix:" << moveInfo.suffixToInsert;
qDebug() << " leadingCharsToRemove:" << moveInfo.leadingCharsToRemove;
qDebug() << " " << m_textEdit->toPlainText().mid(moveInfo.objectStart - moveInfo.leadingCharsToRemove, moveInfo.leadingCharsToRemove);
qDebug() << " trailingCharsToRemove:" << moveInfo.trailingCharsToRemove;
qDebug() << " " << m_textEdit->toPlainText().mid(moveInfo.objectEnd, moveInfo.trailingCharsToRemove);
#endif
Q_ASSERT(moveInfo.objectStart >= 0);
Q_ASSERT(moveInfo.objectEnd > moveInfo.objectStart);
Q_ASSERT(moveInfo.destination >= 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment