blob: 606b43cba74e71136369753461919c8e57083816 (
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
|
/*
* SPDX-FileCopyrightText: 2006 Peter Penz <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef PREVIEWSSETTINGSPAGE_H
#define PREVIEWSSETTINGSPAGE_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 slots:
void configureService(const QModelIndex& index);
private:
void loadPreviewPlugins();
void loadSettings();
private:
bool m_initialized;
QListView *m_listView;
QStringList m_enabledPreviewPlugins;
QSpinBox* m_localFileSizeBox;
QSpinBox* m_remoteFileSizeBox;
};
#endif
|