From e0370844700f8a1af3fa6c90e02293c307c78ae1 Mon Sep 17 00:00:00 2001 From: Daniel Brunner <0xFEEDC0DE64@gmail.com> Date: Fri, 5 Oct 2018 12:03:31 +0200 Subject: [PATCH] Renamed BetterItemFactory to EditorFactory --- editorfactory.cpp | 2 +- editorfactory.h | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/editorfactory.cpp b/editorfactory.cpp index 393e746..8967604 100644 --- a/editorfactory.cpp +++ b/editorfactory.cpp @@ -21,7 +21,7 @@ #include "vector4dwidget.h" #include "quaternionwidget.h" -BetterItemFactory::BetterItemFactory() : +EditorFactory::EditorFactory() : QItemEditorFactory() { registerEditor(QVariant::Bool, new QStandardItemEditorCreator()); diff --git a/editorfactory.h b/editorfactory.h index 5072a65..4a041c3 100644 --- a/editorfactory.h +++ b/editorfactory.h @@ -3,8 +3,11 @@ #include #include "dbguilib_global.h" -class DBGUILIB_EXPORT BetterItemFactory : public QItemEditorFactory +// Example usage: +// QItemEditorFactory::setDefaultFactory(new EditorFactory()); + +class DBGUILIB_EXPORT EditorFactory : public QItemEditorFactory { public: - BetterItemFactory(); + EditorFactory(); };