Translations: Remove QObject

This commit is contained in:
Jonas Kvinge 2024-10-21 00:30:12 +02:00
parent c818dabe92
commit 28222b1832
3 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -30,7 +30,7 @@
using namespace Qt::Literals::StringLiterals;
Translations::Translations(QObject *parent) : QObject(parent) {}
Translations::Translations() {}
Translations::~Translations() {

View File

@ -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: