Imported existing sources

This commit is contained in:
0xFEEDC0DE64 committed 2018-09-17 19:34:33 +02:00
1 parent 552fe27936
commit af02fa79fd
15 files changed
+680

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#include "absencewidget.h"
#include "stripswidget.h"
#include "mainwindow.h"
#include "absencedialog.h"
AbsenceWidget::AbsenceWidget(StripsWidget &stripsWidget) :
QToolButton(&stripsWidget),
m_stripsWidget(stripsWidget)
{
setIcon(QIcon(QStringLiteral(":/zeiterfassung/plugins/absenceplugin/images/absence.png")));
setText(tr("Absence"));
connect(this, &QAbstractButton::pressed, this, &AbsenceWidget::pressedSlot);
}
void AbsenceWidget::pressedSlot()
{
AbsenceDialog dialog(m_stripsWidget.mainWindow().userInfo().userId, m_stripsWidget.date(),
m_stripsWidget.mainWindow().erfassung(), this);
dialog.exec();
}