浏览代码

Create application icon

Kandrashin Denis 13 年之前
父节点
当前提交
9d2e16bbf7
共有 8 个文件被更改,包括 4 次插入2 次删除
  1. 1 1
      CMakeLists.txt
  2. 二进制
      desktop/fb2edit.ico
  3. 二进制
      desktop/fb2edit048.png
  4. 二进制
      desktop/fb2edit128.png
  5. 二进制
      desktop/fb2edit256.png
  6. 1 1
      fb2edit.pro
  7. 1 0
      source/fb2main.cpp
  8. 1 0
      source/res/fb2edit.qrc

+ 1 - 1
CMakeLists.txt

@@ -45,7 +45,7 @@ add_executable(fb2edit ${FB2_SRCS} ${FB2_HEAD} ${MOC_SRCS} ${RCC_SRCS} ${QMS_FIL
 target_link_libraries(fb2edit ${QT_LIBRARIES} ${QSCINTILLA_LIBRARIES} ${LIBXML2_LIBRARIES})
 target_link_libraries(fb2edit ${QT_LIBRARIES} ${QSCINTILLA_LIBRARIES} ${LIBXML2_LIBRARIES})
 
 
 set(LINUX_DESKTOP_FILE desktop/fb2edit.desktop)
 set(LINUX_DESKTOP_FILE desktop/fb2edit.desktop)
-set(LINUX_DESKTOP_ICON desktop/fb2edit48.png)
+set(LINUX_DESKTOP_ICON desktop/fb2edit048.png)
     
     
 #############################################################################
 #############################################################################
 # You can change the install location by 
 # You can change the install location by 

二进制
desktop/fb2edit.ico


二进制
desktop/fb2edit048.png


二进制
desktop/fb2edit128.png


二进制
desktop/fb2edit256.png


+ 1 - 1
fb2edit.pro

@@ -1,6 +1,6 @@
 HEADERS = \
 HEADERS = \
     source/fb2app.h \
     source/fb2app.h \
-    source/fb2code.h
+    source/fb2code.h \
     source/fb2head.h \
     source/fb2head.h \
     source/fb2main.h \
     source/fb2main.h \
     source/fb2read.h \
     source/fb2read.h \

+ 1 - 0
source/fb2main.cpp

@@ -41,6 +41,7 @@ void Fb2MainWindow::init()
     connect(qApp, SIGNAL(logMessage(QString)), SLOT(logMessage(QString)));
     connect(qApp, SIGNAL(logMessage(QString)), SLOT(logMessage(QString)));
 
 
     setAttribute(Qt::WA_DeleteOnClose);
     setAttribute(Qt::WA_DeleteOnClose);
+    setWindowIcon(QIcon(":icon.ico"));
 
 
     isUntitled = true;
     isUntitled = true;
 
 

+ 1 - 0
source/res/fb2edit.qrc

@@ -1,5 +1,6 @@
 <RCC>
 <RCC>
     <qresource prefix="/">
     <qresource prefix="/">
+        <file alias="icon.ico">../../desktop/fb2edit.ico</file>
         <file>16x16/format-text-subscript.png</file>
         <file>16x16/format-text-subscript.png</file>
         <file>16x16/format-text-superscript.png</file>
         <file>16x16/format-text-superscript.png</file>
         <file>24x24/format-text-subscript.png</file>
         <file>24x24/format-text-subscript.png</file>