forked from qt-creator/qt-creator
Moved unused code for debugging
Change-Id: I2c078ba2e48d7e1e13c6fddcba5f27b6a88bf704 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -714,7 +714,6 @@ bool DebuggerToolTipWidget::positionShow(const DebuggerToolTipEditor &te)
|
||||
QTextCursor cursor(te.baseTextEditor->document());
|
||||
cursor.setPosition(m_context.position);
|
||||
const int line = cursor.blockNumber();
|
||||
const int column = cursor.columnNumber();
|
||||
if (qAbs(m_context.line - line) > 2) {
|
||||
if (debugToolTips)
|
||||
qDebug() << "Closing " << this << " in positionShow() lines "
|
||||
@@ -723,7 +722,7 @@ bool DebuggerToolTipWidget::positionShow(const DebuggerToolTipEditor &te)
|
||||
return false;
|
||||
}
|
||||
if (debugToolTipPositioning)
|
||||
qDebug() << "positionShow" << this << line << column;
|
||||
qDebug() << "positionShow" << this << line << cursor.columnNumber();
|
||||
|
||||
const QPoint screenPos = te.baseTextEditor->toolTipPosition(cursor) + m_offset;
|
||||
const QRect toolTipArea = QRect(screenPos, QSize(sizeHint()));
|
||||
@@ -1233,7 +1232,9 @@ void DebuggerToolTipManager::loadSessionData()
|
||||
r.readNextStartElement();
|
||||
if (r.tokenType() != QXmlStreamReader::StartElement || r.name() != QLatin1String(sessionDocumentC))
|
||||
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())
|
||||
if (DebuggerToolTipWidget *tw = DebuggerToolTipWidget::loadSessionData(r))
|
||||
registerToolTip(tw);
|
||||
|
||||
Reference in New Issue
Block a user