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
10 #include <kiowidgets_export.h>
12 #include "settings/settingspagebase.h"
19 * @brief Allows the configuration of file previews.
21 class PreviewsSettingsPage
: public SettingsPageBase
26 explicit PreviewsSettingsPage(QWidget
*parent
);
27 ~PreviewsSettingsPage() override
;
30 * Applies the general settings for the view modes
31 * The settings are persisted automatically when
34 void applySettings() override
;
36 /** Restores the settings to default values. */
37 void restoreDefaults() override
;
40 void showEvent(QShowEvent
*event
) override
;
43 #if KIOWIDGETS_BUILD_DEPRECATED_SINCE(5, 87)
44 void configureService(const QModelIndex
&index
);
48 void loadPreviewPlugins();
53 QListView
*m_listView
;
54 QStringList m_enabledPreviewPlugins
;
55 QSpinBox
*m_localFileSizeBox
;
56 QSpinBox
*m_remoteFileSizeBox
;