chore: add qqsfpm::registerTypes()
Under some circumstances, auto-registration doesn't work, call this function to ensure types are registered.
This commit is contained in:
parent
63e64c0a93
commit
6a471f1bef
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
namespace qqsfpm {
|
||||
void registerTypes();
|
||||
}
|
Loading…
Reference in New Issue