Messagelib

configurewidget.h
1 /*
2  SPDX-FileCopyrightText: 2009 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected]
3  SPDX-FileCopyrightText: 2009 Andras Mantia <[email protected]>
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 
16 namespace MessageViewer
17 {
18 class ConfigureWidgetPrivate;
19 /**
20  * Configure widget that can be used in a KConfigDialog.
21  *
22  * @author Andras Mantia <[email protected]>
23  */
24 class MESSAGEVIEWER_EXPORT ConfigureWidget : public QWidget
25 {
26  Q_OBJECT
27 public:
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 
42 Q_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  */
48  void settingsChanged();
49 
50 private:
51  void readCurrentOverrideCodec();
52  std::unique_ptr<ConfigureWidgetPrivate> const d;
53 };
54 }
Configure widget that can be used in a KConfigDialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.