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

#include "Window.hpp"

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


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

}