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