This commit is contained in:
AJ
2024-06-23 18:11:36 +02:00
parent 97e5a3faf7
commit 997b79c862
4 changed files with 24 additions and 5 deletions

View File

@@ -1,9 +1,28 @@
# include "EinsatzplanFrame.hpp"
EinsatzplanFrame::EinsatzplanFrame(QWidget* parent, bool admin){
EinsatzplanFrame::EinsatzplanFrame(QWidget* parent, std::string id, bool admin){
setFrameStyle(QFrame::Box);
profileImg_m = new QLabel(this);
id_m = new QLabel(id,this);
einsatzplanLabel_m = new QLabel("Einsatzplan",this);
planGrid_m = new PlanGrid(this);
if (admin){
abmeldenButton_m = new QPushButton(this);
createMemberButton_m = new QPushButton(this);
deleteMemberButton_m = new QPushButton(this);
createVeranstaltungButton_m = new QPushButton(this);
deleteVeranstaltungButton_m = new QPushButton(this);
}
}

View File

@@ -18,5 +18,5 @@ protected:
QPushButton* deleteVeranstaltungButton_m;
public:
EinsatzplanFrame(QWidget* parent = nullptr, bool admin);
EinsatzplanFrame(QWidget* parent = nullptr, std::string id, bool admin);
};

View File

@@ -1,9 +1,9 @@
#include "EinsatzplanWindow.hpp"
EinsatzplanWindow::EinsatzplanWindow(QWidget* parent, bool admin)
EinsatzplanWindow::EinsatzplanWindow(QWidget* parent, std::string id, bool admin)
:QMainWindow(parent)
{
frame_m = new EinsatzplanFrame(this, admin);
frame_m = new EinsatzplanFrame(this, id, admin);
setFixedSize(400,550);
frame_m->setFixedSize(size());
}

View File

@@ -9,5 +9,5 @@ private:
public:
EinsatzplanWindow(QWidget* parent = nullptr, bool admin);
EinsatzplanWindow(QWidget* parent = nullptr, std::string id, bool admin);
};