Message Box
This commit is contained in:
@@ -196,11 +196,15 @@ EinsatzplanFrame::EinsatzplanFrame(QWidget* parent, QString id, bool admin)
|
||||
}
|
||||
|
||||
void EinsatzplanFrame::abmelden(){
|
||||
((QApplication*)(parent()->parent()))->exit();
|
||||
static_cast<QApplication*>(parent()->parent())->exit();
|
||||
}
|
||||
|
||||
void EinsatzplanFrame::deleteVeranstaltung(){
|
||||
|
||||
bool ok;
|
||||
QString text = QInputDialog::getText(this, tr("Veranstaltung Entfernen"),
|
||||
tr("Bitte geben sie die Veranstaltung ein:"), QLineEdit::Normal,
|
||||
"", &ok);
|
||||
|
||||
}
|
||||
|
||||
void EinsatzplanFrame::createVeranstaltung(){
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
# include <QHBoxLayout>
|
||||
# include <QMainWindow>
|
||||
# include <QApplication>
|
||||
# include <QMessageBox>
|
||||
# include <QInputDialog>
|
||||
# include "../PlanGrid/PlanGrid.hpp"
|
||||
|
||||
|
||||
@@ -27,7 +29,7 @@ protected:
|
||||
public:
|
||||
EinsatzplanFrame(QWidget* parent = nullptr, QString id = "0000000", bool admin = true);
|
||||
|
||||
private: slots
|
||||
private slots:
|
||||
|
||||
void abmelden();
|
||||
void deleteVeranstaltung();
|
||||
|
||||
Reference in New Issue
Block a user