25 lines
365 B
C
25 lines
365 B
C
|
|
#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;
|
||
|
|
|
||
|
|
bool eventFilter(QObject* watched, QEvent* event) override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
QLabel* image_;
|
||
|
|
QLabel* recognized_;
|
||
|
|
QLabel* translated_;
|
||
|
|
};
|