mirror of
https://github.com/YACReader/yacreader
synced 2025-09-06 13:25:03 -04:00
Extract the system tray functionality to its own class
LibraryWindow is already a monster, so we'll try to not make it bigger.
This commit is contained in:
@ -5,7 +5,6 @@
|
||||
#include <QMap>
|
||||
#include <QModelIndex>
|
||||
#include <QFileInfo>
|
||||
#include <QSystemTrayIcon>
|
||||
|
||||
#include "yacreader_global_gui.h"
|
||||
#include "yacreader_libraries.h"
|
||||
@ -77,6 +76,10 @@ class EmptySpecialListWidget;
|
||||
class EmptyReadingListWidget;
|
||||
class YACReaderComicsViewsManager;
|
||||
|
||||
namespace YACReader {
|
||||
class TrayIconController;
|
||||
}
|
||||
|
||||
#include "comic_db.h"
|
||||
|
||||
using namespace YACReader;
|
||||
@ -385,7 +388,7 @@ public slots:
|
||||
void checkMaxNumLibraries();
|
||||
void showErrorUpgradingLibrary(const QString &path);
|
||||
|
||||
void changeEvent(QEvent *event);
|
||||
void closeApp(QCloseEvent *event);
|
||||
|
||||
private:
|
||||
//fullscreen mode in Windows for preventing this bug: QTBUG-41309 https://bugreports.qt.io/browse/QTBUG-41309
|
||||
@ -393,7 +396,8 @@ private:
|
||||
QPoint previousPos;
|
||||
QSize previousSize;
|
||||
std::future<void> upgradeLibraryFuture;
|
||||
QSystemTrayIcon trayIcon;
|
||||
|
||||
TrayIconController *trayIconController;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user