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