mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Windows: show progress in taskbar
Windows: show progress in taskbar Closes #132 Implemented in ImageWriter class instead of qml for practical reasons. GUI stuff does not really belong there, but there is no easy way to have platform specific stuff in qml, lacking #ifdef
This commit is contained in:
parent
1e73123ca9
commit
1d0087929c
4 changed files with 65 additions and 11 deletions
|
@ -18,6 +18,7 @@
|
|||
class QQmlApplicationEngine;
|
||||
class DownloadThread;
|
||||
class QNetworkReply;
|
||||
class QWinTaskbarButton;
|
||||
|
||||
class ImageWriter : public QObject
|
||||
{
|
||||
|
@ -106,6 +107,8 @@ signals:
|
|||
|
||||
protected slots:
|
||||
|
||||
void startProgressPolling();
|
||||
void stopProgressPolling();
|
||||
void pollProgress();
|
||||
void pollNetwork();
|
||||
void syncTime();
|
||||
|
@ -130,6 +133,9 @@ protected:
|
|||
DownloadThread *_thread;
|
||||
bool _verifyEnabled, _multipleFilesInZip, _cachingEnabled, _embeddedMode, _online;
|
||||
QSettings _settings;
|
||||
#ifdef Q_OS_WIN
|
||||
QWinTaskbarButton *_taskbarButton;
|
||||
#endif
|
||||
|
||||
void _parseCompressedFile();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue