diff --git a/CMakeLists.txt b/CMakeLists.txt index a737ecb..ceb2bbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) # This is to find generated *.moc and *.h file add_library(SortFilterProxyModel OBJECT qqmlsortfilterproxymodel.cpp + qqmlsortfilterproxymodeltypes.cpp filters/filter.cpp filters/filtercontainer.cpp filters/rolefilter.cpp diff --git a/qqmlsortfilterproxymodeltypes.cpp b/qqmlsortfilterproxymodeltypes.cpp new file mode 100644 index 0000000..e03026e --- /dev/null +++ b/qqmlsortfilterproxymodeltypes.cpp @@ -0,0 +1,15 @@ +#include "qqmlsortfilterproxymodeltypes.h" + +namespace qqsfpm { +extern void registerQQmlSortFilterProxyModelTypes(); +extern void registerFiltersTypes(); +extern void registerSorterTypes(); +extern void registerProxyRoleTypes(); +} // namespace qqsfpm + +void qqsfpm::registerTypes() { + registerQQmlSortFilterProxyModelTypes(); + registerFiltersTypes(); + registerSorterTypes(); + registerProxyRoleTypes(); +} diff --git a/qqmlsortfilterproxymodeltypes.h b/qqmlsortfilterproxymodeltypes.h new file mode 100644 index 0000000..b3f64cc --- /dev/null +++ b/qqmlsortfilterproxymodeltypes.h @@ -0,0 +1,5 @@ +#pragma once + +namespace qqsfpm { +void registerTypes(); +}