From: hausmann@webkit.org Date: Fri, 18 Jan 2008 09:36:42 +0000 (+0000) Subject: * Make the qDebug more usable. Do not have an additional newline and print X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=c2186a08f9249d8005ad428157210ad903d38a3c * Make the qDebug more usable. Do not have an additional newline and print the untranslated coordinates as well. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29607 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index 6fa4bfb..336b21fb 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -2,6 +2,17 @@ Reviewed by Simon. + * Make the qDebug more usable. Do not have an additional newline and print + the untranslated coordinates as well. + + * platform/qt/PlatformScrollBarQt.cpp: + (WebCore::PlatformScrollbar::handleMouseMoveEvent): + (WebCore::PlatformScrollbar::handleMousePressEvent): + +2008-01-18 Holger Hans Peter Freyther + + Reviewed by Simon. + * Dead code, remove it * platform/qt/PlatformScrollBarQt.cpp: diff --git a/WebCore/platform/qt/PlatformScrollBarQt.cpp b/WebCore/platform/qt/PlatformScrollBarQt.cpp index 955b00a..8d9f858 100644 --- a/WebCore/platform/qt/PlatformScrollBarQt.cpp +++ b/WebCore/platform/qt/PlatformScrollBarQt.cpp @@ -198,7 +198,7 @@ int PlatformScrollbar::trackLength() const bool PlatformScrollbar::handleMouseMoveEvent(const PlatformMouseEvent& evt) { const QPoint pos = parent()->convertFromContainingWindow(evt.pos()); - //qDebug() << "PlatformScrollbar::handleMouseMoveEvent" << m_opt.rect << pos << endl; + //qDebug() << "PlatformScrollbar::handleMouseMoveEvent" << m_opt.rect << pos << evt.pos(); m_opt.state |= QStyle::State_MouseOver; const QPoint ctlPt = m_opt.rect.topLeft(); @@ -275,7 +275,7 @@ bool PlatformScrollbar::handleMouseOutEvent(const PlatformMouseEvent& evt) bool PlatformScrollbar::handleMousePressEvent(const PlatformMouseEvent& evt) { const QPoint pos = parent()->convertFromContainingWindow(evt.pos()); - //qDebug() << "PlatformScrollbar::handleMousePressEvent" << m_opt.rect << pos << endl; + //qDebug() << "PlatformScrollbar::handleMousePressEvent" << m_opt.rect << pos << evt.pos(); const QPoint ctlPt = m_opt.rect.topLeft(); m_opt.rect.moveTo(0, 0);