File indexing completed on 2024-12-15 03:45:03
0001 /* 0002 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef KUSERFEEDBACK_CONSOLE_METAENUMCOMBOBOX_H 0008 #define KUSERFEEDBACK_CONSOLE_METAENUMCOMBOBOX_H 0009 0010 #include <QComboBox> 0011 0012 namespace KUserFeedback { 0013 namespace Console { 0014 0015 class MetaEnumComboBox : public QComboBox 0016 { 0017 Q_OBJECT 0018 Q_PROPERTY(QVariant value READ value WRITE setValue USER true) 0019 public: 0020 explicit MetaEnumComboBox(QWidget *parent = nullptr); 0021 ~MetaEnumComboBox() override; 0022 0023 QVariant value() const; 0024 void setValue(const QVariant &value); 0025 0026 private: 0027 QVariant m_value; 0028 }; 0029 0030 } 0031 } 0032 0033 #endif // KUSERFEEDBACK_CONSOLE_METAENUMCOMBOBOX_H