mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Download manager now using global networkManager to be able download
content from pages requires http authorization or sites with SSL cert in exceptions
This commit is contained in:
parent
24626ed31f
commit
1ad4942e2f
|
@ -21,6 +21,7 @@
|
|||
#include "downloadoptionsdialog.h"
|
||||
#include "downloaditem.h"
|
||||
#include "ecwin7.h"
|
||||
#include "networkmanager.h"
|
||||
|
||||
DownloadManager::DownloadManager(QWidget* parent) :
|
||||
QWidget(parent)
|
||||
|
@ -35,7 +36,7 @@ DownloadManager::DownloadManager(QWidget* parent) :
|
|||
QWidget::move( (screen.width()-size.width())/2, (screen.height()-size.height())/2 );
|
||||
|
||||
m_iconProvider = new QFileIconProvider();
|
||||
m_networkManager = new QNetworkAccessManager();
|
||||
m_networkManager = mApp->networkManager();
|
||||
|
||||
QSettings settings(mApp->getActiveProfil()+"settings.ini", QSettings::IniFormat);
|
||||
settings.beginGroup("DownloadManager");
|
||||
|
|
|
@ -44,6 +44,7 @@ namespace Ui {
|
|||
|
||||
class DownloadItem;
|
||||
class EcWin7;
|
||||
class NetworkManager;
|
||||
class DownloadManager : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -76,7 +77,7 @@ private:
|
|||
void closeEvent(QCloseEvent* e);
|
||||
|
||||
Ui::DownloadManager* ui;
|
||||
QNetworkAccessManager* m_networkManager;
|
||||
NetworkManager* m_networkManager;
|
||||
QFileIconProvider* m_iconProvider;
|
||||
|
||||
QString m_lastDownloadPath;
|
||||
|
|
Loading…
Reference in New Issue
Block a user