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{
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{
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
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.
void configureDialogCompleted()
A signal emitted when configure dialog has been successfully completed.
AggregationConfigButton(QWidget *parent, const AggregationComboBox *aggregationComboBox=nullptr)
Constructor.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
QPushButton(QWidget *parent)
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:47:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.