After porting the picture-items to qt-quick, all that was left of DivePixmapItem was an empty hull. Remove it. The only problem was that the DiveEventItem is not derived from QObject anymore, so we have to explicitly add the translation functions with the Q_DECLARE_TR_FUNCTIONS macro. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
50 lines
1.0 KiB
CMake
50 lines
1.0 KiB
CMake
# the profile widget
|
|
set(SUBSURFACE_PROFILE_LIB_SRCS
|
|
animationfunctions.cpp
|
|
animationfunctions.h
|
|
divecartesianaxis.cpp
|
|
divecartesianaxis.h
|
|
diveeventitem.cpp
|
|
diveeventitem.h
|
|
divelineitem.cpp
|
|
divelineitem.h
|
|
divepixmapcache.cpp
|
|
divepixmapcache.h
|
|
divepercentageitem.cpp
|
|
divepercentageitem.h
|
|
diveprofileitem.cpp
|
|
diveprofileitem.h
|
|
diverectitem.cpp
|
|
diverectitem.h
|
|
divetextitem.cpp
|
|
divetextitem.h
|
|
pictureitem.h
|
|
pictureitem.cpp
|
|
profilescene.cpp
|
|
profilescene.h
|
|
profiletranslations.h
|
|
profileview.cpp
|
|
profileview.h
|
|
tankitem.cpp
|
|
tankitem.h
|
|
tooltipitem.h
|
|
tooltipitem.cpp
|
|
)
|
|
if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
|
|
set(SUBSURFACE_PROFILE_LIB_SRCS
|
|
${SUBSURFACE_PROFILE_LIB_SRCS}
|
|
)
|
|
else ()
|
|
set(SUBSURFACE_PROFILE_LIB_SRCS
|
|
${SUBSURFACE_PROFILE_LIB_SRCS}
|
|
divehandler.cpp
|
|
divehandler.h
|
|
ruleritem.cpp
|
|
ruleritem.h
|
|
)
|
|
endif ()
|
|
source_group("Subsurface Profile" FILES ${SUBSURFACE_PROFILE_LIB_SRCS})
|
|
|
|
add_library(subsurface_profile STATIC ${SUBSURFACE_PROFILE_LIB_SRCS})
|
|
target_link_libraries(subsurface_profile ${QT_LIBRARIES})
|