Messagelib

aggregationconfigbutton.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 AggregationComboBox;
15class AggregationConfigButtonPrivate;
16
17/**
18 * A specialized QPushButton that displays the aggregation
19 * configure dialog when pressed.
20 */
21class MESSAGELIST_EXPORT AggregationConfigButton : public QPushButton
22{
23 Q_OBJECT
24
25public:
26 /** Constructor.
27 * @param parent The parent widget for the button.
28 * @param aggregationComboBox Optional AggregationComboBox to be kept in sync
29 * with changes made by the configure dialog.
30 */
31 explicit AggregationConfigButton(QWidget *parent, const AggregationComboBox *aggregationComboBox = nullptr);
32 ~AggregationConfigButton() override;
33
34Q_SIGNALS:
35 /**
36 * A signal emitted when configure dialog has been successfully completed.
37 */
39
40private:
41 std::unique_ptr<AggregationConfigButtonPrivate> const d;
42};
43} // namespace Utils
44} // namespace MessageList
A specialized QComboBox that lists all message list aggregations.
A specialized QPushButton that displays the aggregation 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 Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.