2 * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz19@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #ifndef PREVIEWSSETTINGSPAGE_H
8 #define PREVIEWSSETTINGSPAGE_H
11 #include <kiowidgets_export.h>
13 #include "settings/settingspagebase.h"
20 * @brief Allows the configuration of file previews.
22 class PreviewsSettingsPage
: public SettingsPageBase
27 explicit PreviewsSettingsPage(QWidget
* parent
);
28 ~PreviewsSettingsPage() override
;
31 * Applies the general settings for the view modes
32 * The settings are persisted automatically when
35 void applySettings() override
;
37 /** Restores the settings to default values. */
38 void restoreDefaults() override
;
41 void showEvent(QShowEvent
* event
) override
;
44 #if KIOWIDGETS_BUILD_DEPRECATED_SINCE(5, 87)
45 void configureService(const QModelIndex
& index
);
49 void loadPreviewPlugins();
54 QListView
*m_listView
;
55 QStringList m_enabledPreviewPlugins
;
56 QSpinBox
* m_localFileSizeBox
;
57 QSpinBox
* m_remoteFileSizeBox
;