mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
The tissue percentages were realized as 16 independent polygons. That didn't work at all with the new absolute scaling. Reimplement the item and blast it onto a pixmap. Not only is this artifact-free, it also should (hopefully) be quite a bit more efficient than painting numerous lines. In contrast to the old code, this does access the plot_info structure directly instead of using the model. Not so much for performance reason, but rather to make things more robust: We have a strongly typed language. Why would we shoehorn data through the weakly typed QVariant and mess with wierd index-arithmetics. Makes no sense to me. Qt-model have to be used for interfacing with Qt. They are terrible for intra-application data transfer. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
48 lines
1 KiB
CMake
48 lines
1 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
|
|
divepixmapitem.cpp
|
|
divepixmapitem.h
|
|
divepercentageitem.cpp
|
|
divepercentageitem.h
|
|
diveprofileitem.cpp
|
|
diveprofileitem.h
|
|
diverectitem.cpp
|
|
diverectitem.h
|
|
divetextitem.cpp
|
|
divetextitem.h
|
|
divetooltipitem.cpp
|
|
divetooltipitem.h
|
|
profilescene.cpp
|
|
profilescene.h
|
|
tankitem.cpp
|
|
tankitem.h
|
|
)
|
|
if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
|
|
set(SUBSURFACE_PROFILE_LIB_SRCS
|
|
${SUBSURFACE_PROFILE_LIB_SRCS}
|
|
qmlprofile.cpp
|
|
qmlprofile.h
|
|
)
|
|
else ()
|
|
set(SUBSURFACE_PROFILE_LIB_SRCS
|
|
${SUBSURFACE_PROFILE_LIB_SRCS}
|
|
divehandler.cpp
|
|
divehandler.h
|
|
profilewidget2.cpp
|
|
profilewidget2.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})
|