Add what's new dialog

This commit is contained in:
Luis Ángel San Martín
2021-01-21 21:39:22 +01:00
parent 3f6c44ce7a
commit 58fdf0af23
16 changed files with 313 additions and 18 deletions

View File

@ -123,5 +123,7 @@
<file>../images/updatingIcon.png</file>
<file>../images/useNewFlowButton.png</file>
<file>../images/useOldFlowButton.png</file>
<file>../images/custom_dialog/custom_close_button.svg</file>
<file>../images/whats_new/whatsnew_header.svg</file>
</qresource>
</RCC>

View File

@ -83,6 +83,8 @@
#include "trayicon_controller.h"
#include "whats_new_controller.h"
#include "QsLog.h"
#ifdef Q_OS_WIN
@ -104,6 +106,15 @@ LibraryWindow::LibraryWindow()
showRootWidget();
selectedLibrary->setCurrentIndex(0);
}
afterLaunchTasks();
}
void LibraryWindow::afterLaunchTasks()
{
WhatsNewController whatsNewController;
whatsNewController.showWhatsNewIfNeeded(this);
}
void LibraryWindow::setupUI()

View File

@ -405,6 +405,8 @@ public slots:
void prepareToCloseApp();
void closeApp();
void afterLaunchTasks();
private:
//fullscreen mode in Windows for preventing this bug: QTBUG-41309 https://bugreports.qt.io/browse/QTBUG-41309
Qt::WindowFlags previousWindowFlags;