File indexing completed on 2024-12-15 03:45:02
0001 /* 0002 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef KUSERFEEDBACK_CONSOLE_SCHEMAENTRYITEMEDITORFACTORY_H 0008 #define KUSERFEEDBACK_CONSOLE_SCHEMAENTRYITEMEDITORFACTORY_H 0009 0010 #include <QItemEditorFactory> 0011 0012 #include <memory> 0013 0014 namespace KUserFeedback { 0015 namespace Console { 0016 0017 class AggregationElementModel; 0018 class Product; 0019 0020 class SchemaEntryItemEditorFactory : public QItemEditorFactory 0021 { 0022 public: 0023 SchemaEntryItemEditorFactory(); 0024 ~SchemaEntryItemEditorFactory() override; 0025 0026 void setProduct(const Product &product); 0027 0028 private: 0029 Q_DISABLE_COPY(SchemaEntryItemEditorFactory) 0030 std::unique_ptr<AggregationElementModel> m_elementModel; 0031 }; 0032 0033 0034 } 0035 } 0036 0037 #endif // KUSERFEEDBACK_CONSOLE_SCHEMAENTRYITEMEDITORFACTORY_H