Implemented empty toolbar in favorites plugin
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QLocale>
|
#include <QLocale>
|
||||||
|
|
||||||
|
#include "mainwindow.h"
|
||||||
|
|
||||||
FavoritesPlugin::FavoritesPlugin(QObject *parent) :
|
FavoritesPlugin::FavoritesPlugin(QObject *parent) :
|
||||||
ZeiterfassungPlugin(parent)
|
ZeiterfassungPlugin(parent)
|
||||||
{
|
{
|
||||||
@@ -24,3 +26,8 @@ FavoritesPlugin::FavoritesPlugin(QObject *parent) :
|
|||||||
qWarning() << "could not load translation favoritesplugin";
|
qWarning() << "could not load translation favoritesplugin";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FavoritesPlugin::attachTo(MainWindow &mainWindow)
|
||||||
|
{
|
||||||
|
mainWindow.addToolBar(tr("Favorites"));
|
||||||
|
}
|
||||||
|
@@ -14,6 +14,9 @@ class Q_DECL_EXPORT FavoritesPlugin : public ZeiterfassungPlugin
|
|||||||
public:
|
public:
|
||||||
explicit FavoritesPlugin(QObject *parent = Q_NULLPTR);
|
explicit FavoritesPlugin(QObject *parent = Q_NULLPTR);
|
||||||
|
|
||||||
|
// ZeiterfassungPlugin interface
|
||||||
|
void attachTo(MainWindow &mainWindow) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QTranslator m_translator;
|
QTranslator m_translator;
|
||||||
};
|
};
|
||||||
|
@@ -1,4 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE TS>
|
<!DOCTYPE TS>
|
||||||
<TS version="2.1" language="de_DE">
|
<TS version="2.1" language="de_DE">
|
||||||
|
<context>
|
||||||
|
<name>FavoritesPlugin</name>
|
||||||
|
<message>
|
||||||
|
<source>Favorites</source>
|
||||||
|
<translation>Favoriten</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
@@ -1,4 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE TS>
|
<!DOCTYPE TS>
|
||||||
<TS version="2.1" language="en_US">
|
<TS version="2.1" language="en_US">
|
||||||
|
<context>
|
||||||
|
<name>FavoritesPlugin</name>
|
||||||
|
<message>
|
||||||
|
<source>Favorites</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
Reference in New Issue
Block a user