-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathabout_wnd.cpp
45 lines (41 loc) · 1.69 KB
/
about_wnd.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "about_wnd.h"
#include "ui_about_wnd.h"
about_wnd::about_wnd(QWidget *parent) :
QDialog(parent),
ui(new Ui::about_wnd)
{
ui->setupUi(this);
unsigned vers;
QString log_line;
// Add decoder version.
ui->lblDescription->setText(ui->lblDescription->text()+" v"+QString(APP_VERSION)+" ("+QString(COMPILE_DATE)+")");
// Add Qt compile-time version.
ui->lblQtCompiled->setText(ui->lblQtCompiled->text()+" v"+QString::fromLocal8Bit(QT_VERSION_STR));
// Add Qt run-time version.
ui->lblQtRunnig->setText(ui->lblQtRunnig->text()+" v"+QString::fromLocal8Bit(qVersion()));
// Add FFMPEG avcodec version.
vers = avcodec_version();
log_line = " v"+QString::number(AV_VERSION_MAJOR(vers))+
"."+QString::number(AV_VERSION_MINOR(vers))+
"."+QString::number(AV_VERSION_MICRO(vers))+
" ("+QString::number(vers)+")";
ui->lblFFavcodec->setText(ui->lblFFavcodec->text()+log_line);
// Add FFMPEG avdevice version.
vers = avdevice_version();
log_line = " v"+QString::number(AV_VERSION_MAJOR(vers))+
"."+QString::number(AV_VERSION_MINOR(vers))+
"."+QString::number(AV_VERSION_MICRO(vers))+
" ("+QString::number(vers)+")";
ui->lblFFavdevice->setText(ui->lblFFavdevice->text()+log_line);
// Add FFMPEG swscale version.
vers = swscale_version();
log_line = " v"+QString::number(AV_VERSION_MAJOR(vers))+
"."+QString::number(AV_VERSION_MINOR(vers))+
"."+QString::number(AV_VERSION_MICRO(vers))+
" ("+QString::number(vers)+")";
ui->lblFFswscale->setText(ui->lblFFswscale->text()+log_line);
}
about_wnd::~about_wnd()
{
delete ui;
}