]> cloud.milkyroute.net Git - dolphin.git/blob - src/settings/general/previewssettingspage.h
Remove deprecated ConfigurePreviewPluginDialog
[dolphin.git] / src / settings / general / previewssettingspage.h
1 /*
2 * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz19@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #ifndef PREVIEWSSETTINGSPAGE_H
8 #define PREVIEWSSETTINGSPAGE_H
9
10 #include <kiowidgets_export.h>
11
12 #include "settings/settingspagebase.h"
13
14 class QSpinBox;
15 class QListView;
16 class QModelIndex;
17
18 /**
19 * @brief Allows the configuration of file previews.
20 */
21 class PreviewsSettingsPage : public SettingsPageBase
22 {
23 Q_OBJECT
24
25 public:
26 explicit PreviewsSettingsPage(QWidget *parent);
27 ~PreviewsSettingsPage() override;
28
29 /**
30 * Applies the general settings for the view modes
31 * The settings are persisted automatically when
32 * closing Dolphin.
33 */
34 void applySettings() override;
35
36 /** Restores the settings to default values. */
37 void restoreDefaults() override;
38
39 protected:
40 void showEvent(QShowEvent *event) override;
41
42 private Q_SLOTS:
43
44 private:
45 void loadPreviewPlugins();
46 void loadSettings();
47
48 private:
49 bool m_initialized;
50 QListView *m_listView;
51 QStringList m_enabledPreviewPlugins;
52 QSpinBox *m_localFileSizeBox;
53 QSpinBox *m_remoteFileSizeBox;
54 };
55
56 #endif