Mercurial > minori
diff src/gui/window.cpp @ 62:4c6dd5999b39
*: update
1. updated animia
2. use widestrings for filesystem on Windows
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 06:16:06 -0400 |
parents | b7a1c0010ffd |
children | 3d2decf093bb |
line wrap: on
line diff
--- a/src/gui/window.cpp Fri Sep 29 15:52:31 2023 -0400 +++ b/src/gui/window.cpp Sun Oct 01 06:16:06 2023 -0400 @@ -2,15 +2,15 @@ #include "core/config.h" #include "core/session.h" #include "gui/dark_theme.h" +#include "gui/dialog/about.h" #include "gui/dialog/settings.h" -#include "gui/dialog/about.h" #include "gui/pages/anime_list.h" +#include "gui/pages/history.h" #include "gui/pages/now_playing.h" +#include "gui/pages/search.h" +#include "gui/pages/seasons.h" #include "gui/pages/statistics.h" -#include "gui/pages/seasons.h" -#include "gui/pages/search.h" #include "gui/pages/torrents.h" -#include "gui/pages/history.h" #include "gui/widgets/sidebar.h" #include "services/services.h" #include <QApplication> @@ -19,6 +19,9 @@ #include <QMenuBar> #include <QPlainTextEdit> #include <QStackedWidget> +#include <QTimer> +#include <QActionGroup> +#include <QMessageBox> #include <QTextStream> #if MACOSX # include "sys/osx/dark_theme.h" @@ -79,9 +82,9 @@ menu->addSeparator(); action = menu->addAction(tr("Play &next episode")); - action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_N)); + action->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_N)); action = menu->addAction(tr("Play &random episode")); - action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_R)); + action->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_R)); menu->addSeparator(); @@ -92,7 +95,7 @@ Services::Synchronize(); ((AnimeListWidget*)stack->widget((int)Pages::ANIME_LIST))->Refresh(); }); - action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_S)); + action->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_S)); menu->addSeparator();