cmake plugin cleanups
This commit is contained in:
+3
-3
@@ -6,6 +6,8 @@
|
||||
#include <QLocale>
|
||||
#include <QStatusBar>
|
||||
|
||||
#include "utils/fileutils.h"
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include "reportswidget.h"
|
||||
@@ -15,9 +17,7 @@ ReportsPlugin::ReportsPlugin(QObject *parent) :
|
||||
{
|
||||
qDebug() << "called";
|
||||
|
||||
static auto dir = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(QStringLiteral("translations"));
|
||||
|
||||
if(m_translator.load(QLocale(), QStringLiteral("reportsplugin"), QStringLiteral("_"), dir))
|
||||
if(m_translator.load(QLocale(), QStringLiteral("reportsplugin"), QStringLiteral("_"), translationsDir()))
|
||||
{
|
||||
if(!QCoreApplication::installTranslator(&m_translator))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user