Skip to content

Commit c3095dd

Browse files
committed
ConfigDialog Icon added
1 parent aaaa1e8 commit c3095dd

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

res/rcs.qrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<RCC>
2+
<qresource prefix="/res">
3+
<file>pic/opentld.png</file>
4+
</qresource>
5+
</RCC>

src/opentld/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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})

src/opentld/qopentld/ConfigDialog.ui

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
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>
@@ -639,6 +643,8 @@
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>

0 commit comments

Comments
 (0)