aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/Window.cpp
blob: e3d5b526162e32895e504e403493281833337af3 (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
31
32
33
34
35
/*
 * Window.cpp
 *
 *  Created on: Nov 26, 2017
 *      Author: naopross
 */

#include "Window.hpp"

#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QApplication>


namespace samb {

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() {

}

} /* namespace samb */