Translations: Remove QObject
This commit is contained in:
parent
c818dabe92
commit
28222b1832
@ -771,7 +771,6 @@ set(HEADERS
|
|||||||
src/core/thread.h
|
src/core/thread.h
|
||||||
src/core/urlhandler.h
|
src/core/urlhandler.h
|
||||||
src/core/standarditemiconloader.h
|
src/core/standarditemiconloader.h
|
||||||
src/core/translations.h
|
|
||||||
src/core/mimedata.h
|
src/core/mimedata.h
|
||||||
src/core/stylesheetloader.h
|
src/core/stylesheetloader.h
|
||||||
src/core/localredirectserver.h
|
src/core/localredirectserver.h
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
using namespace Qt::Literals::StringLiterals;
|
using namespace Qt::Literals::StringLiterals;
|
||||||
|
|
||||||
Translations::Translations(QObject *parent) : QObject(parent) {}
|
Translations::Translations() {}
|
||||||
|
|
||||||
Translations::~Translations() {
|
Translations::~Translations() {
|
||||||
|
|
||||||
|
@ -22,18 +22,15 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
class QTranslator;
|
class QTranslator;
|
||||||
|
|
||||||
class Translations : public QObject {
|
class Translations {
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Translations(QObject *parent = nullptr);
|
explicit Translations();
|
||||||
~Translations() override;
|
~Translations();
|
||||||
void LoadTranslation(const QString &prefix, const QString &path, const QString &language);
|
void LoadTranslation(const QString &prefix, const QString &path, const QString &language);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user