diff options
author | Nao Pross <naopross@thearcway.org> | 2017-12-18 00:00:21 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-12-18 00:00:21 +0100 |
commit | 2e27a93e3ed189b4d96ec7df6e05b102dd2e841a (patch) | |
tree | 6952edd5db3b4075532c4ce75bda764d5a67051b /src/ui | |
parent | Update .gitignore and minor changes (mostly formatting) (diff) | |
download | OrbitingYeti-2e27a93e3ed189b4d96ec7df6e05b102dd2e841a.tar.gz OrbitingYeti-2e27a93e3ed189b4d96ec7df6e05b102dd2e841a.zip |
Replace tabs with spaces, set up CMake build system
Other changes:
- update gitignore
- build scripts under `etc`
- fix window
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/Window.cpp | 20 | ||||
-rw-r--r-- | src/ui/Window.hpp | 6 |
2 files changed, 12 insertions, 14 deletions
diff --git a/src/ui/Window.cpp b/src/ui/Window.cpp index e3d5b52..7f28ffe 100644 --- a/src/ui/Window.cpp +++ b/src/ui/Window.cpp @@ -12,24 +12,22 @@ #include <QApplication> -namespace samb { +using namespace samb; Window::Window(QWidget *parent): QWidget(parent) { - setWindowTitle("OrbitingYeti"); + setWindowTitle("OrbitingYeti"); - QVBoxLayout *vBox = new QVBoxLayout(this); - QHBoxLayout *hBox = new QHBoxLayout(); + QVBoxLayout *vBox = new QVBoxLayout(this); + QHBoxLayout *hBox = new QHBoxLayout(); - m_quitBtn = new QPushButton("Quit", this); - connect(m_quitBtn, SIGNAL(clicked()), qApp, SLOT(quit())); + 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); + hBox->addWidget(m_quitBtn, 0, Qt::AlignRight); + vBox->addStretch(1); + vBox->addLayout(hBox); } Window::~Window() { } - -} /* namespace samb */ diff --git a/src/ui/Window.hpp b/src/ui/Window.hpp index 9b04ebb..9f48f12 100644 --- a/src/ui/Window.hpp +++ b/src/ui/Window.hpp @@ -16,11 +16,11 @@ namespace samb { class Window : public QWidget { Q_OBJECT public: - explicit Window(QWidget *parent = 0); - ~Window(); + explicit Window(QWidget *parent = 0); + ~Window(); private: - QPushButton *m_quitBtn; + QPushButton *m_quitBtn; }; } /* namespace samb */ |