Messagelib

themeconfigbutton.h
1 /* SPDX-FileCopyrightText: 2009 James Bendig <[email protected]>
2 
3  SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
4 */
5 #pragma once
6 
7 #include <QPushButton>
8 #include <messagelist_export.h>
9 
10 namespace MessageList
11 {
12 namespace Utils
13 {
14 class ThemeComboBox;
15 class ThemeConfigButtonPrivate;
16 
17 /**
18  * A specialized QPushButton that displays the theme
19  * configure dialog when pressed.
20  */
21 class MESSAGELIST_EXPORT ThemeConfigButton : public QPushButton
22 {
23  Q_OBJECT
24 
25 public:
26  /** Constructor.
27  * @param parent The parent widget for the button.
28  * @param themeComboBox Optional ThemeComboBox to be kept in sync
29  * with changes made by the configure dialog.
30  */
31  explicit ThemeConfigButton(QWidget *parent, const ThemeComboBox *themeComboBox = nullptr);
32  ~ThemeConfigButton() override;
33 
34 Q_SIGNALS:
35  /**
36  * A signal emitted when configure dialog has been successfully completed.
37  */
38  void configureDialogCompleted();
39 
40 private:
41  std::unique_ptr<ThemeConfigButtonPrivate> const d;
42 };
43 } // namespace Utils
44 } // namespace MessageList
45 
A specialized QPushButton that displays the theme configure dialog when pressed.
A specialized QComboBox that lists all message list themes.
Definition: themecombobox.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.