Messagelib

themeconfigbutton.h
1/* SPDX-FileCopyrightText: 2009 James Bendig <james@imptalk.com>
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 "messagelist_export.h"
8#include <QPushButton>
9
10namespace MessageList
11{
12namespace Utils
13{
14class ThemeComboBox;
15class ThemeConfigButtonPrivate;
16
17/**
18 * A specialized QPushButton that displays the theme
19 * configure dialog when pressed.
20 */
21class MESSAGELIST_EXPORT ThemeConfigButton : public QPushButton
22{
23 Q_OBJECT
24
25public:
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
34Q_SIGNALS:
35 /**
36 * A signal emitted when configure dialog has been successfully completed.
37 */
39
40private:
41 std::unique_ptr<ThemeConfigButtonPrivate> const d;
42};
43} // namespace Utils
44} // namespace MessageList
A specialized QComboBox that lists all message list themes.
A specialized QPushButton that displays the theme configure dialog when pressed.
void configureDialogCompleted()
A signal emitted when configure dialog has been successfully completed.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.