Add TopBar
This commit is contained in:
parent
2bc5690bf7
commit
8d2d59d455
@ -23,6 +23,7 @@ class MainWindow : public QWidget
|
|||||||
QVBoxLayout* _layout = nullptr;
|
QVBoxLayout* _layout = nullptr;
|
||||||
|
|
||||||
TopBar* _topbar = nullptr;
|
TopBar* _topbar = nullptr;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
7
src/gui/TopBar.cpp
Normal file
7
src/gui/TopBar.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include "TopBar.hpp"
|
||||||
|
|
||||||
|
TopBar::TopBar ()
|
||||||
|
{
|
||||||
|
_layout = new QHBoxLayout {};
|
||||||
|
setLayout(_layout);
|
||||||
|
}
|
16
src/gui/TopBar.hpp
Normal file
16
src/gui/TopBar.hpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#ifndef TOPBAR_HPP
|
||||||
|
#define TOPBAR_HPP
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QHBoxLayout>
|
||||||
|
|
||||||
|
class TopBar : public QWidget
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
TopBar ();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QHBoxLayout* _layout = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user