From b60bb2ed272972847cb533be2e86bd2d7e565918 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 13 Apr 2015 08:37:00 +0200 Subject: Adds tasks 2 and 3 --- mainwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mainwindow.cpp') diff --git a/mainwindow.cpp b/mainwindow.cpp index 155bd28..5a548db 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -6,6 +6,7 @@ MainWindow::MainWindow(QWidget *parent) : ui(new Ui::MainWindow) { ui->setupUi(this); + setCentralWidget(new InteractionCanvas()); } MainWindow::~MainWindow() @@ -41,3 +42,9 @@ void MainWindow::on_actionPreferences_triggered() delete tmp; } + + +void MainWindow::mouseMoveEvent(QMouseEvent *mouseEvent) +{ + qDebug() << "MainWindow:" << mouseEvent->pos(); +} -- cgit v1.2.3-70-g09d2