From d5535488b30e4c8f1d826fa4bb1442eb9fa908b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Thu, 2 Oct 2014 10:28:42 +0300 Subject: Fixed ordering of subviews Task-number: QTRD-2790 Change-Id: I8ac6ce89920a9c988c7a059e1b02c980a0264200 Reviewed-by: Miikka Heikkinen --- tests/barstest/chart.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/barstest/chart.cpp b/tests/barstest/chart.cpp index 6be5e66d..e468700e 100644 --- a/tests/barstest/chart.cpp +++ b/tests/barstest/chart.cpp @@ -203,7 +203,6 @@ GraphModifier::GraphModifier(Q3DBars *barchart, QColorDialog *colorDialog) m_graph->activeTheme()->setFont(QFont("Times Roman", 20)); - // Release and store the default input handler. m_defaultInputHandler = static_cast(m_graph->activeInputHandler()); m_graph->releaseInputHandler(m_defaultInputHandler); @@ -335,6 +334,9 @@ void GraphModifier::releaseSeries() void GraphModifier::flipViews() { m_graph->scene()->setSecondarySubviewOnTop(!m_graph->scene()->isSecondarySubviewOnTop()); + qDebug() << "secondary subview on top:" << m_graph->scene()->isSecondarySubviewOnTop(); + qDebug() << "point (50, 50) in primary subview:" << m_graph->scene()->isPointInPrimarySubView(QPoint(50, 50)); + qDebug() << "point (50, 50) in secondary subview:" << m_graph->scene()->isPointInSecondarySubView(QPoint(50, 50)); } void GraphModifier::createMassiveArray() -- cgit v1.2.3