Skip to content

Commit

Permalink
Show logo on AboutDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
thejinchao committed May 22, 2023
1 parent cf73e3e commit 5294b45
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions axtrace/AT4.qrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>images/AxTrace.ico</file>
<file>images/AxTrace.png</file>
<file>images/capture.png</file>
<file>images/doc-pause.png</file>
<file>images/save.png</file>
Expand Down
3 changes: 3 additions & 0 deletions axtrace/AT4_MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,13 @@ void MainWindow::_onSetting()
//--------------------------------------------------------------------------------------------
void MainWindow::_onAbout()
{
QPixmap iconPix(tr(":/images/AxTrace.png"));

QMessageBox msgBox;
msgBox.setWindowTitle(tr("About AxTrace"));
msgBox.setTextFormat(Qt::RichText);
msgBox.setText(tr("AXIA|Trace 4<br/>Copyright <a href=\"http://www.thecodeway.com\">www.thecodeway.com</a>"));
msgBox.setIconPixmap(iconPix);
msgBox.exec();
}

Expand Down
8 changes: 4 additions & 4 deletions axtrace/AxTrace.rc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ IDI_ICON1 ICON "images/AxTrace.ico"
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED

VS_VERSION_INFO VERSIONINFO
FILEVERSION 4, 2, 0, 0
PRODUCTVERSION 4, 2, 0, 0
FILEVERSION 4, 3, 0, 0
PRODUCTVERSION 4, 3, 0, 0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -23,12 +23,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "thecodeway.com"
VALUE "FileDescription", "AxTrace4"
VALUE "FileVersion", "4.2.0.0"
VALUE "FileVersion", "4.3.0.0"
VALUE "InternalName", "AxTrace.rc"
VALUE "LegalCopyright", "Copyright (C) thecodeway.com 2023"
VALUE "OriginalFilename", "AxTrace.rc"
VALUE "ProductName", "Axia|Trace4"
VALUE "ProductVersion", "4.2.0.0"
VALUE "ProductVersion", "4.3.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down
Binary file added axtrace/images/AxTrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5294b45

Please sign in to comment.