diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-18 16:37:45 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-18 16:37:45 +0000 |
commit | 141ad1e5ae7588906d8474dfdead5762370ce222 (patch) | |
tree | e8d7e04237a1f1392b4a02f9825b8cb24e58732f /src/mainwindow.cc | |
parent | 81466bb5001c6fc524806311c4a95d1a42da393c (diff) |
Added basic map widget
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r-- | src/mainwindow.cc | 8 |
1 files changed, 3 insertions, 5 deletions
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 <mainwindow.h> - -#include <QTextEdit> +#include <mapwidget.h> 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); |