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

@ -20,6 +20,8 @@
#include "edit_shortcuts_dialog.h"
#include "shortcuts_manager.h"
#include "whats_new_controller.h"
#include <ctime>
#include <algorithm>
#include <QApplication>
@ -73,6 +75,14 @@ MainWindowViewer::MainWindowViewer()
{
loadConfiguration();
setupUI();
afterLaunchTasks();
}
void MainWindowViewer::afterLaunchTasks()
{
WhatsNewController whatsNewController;
whatsNewController.showWhatsNewIfNeeded(this);
}
MainWindowViewer::~MainWindowViewer()

View File

@ -185,6 +185,7 @@ protected:
void closeEvent(QCloseEvent *event) override;
void sendComic();
void updatePrevNextActions(bool thereIsPrevious, bool thereIsNext);
void afterLaunchTasks();
public:
MainWindowViewer();

View File

@ -66,5 +66,7 @@
<file>../images/shortcuts_group_page.png</file>
<file>../images/shortcuts_group_reading.png</file>
<file>../images/shortcuts_group_visualization.png</file>
<file>../images/custom_dialog/custom_close_button.svg</file>
<file>../images/whats_new/whatsnew_header.svg</file>
</qresource>
</RCC>