diff --git a/res/rcs.qrc b/res/rcs.qrc new file mode 100644 index 00000000..38272aaa --- /dev/null +++ b/res/rcs.qrc @@ -0,0 +1,5 @@ + + + pic/opentld.png + + diff --git a/src/opentld/CMakeLists.txt b/src/opentld/CMakeLists.txt index baf92f53..afd0d322 100644 --- a/src/opentld/CMakeLists.txt +++ b/src/opentld/CMakeLists.txt @@ -42,12 +42,14 @@ if(BUILD_QOPENTLD) add_definitions(${QT_DEFINITIONS}) set(QOPENTLD_SOURCES QOpenTLD.cpp qopentld/ConfigDialog.cpp) - set(QOPENTLD_HEADERS qopentld/ConfigDialog.h) set(QOPENTLD_FORMS qopentld/ConfigDialog.ui) + set(QOPENTLD_RCS ../../res/rcs.qrc) + + QT4_ADD_RESOURCES(QOPENTLD_RCS_HEADERS ${QOPENTLD_RCS}) QT4_WRAP_CPP(QOPENTLD_HEADERS_MOC ${QOPENTLD_HEADERS}) QT4_WRAP_UI(QOPENTLD_FORMS_HEADERS ${QOPENTLD_FORMS}) - set(QOPENTLD_SOURCES ${QOPENTLD_SOURCES} ${QOPENTLD_HEADERS_MOC} ${QOPENTLD_FORMS_HEADERS}) + set(QOPENTLD_SOURCES ${QOPENTLD_SOURCES} ${QOPENTLD_RCS_HEADERS} ${QOPENTLD_HEADERS_MOC} ${QOPENTLD_FORMS_HEADERS}) add_executable(qopentld ${QOPENTLD_SOURCES}) target_link_libraries(qopentld main libopentld cvblobs libconfig ${OpenCV_LIBS} ${QT_LIBRARIES}) diff --git a/src/opentld/qopentld/ConfigDialog.ui b/src/opentld/qopentld/ConfigDialog.ui index 057dc6d5..d0a10e6d 100644 --- a/src/opentld/qopentld/ConfigDialog.ui +++ b/src/opentld/qopentld/ConfigDialog.ui @@ -13,6 +13,10 @@ QOpenTLD + + + :/res/pic/opentld.png:/res/pic/opentld.png + false @@ -639,6 +643,8 @@ buttonBox lineEdit_modelPath - + + +