Files
QtZeiterfassung/plugins/lunchmealplugin/lunchmealplugin.cpp
T

22 lines
467 B
C++
Raw Normal View History

2017-12-15 20:04:31 +01:00
#include "lunchmealplugin.h"
2017-12-15 20:28:25 +01:00
#include <QDebug>
2017-12-19 18:52:48 +01:00
#include <QBoxLayout>
#include "mainwindow.h"
#include "stripswidget.h"
#include "lunchmealwidget.h"
2017-12-15 20:28:25 +01:00
LunchMealPlugin::LunchMealPlugin(QObject *parent) :
ZeiterfassungPlugin(parent)
2017-12-15 20:04:31 +01:00
{
2017-12-18 22:18:24 +01:00
qDebug() << "called";
2017-12-15 20:04:31 +01:00
}
2017-12-19 18:52:48 +01:00
void LunchMealPlugin::attachTo(MainWindow &mainWindow)
{
for(auto stripsWidget : mainWindow.stripsWidgets())
stripsWidget->headerLayout()->addWidget(new LunchMealWidget(*stripsWidget));
}