Commit 3dac9bd4 authored by Robert Loehning's avatar Robert Loehning Committed by hjk
Browse files

Moved unused code for debugging



Change-Id: I2c078ba2e48d7e1e13c6fddcba5f27b6a88bf704
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 7d22c101
...@@ -714,7 +714,6 @@ bool DebuggerToolTipWidget::positionShow(const DebuggerToolTipEditor &te) ...@@ -714,7 +714,6 @@ bool DebuggerToolTipWidget::positionShow(const DebuggerToolTipEditor &te)
QTextCursor cursor(te.baseTextEditor->document()); QTextCursor cursor(te.baseTextEditor->document());
cursor.setPosition(m_context.position); cursor.setPosition(m_context.position);
const int line = cursor.blockNumber(); const int line = cursor.blockNumber();
const int column = cursor.columnNumber();
if (qAbs(m_context.line - line) > 2) { if (qAbs(m_context.line - line) > 2) {
if (debugToolTips) if (debugToolTips)
qDebug() << "Closing " << this << " in positionShow() lines " qDebug() << "Closing " << this << " in positionShow() lines "
...@@ -723,7 +722,7 @@ bool DebuggerToolTipWidget::positionShow(const DebuggerToolTipEditor &te) ...@@ -723,7 +722,7 @@ bool DebuggerToolTipWidget::positionShow(const DebuggerToolTipEditor &te)
return false; return false;
} }
if (debugToolTipPositioning) if (debugToolTipPositioning)
qDebug() << "positionShow" << this << line << column; qDebug() << "positionShow" << this << line << cursor.columnNumber();
const QPoint screenPos = te.baseTextEditor->toolTipPosition(cursor) + m_offset; const QPoint screenPos = te.baseTextEditor->toolTipPosition(cursor) + m_offset;
const QRect toolTipArea = QRect(screenPos, QSize(sizeHint())); const QRect toolTipArea = QRect(screenPos, QSize(sizeHint()));
...@@ -1233,7 +1232,9 @@ void DebuggerToolTipManager::loadSessionData() ...@@ -1233,7 +1232,9 @@ void DebuggerToolTipManager::loadSessionData()
r.readNextStartElement(); r.readNextStartElement();
if (r.tokenType() != QXmlStreamReader::StartElement || r.name() != QLatin1String(sessionDocumentC)) if (r.tokenType() != QXmlStreamReader::StartElement || r.name() != QLatin1String(sessionDocumentC))
return; return;
const double version = r.attributes().value(QLatin1String(sessionVersionAttributeC)).toString().toDouble(); const double version;
if (debugToolTips)
version = r.attributes().value(QLatin1String(sessionVersionAttributeC)).toString().toDouble();
while (!r.atEnd()) while (!r.atEnd())
if (DebuggerToolTipWidget *tw = DebuggerToolTipWidget::loadSessionData(r)) if (DebuggerToolTipWidget *tw = DebuggerToolTipWidget::loadSessionData(r))
registerToolTip(tw); registerToolTip(tw);
......
Supports Markdown
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