File indexing completed on 2025-02-16 04:55:56
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include <QComboBox> 0009 0010 namespace KSieveUi 0011 { 0012 class SelectImportanceCombobox : public QComboBox 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit SelectImportanceCombobox(QWidget *parent = nullptr); 0017 ~SelectImportanceCombobox() override; 0018 0019 [[nodiscard]] QString code() const; 0020 void setCode(const QString &code, const QString &name, QString &error); 0021 0022 Q_SIGNALS: 0023 void valueChanged(); 0024 0025 private: 0026 void initialize(); 0027 }; 0028 }