Imported existing sources
This commit is contained in:
1 parent
552fe27936
commit
af02fa79fd
15 files changed
+680
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user