Cutelee  6.1.0
Porting from Qt4-based Cutelee

Several porting steps are necessary when porting code from Cutelee 0.5 to Cutelee 5.0 and later.

Buildsystem changes

cutelee_add_plugin Removed

The cutelee_add_plugin CMake macro has been removed. Users should now use the CMake command add_library(MODULE), link to the Cutelee Templates library, and use the cutelee_adjust_plugin_name macro with the created target.

Cutelee_USE_FILE removed

The Cutelee_USE_FILE is obsolete and has been removed. Users should remove code such as

include(${Cutelee_USE_FILE})

from their buildsystems.

Use IMPORTED targets

The CMake packages shipped with Cutelee contain IMPORTED targets which should be used with the target_link_libraries command. Variables such as Cutelee_TEMPLATES_LIBRARIES are no longer provided.

Idiomatic use of Cutelee in the buildsystem is now similar to:

find_package(Cutelee REQUIRED)

add_executable(main main.cpp)
target_link_libraries(main
  Cutelee::Templates
)

For Cutelee 6.0 specify the version on the find_package command:

find_package(Cutelee 6.0 REQUIRED)

C++ porting

CUTELEE_METATYPE_INITIALIZE macro removed

User code should simply remove the use of the macro.

Cutelee::Node::render method is now const

The virtual method render on Cutelee::Node is now const. User code which creates custom plugins and overrides the render method must be updated to add the const too.

LocalizedFileSystemTemplateLoader merged into FileSystemTemplateLoader

Users of LocalizedFileSystemTemplateLoader can now use FileSystemTemplateLoader instead.

std::shared_ptr typedefs named "Ptr" have been removed.

Replace uses of FileSystemTemplateLoader::Ptr with std::shared_ptr<FileSystemTemplateLoader> for example.