File indexing completed on 2025-03-09 04:54:45

0001 /*
0002   SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "messageviewer_export.h"
0010 #include <QWidget>
0011 
0012 namespace MessageViewer
0013 {
0014 class PrintingSettingsPrivate;
0015 /**
0016  * @brief The PrintingSettings class
0017  * @author Laurent Montel <montel@kde.org>
0018  */
0019 class MESSAGEVIEWER_EXPORT PrintingSettings : public QWidget
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit PrintingSettings(QWidget *parent = nullptr);
0024     ~PrintingSettings() override;
0025 
0026     void save();
0027     void doLoadFromGlobalSettings();
0028     void doResetToDefaultsOther();
0029 
0030 Q_SIGNALS:
0031     void changed();
0032 
0033 private:
0034     std::unique_ptr<PrintingSettingsPrivate> const d;
0035 };
0036 }