diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-10 18:02:36 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-10 18:02:36 -0800 |
commit | 3be6b128fdda4cd9ed845b467001c4862dd7d0c1 (patch) | |
tree | 4c84517b0b72beb2a30d14de3e2c8533917bbb3b /qt-mobile | |
parent | 9d6c755f48368af005879e28583de4f2135e15fe (diff) | |
download | subsurface-3be6b128fdda4cd9ed845b467001c4862dd7d0c1.tar.gz |
QML UI: hide some profile scaling debug messages
Simply make things less verbose
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/qmlprofile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-mobile/qmlprofile.cpp b/qt-mobile/qmlprofile.cpp index 7725786f0..9b7d3340a 100644 --- a/qt-mobile/qmlprofile.cpp +++ b/qt-mobile/qmlprofile.cpp @@ -29,7 +29,7 @@ void QMLProfile::paint(QPainter *painter) // let's look at the intended size of the content and scale our scene accordingly QRect painterRect = painter->viewport(); QRect profileRect = m_profileWidget->viewport()->rect(); - qDebug() << "profile viewport and painter viewport" << profileRect << painterRect; + // qDebug() << "profile viewport and painter viewport" << profileRect << painterRect; qreal sceneSize = 104; // that should give us 2% margin all around (100x100 scene) qreal dprComp = devicePixelRatio() * painterRect.width() / profileRect.width(); qreal sx = painterRect.width() / sceneSize / dprComp; @@ -55,8 +55,8 @@ void QMLProfile::paint(QPainter *painter) QMLManager::instance()->appendTextToLog(QString("painter matrix %1 %2 %3 %4 %5 %6 %7 %8 %9").arg(painterTransform.m11()).arg(painterTransform.m12()).arg(painterTransform.m13()) .arg(painterTransform.m21()).arg(painterTransform.m22()).arg(painterTransform.m23()) .arg(painterTransform.m31()).arg(painterTransform.m32()).arg(painterTransform.m33())); - qDebug() << "profile scaled by" << profileTransform.m11() << profileTransform.m22() << "and translated by" << profileTransform.m31() << profileTransform.m32(); - qDebug() << "exist profile transform" << m_profileWidget->transform() << "painter transform" << painter->transform(); + // qDebug() << "profile scaled by" << profileTransform.m11() << profileTransform.m22() << "and translated by" << profileTransform.m31() << profileTransform.m32(); + // qDebug() << "exist profile transform" << m_profileWidget->transform() << "painter transform" << painter->transform(); // apply the transformation painter->setTransform(painterTransform); |