File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1+ <RCC>
2+ <qresource prefix="/res">
3+ <file>pic/opentld.png</file>
4+ </qresource>
5+ </RCC>
Original file line number Diff line number Diff line change @@ -42,12 +42,14 @@ if(BUILD_QOPENTLD)
4242 add_definitions (${QT_DEFINITIONS} )
4343
4444 set (QOPENTLD_SOURCES QOpenTLD.cpp qopentld/ConfigDialog.cpp)
45-
4645 set (QOPENTLD_HEADERS qopentld/ConfigDialog.h)
4746 set (QOPENTLD_FORMS qopentld/ConfigDialog.ui)
47+ set (QOPENTLD_RCS ../../res/rcs.qrc)
48+
49+ QT4_ADD_RESOURCES(QOPENTLD_RCS_HEADERS ${QOPENTLD_RCS} )
4850 QT4_WRAP_CPP(QOPENTLD_HEADERS_MOC ${QOPENTLD_HEADERS} )
4951 QT4_WRAP_UI(QOPENTLD_FORMS_HEADERS ${QOPENTLD_FORMS} )
50- set (QOPENTLD_SOURCES ${QOPENTLD_SOURCES} ${QOPENTLD_HEADERS_MOC} ${QOPENTLD_FORMS_HEADERS} )
52+ set (QOPENTLD_SOURCES ${QOPENTLD_SOURCES} ${QOPENTLD_RCS_HEADERS} ${ QOPENTLD_HEADERS_MOC} ${QOPENTLD_FORMS_HEADERS} )
5153
5254 add_executable (qopentld ${QOPENTLD_SOURCES} )
5355 target_link_libraries (qopentld main libopentld cvblobs libconfig ${OpenCV_LIBS} ${QT_LIBRARIES} )
Original file line number Diff line number Diff line change 1313 <property name =" windowTitle" >
1414 <string >QOpenTLD</string >
1515 </property >
16+ <property name =" windowIcon" >
17+ <iconset resource =" ../../../res/rcs.qrc" >
18+ <normaloff >:/res/pic/opentld.png</normaloff >:/res/pic/opentld.png</iconset >
19+ </property >
1620 <property name =" sizeGripEnabled" >
1721 <bool >false</bool >
1822 </property >
639643 <tabstop >buttonBox</tabstop >
640644 <tabstop >lineEdit_modelPath</tabstop >
641645 </tabstops >
642- <resources />
646+ <resources >
647+ <include location =" ../../../res/rcs.qrc" />
648+ </resources >
643649 <connections />
644650</ui >
You can’t perform that action at this time.
0 commit comments