File indexing completed on 2024-12-22 05:01:02

0001 /*   -*- c++ -*-
0002  *   kmail: KDE mail client
0003  *   SPDX-FileCopyrightText: 2000 Espen Sand <espen@kde.org>
0004  *   SPDX-FileCopyrightText: 2001-2002 Marc Mutz <mutz@kde.org>
0005  *
0006  *   SPDX-License-Identifier: GPL-2.0-or-later
0007  *
0008  */
0009 
0010 #pragma once
0011 
0012 #include <KCMultiDialog>
0013 
0014 #include <QHideEvent>
0015 
0016 class ConfigureDialog : public KCMultiDialog
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit ConfigureDialog(QWidget *parent = nullptr, bool modal = true);
0022     ~ConfigureDialog() override;
0023 
0024 Q_SIGNALS:
0025     void configChanged();
0026 
0027 protected:
0028     void hideEvent(QHideEvent *i) override;
0029 
0030     QSize sizeHint() const override;
0031 protected Q_SLOTS:
0032     /** @b reimplemented
0033      * Saves the GlobalSettings stuff before passing on to KCMultiDialog.
0034      */
0035     void slotApply();
0036 
0037     /** @b reimplemented
0038      * Saves the GlobalSettings stuff before passing on to KCMultiDialog.
0039      */
0040     void slotOk();
0041 };