diff --git a/src/app/MainWindow.hpp b/src/app/MainWindow.hpp index 6bd6040..847d7b5 100644 --- a/src/app/MainWindow.hpp +++ b/src/app/MainWindow.hpp @@ -23,6 +23,7 @@ class MainWindow : public QWidget QVBoxLayout* _layout = nullptr; TopBar* _topbar = nullptr; + }; #endif diff --git a/src/gui/TopBar.cpp b/src/gui/TopBar.cpp new file mode 100644 index 0000000..31cc71a --- /dev/null +++ b/src/gui/TopBar.cpp @@ -0,0 +1,7 @@ +#include "TopBar.hpp" + +TopBar::TopBar () +{ + _layout = new QHBoxLayout {}; + setLayout(_layout); +} diff --git a/src/gui/TopBar.hpp b/src/gui/TopBar.hpp new file mode 100644 index 0000000..b1aa752 --- /dev/null +++ b/src/gui/TopBar.hpp @@ -0,0 +1,16 @@ +#ifndef TOPBAR_HPP +#define TOPBAR_HPP + +#include +#include + +class TopBar : public QWidget +{ + public: + TopBar (); + + private: + QHBoxLayout* _layout = nullptr; +}; + +#endif