blob: 6a7265410c528ab676ccbf64e82c1aea5ab5e513 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
editorwindow.h
This file is part of the Project::OSiRiON zone editor
and is distributed under the terms and conditions of
the GNU General Public License version 2
*/
#include "editorwindow.h"
#include "mapwidget.h"
#include "sidebar.h"
namespace editor
{
EditorWindow::EditorWindow(QWidget *parent) : QWidget(parent)
{
editorwindow_mapwidget = new MapWidget(this);
editorwindow_sidebar = new SideBar(this);
}
void EditorWindow::resizeEvent (QResizeEvent *event)
{
editorwindow_sidebar->resize(256, height());
editorwindow_mapwidget->setGeometry(
editorwindow_sidebar->width(), 0,
width() - editorwindow_sidebar->width(), height()
);
}
}
|