Code simplify.

This commit is contained in:
Gres 2015-09-28 23:24:08 +03:00
parent 0fa1a6a1fc
commit 097405038b

View File

@ -28,11 +28,7 @@ bool ResultDialog::eventFilter (QObject *object, QEvent *event) {
}
void ResultDialog::showResult (ProcessingItem item) {
ST_ASSERT (!item.source.isNull ());
ST_ASSERT (!item.recognized.isEmpty ());
ST_ASSERT (!item.translated.isEmpty ());
ST_ASSERT (!item.screenPos.isNull ());
ST_ASSERT (item.isValid ());
ui->sourceLabel->setPixmap (item.source);
ui->recognizeLabel->setText (item.recognized);
ui->translateLabel->setText (item.translated);