File indexing completed on 2024-12-29 04:54:41

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QWidget>
0010 
0011 class QSpinBox;
0012 namespace KSieveUi
0013 {
0014 class SelectSizeTypeComboBox;
0015 class SelectSizeWidget : public QWidget
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit SelectSizeWidget(QWidget *parent = nullptr);
0020     ~SelectSizeWidget() override;
0021 
0022     [[nodiscard]] QString code() const;
0023     void setCode(qlonglong value, const QString &identifier, const QString &name, QString &error);
0024 
0025 Q_SIGNALS:
0026     void valueChanged();
0027 
0028 private:
0029     SelectSizeTypeComboBox *mSelectSizeType = nullptr;
0030     QSpinBox *mSpinBoxSize = nullptr;
0031 };
0032 }