|
|
|
|
@ -57,6 +57,7 @@ |
|
|
|
|
#include <QCloseEvent> |
|
|
|
|
#include <QColorDialog> |
|
|
|
|
#include <QDesktopWidget> |
|
|
|
|
#include <QNetworkDiskCache> |
|
|
|
|
|
|
|
|
|
static QString createLanguageItem(const QString &lang) |
|
|
|
|
{ |
|
|
|
|
@ -301,8 +302,7 @@ Preferences::Preferences(BrowserWindow* window, QWidget* parent) |
|
|
|
|
ui->allowCache->setChecked(settings.value("AllowLocalCache", true).toBool()); |
|
|
|
|
ui->cacheMB->setValue(settings.value("LocalCacheSize", 50).toInt()); |
|
|
|
|
ui->MBlabel->setText(settings.value("LocalCacheSize", 50).toString() + " MB"); |
|
|
|
|
// FIXME: !!!
|
|
|
|
|
ui->cachePath->setText(settings.value("CachePath", QString("%1networkcache/").arg(DataPaths::currentProfilePath())).toString()); |
|
|
|
|
ui->cachePath->setText(settings.value("CachePath", mApp->networkCache()->cacheDirectory()).toString()); |
|
|
|
|
connect(ui->allowCache, SIGNAL(clicked(bool)), this, SLOT(allowCacheChanged(bool))); |
|
|
|
|
connect(ui->cacheMB, SIGNAL(valueChanged(int)), this, SLOT(cacheValueChanged(int))); |
|
|
|
|
connect(ui->changeCachePath, SIGNAL(clicked()), this, SLOT(changeCachePathClicked())); |
|
|
|
|
|