[Companion] Refactor settings system (CompStoreObj/AppData/etc):
~ All stored properties are fully dynamic, using an extended version of the Qt Property System; ~ CompStoreObj is now QObject subclass; + All properties now have change notifier signals; ~ Do not store default values in settings; + Add _reset() and _default() functions for each property; + Settings import now ignores all non-existent properties automatically; + Add settings export functions; + Add more version macros; ~ Remove template functions; ~ Move DownloadBranchType and create NewModelAction enums and register with Qt meta system; ~ Multiple efficiency and optimization changes (const functions, literals, etc).
This commit is contained in:
@@ -21,10 +21,16 @@ set(storage_SRCS
|
||||
set(storage_HDRS
|
||||
)
|
||||
|
||||
set(storage_MOC_HDRS
|
||||
appdata.h
|
||||
)
|
||||
|
||||
foreach(name ${storage_NAMES})
|
||||
set(storage_SRCS ${storage_SRCS} ${name}.cpp)
|
||||
set(storage_HDRS ${storage_HDRS} ${name}.h)
|
||||
endforeach()
|
||||
|
||||
add_library(storage ${storage_SRCS})
|
||||
qt5_wrap_cpp(storage_SRCS ${storage_MOC_HDRS})
|
||||
|
||||
add_library(storage ${storage_SRCS} ${storage_HDRS})
|
||||
target_link_libraries(storage PRIVATE ${CPN_COMMON_LIB})
|
||||
|
||||
Reference in New Issue
Block a user