Code simplify.
This commit is contained in:
parent
0fa1a6a1fc
commit
097405038b
@ -28,11 +28,7 @@ bool ResultDialog::eventFilter (QObject *object, QEvent *event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ResultDialog::showResult (ProcessingItem item) {
|
void ResultDialog::showResult (ProcessingItem item) {
|
||||||
ST_ASSERT (!item.source.isNull ());
|
ST_ASSERT (item.isValid ());
|
||||||
ST_ASSERT (!item.recognized.isEmpty ());
|
|
||||||
ST_ASSERT (!item.translated.isEmpty ());
|
|
||||||
ST_ASSERT (!item.screenPos.isNull ());
|
|
||||||
|
|
||||||
ui->sourceLabel->setPixmap (item.source);
|
ui->sourceLabel->setPixmap (item.source);
|
||||||
ui->recognizeLabel->setText (item.recognized);
|
ui->recognizeLabel->setText (item.recognized);
|
||||||
ui->translateLabel->setText (item.translated);
|
ui->translateLabel->setText (item.translated);
|
||||||
|
Loading…
Reference in New Issue
Block a user