summaryrefslogtreecommitdiffstats
path: root/tests/manual/barstest
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/barstest')
-rw-r--r--tests/manual/barstest/CMakeLists.txt1
-rw-r--r--tests/manual/barstest/chart.cpp4
-rw-r--r--tests/manual/barstest/custominputhandler.h4
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/manual/barstest/CMakeLists.txt b/tests/manual/barstest/CMakeLists.txt
index f3d695d5..50c156e5 100644
--- a/tests/manual/barstest/CMakeLists.txt
+++ b/tests/manual/barstest/CMakeLists.txt
@@ -7,6 +7,7 @@ qt_add_executable(barstest
PUBLIC_LIBRARIES
Qt::Gui
Qt::Widgets
+ Qt::DataVisualization
)
set(barstest_resource_files
diff --git a/tests/manual/barstest/chart.cpp b/tests/manual/barstest/chart.cpp
index 93751d59..7d878046 100644
--- a/tests/manual/barstest/chart.cpp
+++ b/tests/manual/barstest/chart.cpp
@@ -684,7 +684,9 @@ void GraphModifier::changeSelectionMode()
{
static int selectionMode = m_graph->selectionMode();
- if (++selectionMode > (QAbstract3DGraph::SelectionItemAndColumn | QAbstract3DGraph::SelectionSlice | QAbstract3DGraph::SelectionMultiSeries))
+ if (++selectionMode > (int)(QAbstract3DGraph::SelectionItemAndColumn |
+ QAbstract3DGraph::SelectionSlice |
+ QAbstract3DGraph::SelectionMultiSeries))
selectionMode = QAbstract3DGraph::SelectionNone;
m_graph->setSelectionMode((QAbstract3DGraph::SelectionFlag)selectionMode);
diff --git a/tests/manual/barstest/custominputhandler.h b/tests/manual/barstest/custominputhandler.h
index ce864335..62b87d31 100644
--- a/tests/manual/barstest/custominputhandler.h
+++ b/tests/manual/barstest/custominputhandler.h
@@ -38,8 +38,8 @@ class CustomInputHandler : public QAbstract3DInputHandler
public:
explicit CustomInputHandler(QObject *parent = 0);
- virtual void mouseMoveEvent(QMouseEvent *event, const QPoint &mousePos);
- virtual void wheelEvent(QWheelEvent *event);
+ virtual void mouseMoveEvent(QMouseEvent *event, const QPoint &mousePos) override;
+ virtual void wheelEvent(QWheelEvent *event) override;
};
#endif