From 1bbfd1b11d9133501fa4489f27415d0da945488e Mon Sep 17 00:00:00 2001 From: Gres Date: Mon, 29 Jun 2015 20:26:57 +0300 Subject: [PATCH] Added version info into about dialog. --- Manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Manager.cpp b/Manager.cpp index 5b713df..213c47c 100644 --- a/Manager.cpp +++ b/Manager.cpp @@ -159,9 +159,12 @@ void Manager::close() void Manager::about() { + QString version = "1.2.3"; QString text = tr ("Программа для распознавания текста на экране.\n"\ "Создана с использованием Qt, tesseract-ocr, Google Translate.\n" - "Автор: Gres (translator@gres.biz)"); + "Автор: Gres (translator@gres.biz)\n" + "Версия: %1 от %2 %3").arg (version) + .arg (__DATE__).arg (__TIME__); QMessageBox message (QMessageBox::Information, tr ("О программе"), text, QMessageBox::Ok);