Update
This commit is contained in:
@@ -1,9 +1,28 @@
|
|||||||
# include "EinsatzplanFrame.hpp"
|
# 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){
|
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,5 +18,5 @@ protected:
|
|||||||
QPushButton* deleteVeranstaltungButton_m;
|
QPushButton* deleteVeranstaltungButton_m;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
EinsatzplanFrame(QWidget* parent = nullptr, bool admin);
|
EinsatzplanFrame(QWidget* parent = nullptr, std::string id, bool admin);
|
||||||
};
|
};
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
#include "EinsatzplanWindow.hpp"
|
#include "EinsatzplanWindow.hpp"
|
||||||
|
|
||||||
EinsatzplanWindow::EinsatzplanWindow(QWidget* parent, bool admin)
|
EinsatzplanWindow::EinsatzplanWindow(QWidget* parent, std::string id, bool admin)
|
||||||
:QMainWindow(parent)
|
:QMainWindow(parent)
|
||||||
{
|
{
|
||||||
frame_m = new EinsatzplanFrame(this, admin);
|
frame_m = new EinsatzplanFrame(this, id, admin);
|
||||||
setFixedSize(400,550);
|
setFixedSize(400,550);
|
||||||
frame_m->setFixedSize(size());
|
frame_m->setFixedSize(size());
|
||||||
}
|
}
|
||||||
@@ -9,5 +9,5 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
EinsatzplanWindow(QWidget* parent = nullptr, bool admin);
|
EinsatzplanWindow(QWidget* parent = nullptr, std::string id, bool admin);
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user