Added reportsplugin
This commit is contained in:
1 parent
ab263c73f6
commit
5d4928fddf
5 files changed
+64
No files matched your search
@@ -3,5 +3,6 @@ TEMPLATE = subdirs
|
||||
SUBDIRS += advancedviewplugin \
|
||||
lunchmealplugin \
|
||||
presenceplugin \
|
||||
reportsplugin \
|
||||
updaterplugin \
|
||||
weatherplugin
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "reportsplugin.h"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
ReportsPlugin::ReportsPlugin(QObject *parent) :
|
||||
ZeiterfassungPlugin(parent)
|
||||
{
|
||||
qDebug() << "called";
|
||||
}
|
||||
|
||||
void ReportsPlugin::attachTo(MainWindow &mainWindow)
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef REPORTSPLUGIN_H
|
||||
#define REPORTSPLUGIN_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "zeiterfassungplugin.h"
|
||||
|
||||
class MainWindow;
|
||||
|
||||
class Q_DECL_EXPORT ReportsPlugin : public ZeiterfassungPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "dbsoftware.zeiterfassung.plugin/1.0" FILE "reportsplugin.json")
|
||||
Q_INTERFACES(ZeiterfassungPlugin)
|
||||
|
||||
public:
|
||||
explicit ReportsPlugin(QObject *parent = Q_NULLPTR);
|
||||
|
||||
// ZeiterfassungPlugin interface
|
||||
void attachTo(MainWindow &mainWindow) Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // REPORTSPLUGIN_H
|
||||
Whitespace-only changes.
@@ -0,0 +1,27 @@
|
||||
QT += core network gui widgets
|
||||
|
||||
TARGET = reportsplugin
|
||||
TEMPLATE = lib
|
||||
|
||||
CONFIG += shared c++14
|
||||
|
||||
DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
HEADERS += reportsplugin.h
|
||||
|
||||
SOURCES += reportsplugin.cpp
|
||||
|
||||
FORMS +=
|
||||
|
||||
RESOURCES +=
|
||||
|
||||
TRANSLATIONS +=
|
||||
|
||||
OTHER_FILES += reportsplugin.json
|
||||
Reference in new issue
Block a user