File indexing completed on 2024-05-12 05:17:28
0001 /* 0002 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef METAENUMCOMBOBOX_H 0007 #define METAENUMCOMBOBOX_H 0008 0009 #include <QComboBox> 0010 0011 class MetaEnumComboBox : public QComboBox 0012 { 0013 Q_OBJECT 0014 Q_PROPERTY(QVariant value READ value WRITE setValue USER true) 0015 public: 0016 explicit MetaEnumComboBox(QWidget *parent = nullptr); 0017 ~MetaEnumComboBox() override; 0018 0019 QVariant value() const; 0020 void setValue(const QVariant &value); 0021 0022 private: 0023 QVariant m_value; 0024 }; 0025 0026 #endif // METAENUMCOMBOBOX_H