From 141ad1e5ae7588906d8474dfdead5762370ce222 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 18 Feb 2012 16:37:45 +0000 Subject: Added basic map widget --- src/mainwindow.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/mainwindow.cc') diff --git a/src/mainwindow.cc b/src/mainwindow.cc index e5f8000..e0fe6b2 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -6,8 +6,7 @@ */ #include - -#include +#include namespace editor { @@ -66,9 +65,8 @@ void MainWindow::init_menu() void MainWindow::add_child() { // create a child widget - // TODO replace QTextEdit qith the actual editor widget - QTextEdit *child_widget = new QTextEdit(); - + MapWidget *child_widget = new MapWidget(); + // add the widget to the MDI area, // this will wrap an QMdiSubWindow around it mainwindow_mdiarea->addSubWindow(child_widget); -- cgit v1.2.3