|
|
|
@ -148,6 +148,10 @@ class Browser: public QMainWindow, protected Ui::Browser { |
|
|
|
|
} |
|
|
|
|
_editbookmarks = |
|
|
|
|
std::auto_ptr<EditBookmarks>(new EditBookmarks(combo, this)); |
|
|
|
|
assert(connect(_editbookmarks.get(), SIGNAL(startEdit()), |
|
|
|
|
actionAddBookmark, SLOT(setDisabled()))); |
|
|
|
|
assert(connect(_editbookmarks.get(), SIGNAL(endEdit()), |
|
|
|
|
actionAddBookmark, SLOT(setEnabled()))); |
|
|
|
|
} else { |
|
|
|
|
QLineEdit* label(new QLineEdit(_toolbar)); |
|
|
|
|
_url = label; |
|
|
|
@ -184,16 +188,16 @@ class Browser: public QMainWindow, protected Ui::Browser { |
|
|
|
|
assert(connect(&_networkManager, SIGNAL(finished(QNetworkReply*)), |
|
|
|
|
SLOT(finished(QNetworkReply*)))); |
|
|
|
|
assert(connect(&_networkManager, SIGNAL(created(QNetworkReply*)), |
|
|
|
|
_downloadManager.get(), SLOT(add(QNetworkReply*)))); |
|
|
|
|
assert(connect(_downloadManager.get(), SIGNAL(progress(qint64, qint64)), |
|
|
|
|
_downloadManager.data(), SLOT(add(QNetworkReply*)))); |
|
|
|
|
assert(connect(_downloadManager.data(), SIGNAL(progress(qint64, qint64)), |
|
|
|
|
SLOT(progress(qint64, qint64)))); |
|
|
|
|
assert(connect(_downloadManager.get(), SIGNAL(started()), |
|
|
|
|
assert(connect(_downloadManager.data(), SIGNAL(started()), |
|
|
|
|
SLOT(started()))); |
|
|
|
|
assert(connect(_downloadManager.get(), SIGNAL(finished()), |
|
|
|
|
assert(connect(_downloadManager.data(), SIGNAL(finished()), |
|
|
|
|
SLOT(finished()))); |
|
|
|
|
assert(connect(_downloadManager.get(), SIGNAL(error(QString)), |
|
|
|
|
assert(connect(_downloadManager.data(), SIGNAL(error(QString)), |
|
|
|
|
SLOT(downloadError(QString)))); |
|
|
|
|
assert(connect(_downloadManager.get(), SIGNAL(metaDataChanged(QNetworkReply*)), |
|
|
|
|
assert(connect(_downloadManager.data(), SIGNAL(metaDataChanged(QNetworkReply*)), |
|
|
|
|
SLOT(metaDataChanged(QNetworkReply*)))); |
|
|
|
|
assert(connect(&_settings, SIGNAL(newSettings()), SLOT(newSettings()))); |
|
|
|
|
newSettings(); |
|
|
|
@ -1532,7 +1536,7 @@ class Browser: public QMainWindow, protected Ui::Browser { |
|
|
|
|
bool _kiosk; |
|
|
|
|
QPrinter _printer; |
|
|
|
|
SslClientAuthNetworkAccessManager _networkManager; |
|
|
|
|
std::shared_ptr<DownloadManager> _downloadManager; |
|
|
|
|
QSharedPointer<DownloadManager> _downloadManager; |
|
|
|
|
typedef std::map<QProcess*, TemporaryFile*> DownloadProcesses; |
|
|
|
|
DownloadProcesses _downloadProcesses; |
|
|
|
|
Settings _settings; |
|
|
|
|