4
0
mirror of https://github.com/QuasarApp/ViewSolutions.git synced 2025-05-10 00:19:44 +00:00

added defines for disavble the exapmle project

This commit is contained in:
Andrei Yankovich 2020-10-01 17:50:25 +03:00
parent 2e1cbba442
commit 4612b8f0a6
2 changed files with 8 additions and 3 deletions
CMakeLists.txt
ViewSolutions/src/ViewSolutionsModule

@ -16,5 +16,10 @@ endif()
include(ViewSolutions/CMake/ccache.cmake)
add_subdirectory(ViewSolutions)
add_subdirectory(Examples)
if ( NOT DEFINED DISABLE_EXAMPLES )
message("DISABLE_EXAMPLES = ${DISABLE_EXAMPLES}")
add_subdirectory(Examples)
endif()

@ -12,8 +12,8 @@ ViewPortPage {
Connections {
target: imageSource
onStatusChanged: {
if (imageSource.status === Image.Ready) {
function onStatusChanged(status) {
if (status === Image.Ready) {
bacground.color = colorPicker.pick(source);
}
}