mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
SVN_SILENT: added comment related to fix of bug 154854
svn path=/trunk/KDE/kdebase/apps/; revision=757803
This commit is contained in:
parent
e3ed05b372
commit
2dc07b8a7f
1 changed files with 3 additions and 0 deletions
|
@ -154,6 +154,9 @@ void GeneralViewSettingsPage::loadSettings()
|
||||||
m_maxPreviewSize->setTickPosition(QSlider::TicksBelow);
|
m_maxPreviewSize->setTickPosition(QSlider::TicksBelow);
|
||||||
|
|
||||||
KConfigGroup globalConfig(KGlobal::config(), "PreviewSettings");
|
KConfigGroup globalConfig(KGlobal::config(), "PreviewSettings");
|
||||||
|
// TODO: The default value of 5 MB must match with the default value inside
|
||||||
|
// kdelibs/kio/kio/previewjob.cpp. Maybe a static getter method in PreviewJob
|
||||||
|
// should be added for getting the default size?
|
||||||
const int maxByteSize = globalConfig.readEntry("MaximumSize", 5 * 1024 * 1024 /* 5 MB */);
|
const int maxByteSize = globalConfig.readEntry("MaximumSize", 5 * 1024 * 1024 /* 5 MB */);
|
||||||
int maxMByteSize = maxByteSize / (1024 * 1024);
|
int maxMByteSize = maxByteSize / (1024 * 1024);
|
||||||
if (maxMByteSize < 1) {
|
if (maxMByteSize < 1) {
|
||||||
|
|
Loading…
Reference in a new issue