mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
W7TASKBAR define
This commit is contained in:
parent
a0d02f5179
commit
66c67551c6
|
@ -45,12 +45,12 @@ DownloadManager::DownloadManager(QWidget *parent) :
|
||||||
|
|
||||||
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clearList()));
|
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clearList()));
|
||||||
|
|
||||||
#ifdef Q_WS_WIN
|
#ifdef W7TASKBAR
|
||||||
win7.init(this->winId());
|
win7.init(this->winId());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Q_WS_WIN
|
#ifdef W7TASKBAR
|
||||||
bool DownloadManager::winEvent(MSG *message, long *result)
|
bool DownloadManager::winEvent(MSG *message, long *result)
|
||||||
{
|
{
|
||||||
return win7.winEvent(message, result);
|
return win7.winEvent(message, result);
|
||||||
|
@ -106,7 +106,7 @@ void DownloadManager::timerEvent(QTimerEvent *event)
|
||||||
DownloadItem::currentSpeedToString(speed),
|
DownloadItem::currentSpeedToString(speed),
|
||||||
DownloadItem::remaingTimeToString(remaining)));
|
DownloadItem::remaingTimeToString(remaining)));
|
||||||
setWindowTitle(QString::number(progress) + tr("% - Download Manager"));
|
setWindowTitle(QString::number(progress) + tr("% - Download Manager"));
|
||||||
#ifdef Q_WS_WIN
|
#ifdef W7TASKBAR
|
||||||
win7.setProgressValue(progress, 100);
|
win7.setProgressValue(progress, 100);
|
||||||
win7.setProgressState(win7.Normal);
|
win7.setProgressState(win7.Normal);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user