mirror of
https://github.com/YACReader/yacreader
synced 2025-08-15 02:34:59 -04:00
YACReader
YACReaderLibrary
YACReaderLibraryServer
ci
common
compressed_archive
custom_widgets
custom_widgets_yacreader.pri
custom_widgets_yacreaderlibrary.pri
help_about_dialog.cpp
help_about_dialog.h
rounded_corners_dialog.cpp
rounded_corners_dialog.h
whats_new_controller.cpp
whats_new_controller.h
whats_new_dialog.cpp
whats_new_dialog.h
yacreader_busy_widget.cpp
yacreader_busy_widget.h
yacreader_dark_menu.cpp
yacreader_dark_menu.h
yacreader_deleting_progress.cpp
yacreader_deleting_progress.h
yacreader_field_edit.cpp
yacreader_field_edit.h
yacreader_field_plain_text_edit.cpp
yacreader_field_plain_text_edit.h
yacreader_flow.cpp
yacreader_flow.h
yacreader_flow_config_widget.cpp
yacreader_flow_config_widget.h
yacreader_gl_flow_config_widget.cpp
yacreader_gl_flow_config_widget.h
yacreader_library_item_widget.cpp
yacreader_library_item_widget.h
yacreader_library_list_widget.cpp
yacreader_library_list_widget.h
yacreader_macosx_toolbar.h
yacreader_macosx_toolbar.mm
yacreader_options_dialog.cpp
yacreader_options_dialog.h
yacreader_search_line_edit.cpp
yacreader_search_line_edit.h
yacreader_sidebar.cpp
yacreader_sidebar.h
yacreader_social_dialog.cpp
yacreader_social_dialog.h
yacreader_spin_slider_widget.cpp
yacreader_spin_slider_widget.h
yacreader_table_view.cpp
yacreader_table_view.h
yacreader_titled_toolbar.cpp
yacreader_titled_toolbar.h
yacreader_tool_bar_stretch.cpp
yacreader_tool_bar_stretch.h
yacreader_treeview.cpp
yacreader_treeview.h
dependencies
files
images
release
shortcuts_management
tests
third_party
.clang-format
.editorconfig
.gitattributes
.gitignore
CHANGELOG.md
COPYING.txt
INSTALL.md
README.md
YACReader.1
YACReader.desktop
YACReader.pro
YACReader.svg
YACReaderLibrary.1
YACReaderLibrary.desktop
YACReaderLibrary.svg
azure-pipelines-build-number.yml
azure-pipelines-windows-template-qt6.yml
azure-pipelines-windows-template.yml
azure-pipelines.yml
background.png
background@2x.png
cleanOSX.sh
compileOSX.sh
config.pri
dmg.json
icon.icns
mktarball.sh
signapps.sh
30 lines
927 B
C++
30 lines
927 B
C++
#include "whats_new_controller.h"
|
|
|
|
#include "whats_new_dialog.h"
|
|
#include "yacreader_global.h"
|
|
|
|
#include <QtCore>
|
|
|
|
YACReader::WhatsNewController::WhatsNewController() { }
|
|
|
|
void YACReader::WhatsNewController::showWhatsNewIfNeeded(QWidget *fromParent)
|
|
{
|
|
QSettings commonSettings(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) +
|
|
"/YACReader/YACReaderCommon.ini",
|
|
QSettings::IniFormat);
|
|
|
|
if (commonSettings.value("LAST_VERSION_INSTALLED").toString() != VERSION) {
|
|
showWhatsNew(fromParent);
|
|
commonSettings.setValue("LAST_VERSION_INSTALLED", VERSION);
|
|
}
|
|
}
|
|
|
|
void YACReader::WhatsNewController::showWhatsNew(QWidget *fromParent)
|
|
{
|
|
auto whatsNewDialog = new WhatsNewDialog(fromParent);
|
|
|
|
whatsNewDialog->show();
|
|
|
|
QObject::connect(whatsNewDialog, &QDialog::finished, whatsNewDialog, &QDialog::deleteLater);
|
|
}
|