ScreenTranslator/src/represent/resultwidget.h

28 lines
499 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:
ResultWidget(QWidget* parent = nullptr);
void show(const TaskPtr& task);
using QWidget::show;
void updateSettings(const QFont& font, bool showRecognized,
bool showCaptured);
2020-02-21 00:45:53 +07:00
bool eventFilter(QObject* watched, QEvent* event) override;
private:
QLabel* image_;
QLabel* recognized_;
QLabel* translated_;
bool showRecognized_{true};
2020-02-21 00:45:53 +07:00
};