void DownloadManager::createDownloadFromUrl(const QUrl &url, const QString &filename) { DownloadItem* di = new DownloadItem(url, filename, this); connect(di, SIGNAL(downloadCompleted(const QString&)), this, SIGNAL(downloadCompleted(const QString&))); connect(di, SIGNAL(downloadFailed(const QString&)), this, SIGNAL(downloadFailed(const QString&))); this->_downloads.append(di); di->start(); emit countChanged(); }