ScreenTranslator/src/commonmodels.h

24 lines
421 B
C
Raw Normal View History

2020-03-28 18:26:05 +07:00
#pragma once
#include "stfwd.h"
#include <QStringListModel>
#include <memory>
class CommonModels
{
public:
CommonModels();
~CommonModels();
void update(const QString& tessdataPath);
QStringListModel* sourceLanguageModel() const;
QStringListModel* targetLanguageModel() const;
private:
std::unique_ptr<QStringListModel> sourceLanguageModel_;
std::unique_ptr<QStringListModel> targetLanguageModel_;
};