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