From 6c974cec10b7c78f0655cc69bf9ac799656f5389 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 <0xFEEDC0DE64@gmail.com> Date: Thu, 7 Dec 2017 00:24:00 +0100 Subject: [PATCH] Added UpdateDialog --- dialogs/updatedialog.cpp | 14 ++++++++ dialogs/updatedialog.h | 20 +++++++++++ dialogs/updatedialog.ui | 71 ++++++++++++++++++++++++++++++++++++++++ zeiterfassung.pro | 9 +++-- 4 files changed, 111 insertions(+), 3 deletions(-) create mode 100644 dialogs/updatedialog.cpp create mode 100644 dialogs/updatedialog.h create mode 100644 dialogs/updatedialog.ui diff --git a/dialogs/updatedialog.cpp b/dialogs/updatedialog.cpp new file mode 100644 index 0000000..78bad08 --- /dev/null +++ b/dialogs/updatedialog.cpp @@ -0,0 +1,14 @@ +#include "updatedialog.h" +#include "ui_updatedialog.h" + +UpdateDialog::UpdateDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::UpdateDialog) +{ + ui->setupUi(this); +} + +UpdateDialog::~UpdateDialog() +{ + delete ui; +} diff --git a/dialogs/updatedialog.h b/dialogs/updatedialog.h new file mode 100644 index 0000000..abf3a74 --- /dev/null +++ b/dialogs/updatedialog.h @@ -0,0 +1,20 @@ +#ifndef UPDATEDIALOG_H +#define UPDATEDIALOG_H + +#include + +namespace Ui { class UpdateDialog; } + +class UpdateDialog : public QDialog +{ + Q_OBJECT + +public: + explicit UpdateDialog(QWidget *parent = 0); + ~UpdateDialog(); + +private: + Ui::UpdateDialog *ui; +}; + +#endif // UPDATEDIALOG_H diff --git a/dialogs/updatedialog.ui b/dialogs/updatedialog.ui new file mode 100644 index 0000000..f25d591 --- /dev/null +++ b/dialogs/updatedialog.ui @@ -0,0 +1,71 @@ + + + + + UpdateDialog + + + + 0 + 0 + 400 + 300 + + + + Dialog + + + + + 30 + 240 + 341 + 32 + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + buttonBox + accepted() + UpdateDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + UpdateDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/zeiterfassung.pro b/zeiterfassung.pro index 8225a79..67d3fc7 100755 --- a/zeiterfassung.pro +++ b/zeiterfassung.pro @@ -30,7 +30,8 @@ SOURCES += main.cpp \ strips/timeassignmentstrip.cpp \ dialogs/bookingdialog.cpp \ models/bookingsmodel.cpp \ - strips/bookingstrip.cpp + strips/bookingstrip.cpp \ + dialogs/updatedialog.cpp HEADERS += \ zeiterfassung.h \ @@ -46,7 +47,8 @@ HEADERS += \ strips/timeassignmentstrip.h \ dialogs/bookingdialog.h \ models/bookingsmodel.h \ - strips/bookingstrip.h + strips/bookingstrip.h \ + dialogs/updatedialog.h FORMS += \ mainwindow.ui \ @@ -57,7 +59,8 @@ FORMS += \ dialogs/timeassignmentdialog.ui \ strips/timeassignmentstrip.ui \ dialogs/bookingdialog.ui \ - strips/bookingstrip.ui + strips/bookingstrip.ui \ + dialogs/updatedialog.ui RESOURCES += \ resources.qrc