Skip to content

Commit

Permalink
Modify about version
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Jun 22, 2023
1 parent 54979f8 commit 8b8f420
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion App/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,13 @@ void MainWindow::on_actionAbout_A_triggered()
{
#ifdef RABBITCOMMON
CDlgAbout about(this);
about.m_AppIcon = QImage(":/image/FaceRecognizer");
//about.m_AppIcon = QImage(":/image/FaceRecognizer");
QIcon icon = windowIcon();
if(icon.isNull()) return;
auto sizeList = icon.availableSizes();
if(sizeList.isEmpty()) return;
QPixmap p = icon.pixmap(*sizeList.begin());
about.m_AppIcon = p.toImage();
about.m_szHomePage = "https://github.com/KangLin/FaceRecognizer";
about.m_szCopyrightStartTime = "2019";
about.m_szVersionRevision = FaceRecognizer_REVISION;
Expand Down
3 changes: 2 additions & 1 deletion App/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ int main(int argc, char *argv[])
#if defined(Q_OS_ANDROID) && QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
QtAndroid::hideSplashScreen();
#endif
QApplication app(argc, argv);
QApplication app(argc, argv);
app.setApplicationVersion(FaceRecognizer_VERSION);
app.setApplicationName("FaceRecognizer");

#ifdef RABBITCOMMON
Expand Down

0 comments on commit 8b8f420

Please sign in to comment.