Commit 4179dc4a authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Fix branded app image in about dialog.

Prevously, custom apps that used custom splash screen automatically had
the pqAboutDialog use the custom splash screen. This was done by looking
for a specific resource in the pqAboutDialog. This change brings that
functionality back.
parent a4ef92a5
......@@ -200,11 +200,15 @@ FUNCTION(build_paraview_client BPC_NAME)
# If a splash image is specified, put that in a Qt resource file
# and pass the name along to branded_paraview_initializer.cxx.
if(DEFINED BPC_SPLASH_IMAGE)
get_filename_component(splash_image_name "${BPC_SPLASH_IMAGE}" NAME)
set(BPC_SPLASH_RESOURCE ":/${BPC_NAME}/${splash_image_name}")
# We name the splash image as "SplashImage.img". That way, the
# pqAboutDialog and other UI components can automatically pick
# it up.
set(splash_img "${CMAKE_CURRENT_BINARY_DIR}/SplashImage.img")
configure_file("${BPC_SPLASH_IMAGE}" "${splash_img}" COPYONLY)
set(BPC_SPLASH_RESOURCE ":/${BPC_NAME}/SplashImage.img")
# Generate a resource file for the splash image.
set(splash_qrc "${CMAKE_CURRENT_BINARY_DIR}/${BPC_NAME}_splash.qrc")
generate_qt_resource_from_files("${splash_qrc}" "/${BPC_NAME}" ${BPC_SPLASH_IMAGE})
generate_qt_resource_from_files("${splash_qrc}" "/${BPC_NAME}" ${splash_img})
list(APPEND ui_resources "${splash_qrc}")
set(ui_resource_init
"${ui_resource_init} Q_INIT_RESOURCE(${BPC_NAME}_splash);\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment