diff options
| author | Gastón Haro <[email protected]> | 2020-06-09 11:03:30 -0600 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2020-06-09 11:05:55 -0600 |
| commit | 0f0d14d4c236eee7f1df4f0c21c60f6b784dab75 (patch) | |
| tree | f8427ac7863efb0e46f77cb961a552d1644d2419 /src/settings/general/previewssettingspage.h | |
| parent | ecc8b18b2a6aa6c45ae2db686cff9a8591c354f0 (diff) | |
Provide ability to configure size cut-off for local file previews
Summary:
FileWidgets read from kdeglobals the property "MaximumSize" under "PreviewSettings" to decide if a preview will be generated for that file.
There is no current GUI to change that file size limit. On the other hand Dolphin ignores it.
This patch aims to fix that by adding new configuration options to Dolphin. That is a new spinbox in Dolphin settings under General -> Previews tab.
Test Plan:
1 - Set up a local folder with 2 jpg images of less and more than 1 MB respectively.
2 - Go to Dolphin Preferences. General -> Previews and check "JPEG Images" from
the list. And set "Skip previews for files above:" to 1MB.
3 - Navigate to the afore mentioned folder. Only the image of size less than 1 MB should
show a preview.
BUG: 331240
Reviewers: ngraham, #dolphin, meven, elvisangelaccio
Reviewed By: ngraham, #dolphin, meven, elvisangelaccio
Subscribers: cfeck, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D28402
Diffstat (limited to 'src/settings/general/previewssettingspage.h')
| -rw-r--r-- | src/settings/general/previewssettingspage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings/general/previewssettingspage.h b/src/settings/general/previewssettingspage.h index 957523710..a7f54f601 100644 --- a/src/settings/general/previewssettingspage.h +++ b/src/settings/general/previewssettingspage.h @@ -61,6 +61,7 @@ private: bool m_initialized; QListView *m_listView; QStringList m_enabledPreviewPlugins; + QSpinBox* m_localFileSizeBox; QSpinBox* m_remoteFileSizeBox; }; |
