ScreenTranslator/src/represent/resultwidget.h

27 lines
454 B
C
Raw Normal View History

2020-02-21 00:45:53 +07:00
#pragma once
#include "stfwd.h"
#include <QFrame>
class QLabel;
class ResultWidget : public QFrame
{
Q_OBJECT
public:
2020-03-21 17:03:58 +07:00
explicit ResultWidget(const Settings& settings, QWidget* parent = nullptr);
2020-02-21 00:45:53 +07:00
void show(const TaskPtr& task);
using QWidget::show;
2020-03-21 17:03:58 +07:00
void updateSettings();
2020-02-21 00:45:53 +07:00
bool eventFilter(QObject* watched, QEvent* event) override;
private:
2020-03-21 17:03:58 +07:00
const Settings& settings_;
2020-02-21 00:45:53 +07:00
QLabel* image_;
QLabel* recognized_;
QLabel* translated_;
};