cmake plugin cleanups
This commit is contained in:
@@ -20,7 +20,13 @@ set(FORMS
|
||||
webradiodialog.ui
|
||||
)
|
||||
|
||||
add_library(zeiterfassung-plugins-webradioplugin SHARED ${HEADERS} ${SOURCES} ${RESOURCES} ${FORMS})
|
||||
set(OTHER_FILES
|
||||
webradioplugin.json
|
||||
)
|
||||
|
||||
add_library(zeiterfassung-plugins-webradioplugin SHARED ${HEADERS} ${SOURCES} ${RESOURCES} ${FORMS} ${OTHER_FILES})
|
||||
|
||||
set_target_properties(zeiterfassung-plugins-webradioplugin PROPERTIES OUTPUT_NAME webradioplugin PREFIX "")
|
||||
|
||||
target_link_libraries(zeiterfassung-plugins-webradioplugin Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Multimedia dbguilib zeiterfassungguilib zeiterfassungnetworklib)
|
||||
|
||||
|
@@ -7,6 +7,8 @@
|
||||
#include <QMenu>
|
||||
#include <QAction>
|
||||
|
||||
#include "utils/fileutils.h"
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include "webradiodialog.h"
|
||||
@@ -17,9 +19,7 @@ WebRadioPlugin::WebRadioPlugin(QObject *parent) :
|
||||
{
|
||||
qDebug() << "called";
|
||||
|
||||
static auto dir = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(QStringLiteral("translations"));
|
||||
|
||||
if(m_translator.load(QLocale(), QStringLiteral("webradioplugin"), QStringLiteral("_"), dir))
|
||||
if(m_translator.load(QLocale(), QStringLiteral("webradioplugin"), QStringLiteral("_"), translationsDir()))
|
||||
{
|
||||
if(!QCoreApplication::installTranslator(&m_translator))
|
||||
{
|
||||
|
Reference in New Issue
Block a user