ScreenTranslator/src/commonmodels.h
2020-04-20 20:46:28 +03:00

24 lines
421 B
C++

#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_;
};