]> git.sesse.net Git - nageru/blob - window.cpp
Unify muxing between the local file and networking.
[nageru] / window.cpp
1 #include "window.h"
2
3 #include <QBoxLayout>
4 #include <QString>
5
6 #include "glwidget.h"
7
8 Window::Window(MainWindow *mw)
9         : main_window(mw)
10 {
11         gl_widget = new GLWidget;
12
13         QVBoxLayout *mainLayout = new QVBoxLayout;
14         QHBoxLayout *container = new QHBoxLayout;
15         container->addWidget(gl_widget);
16
17         QWidget *w = new QWidget;
18         w->setLayout(container);
19         mainLayout->addWidget(w);
20
21         setLayout(mainLayout);
22
23         setWindowTitle(tr("Nageru"));
24 }