1
0

Add TopBar

This commit is contained in:
Emilio Soriano Chávez 2025-01-10 23:13:01 -05:00
parent 2bc5690bf7
commit 8d2d59d455
Signed by: ami
SSH Key Fingerprint: SHA256:sWhVpdjbG+Qc9U4/7pEQbUHnVr3MSfIqu6Xq3YEaQ8I
3 changed files with 24 additions and 0 deletions

View File

@ -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
View File

@ -0,0 +1,7 @@
#include "TopBar.hpp"
TopBar::TopBar ()
{
_layout = new QHBoxLayout {};
setLayout(_layout);
}

16
src/gui/TopBar.hpp Normal file
View 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