Messagelib

configurewidget.h
1/*
2 SPDX-FileCopyrightText: 2009 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
3 SPDX-FileCopyrightText: 2009 Andras Mantia <andras@kdab.net>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "messageviewer_export.h"
11
12#include <QWidget>
13
15
16namespace MessageViewer
17{
18class ConfigureWidgetPrivate;
19/**
20 * Configure widget that can be used in a KConfigDialog.
21 *
22 * @author Andras Mantia <andras@kdab.net>
23 */
24class MESSAGEVIEWER_EXPORT ConfigureWidget : public QWidget
25{
26 Q_OBJECT
27public:
28 explicit ConfigureWidget(QWidget *parent = nullptr);
29
30 ~ConfigureWidget() override;
31
32 //
33 // Read and write config settings to the GlobalSettings.
34 // Note that this does not deal with all settings, some of those settings need to saved and read
35 // with a KConfigDialogManager, since this widgets correctly sets the objectname to the pattern
36 // required by KConfigDialogManager.
37 //
38
39 void writeConfig();
40 void readConfig();
41
42Q_SIGNALS:
43
44 /**
45 * Emitted when the user changes the setting in some widget. Useful to enable the "Apply"
46 * button after this has been emitted.
47 */
49
50private:
51 MESSAGEVIEWER_NO_EXPORT void readCurrentOverrideCodec();
52 std::unique_ptr<ConfigureWidgetPrivate> const d;
53};
54}
Configure widget that can be used in a KConfigDialog.
void settingsChanged()
Emitted when the user changes the setting in some widget.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.