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