aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/Window.cpp')
-rw-r--r--src/ui/Window.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/ui/Window.cpp b/src/ui/Window.cpp
index 4572766..e3d5b52 100644
--- a/src/ui/Window.cpp
+++ b/src/ui/Window.cpp
@@ -7,15 +7,29 @@
#include "Window.hpp"
+#include <QVBoxLayout>
+#include <QHBoxLayout>
+#include <QApplication>
+
+
namespace samb {
-Window::Window() {
- // TODO Auto-generated constructor stub
+Window::Window(QWidget *parent): QWidget(parent) {
+ setWindowTitle("OrbitingYeti");
+
+ QVBoxLayout *vBox = new QVBoxLayout(this);
+ QHBoxLayout *hBox = new QHBoxLayout();
+ m_quitBtn = new QPushButton("Quit", this);
+ connect(m_quitBtn, SIGNAL(clicked()), qApp, SLOT(quit()));
+
+ hBox->addWidget(m_quitBtn, 0, Qt::AlignRight);
+ vBox->addStretch(1);
+ vBox->addLayout(hBox);
}
Window::~Window() {
- // TODO Auto-generated destructor stub
+
}
} /* namespace samb */