Skip to content

Commit

Permalink
ConfigDialog Icon added
Browse files Browse the repository at this point in the history
  • Loading branch information
kornerc committed Aug 31, 2012
1 parent aaaa1e8 commit c3095dd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions res/rcs.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/res">
<file>pic/opentld.png</file>
</qresource>
</RCC>
6 changes: 4 additions & 2 deletions src/opentld/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
8 changes: 7 additions & 1 deletion src/opentld/qopentld/ConfigDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<property name="windowTitle">
<string>QOpenTLD</string>
</property>
<property name="windowIcon">
<iconset resource="../../../res/rcs.qrc">
<normaloff>:/res/pic/opentld.png</normaloff>:/res/pic/opentld.png</iconset>
</property>
<property name="sizeGripEnabled">
<bool>false</bool>
</property>
Expand Down Expand Up @@ -639,6 +643,8 @@
<tabstop>buttonBox</tabstop>
<tabstop>lineEdit_modelPath</tabstop>
</tabstops>
<resources/>
<resources>
<include location="../../../res/rcs.qrc"/>
</resources>
<connections/>
</ui>

0 comments on commit c3095dd

Please sign in to comment.