This commit is contained in:
Martin Brodbeck 2018-08-07 16:06:01 +02:00
parent 1931a716c4
commit 18c2163318
4 changed files with 10 additions and 1 deletions

View file

@ -50,7 +50,7 @@ set(kima2_SHARE kima2.desktop)
if (WIN32 AND NOT UNIX) if (WIN32 AND NOT UNIX)
set(CPACK_GENERATOR "NSIS;ZIP") set(CPACK_GENERATOR "NSIS;ZIP")
set(CPACK_CREATE_DESKTOP_LINKS "bin/kima2") #set(CPACK_CREATE_DESKTOP_LINKS "bin/kima2")
else(WIN32 AND NOT UNIX) else(WIN32 AND NOT UNIX)
set(CPACK_SOURCE_GENERATOR "TBZ2") set(CPACK_SOURCE_GENERATOR "TBZ2")
set(CPACK_GENERATOR "RPM;DEB") set(CPACK_GENERATOR "RPM;DEB")

5
kima2.qrc Normal file
View file

@ -0,0 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>misc/kima2.ico</file>
</qresource>
</RCC>

View file

@ -5,6 +5,8 @@ set(CMAKE_AUTOMOC ON)
# Create code from a list of Qt designer ui files # Create code from a list of Qt designer ui files
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
# Find the QtWidgets library # Find the QtWidgets library
find_package(Qt5Widgets CONFIG REQUIRED) find_package(Qt5Widgets CONFIG REQUIRED)
find_package(Qt5PrintSupport CONFIG REQUIRED) find_package(Qt5PrintSupport CONFIG REQUIRED)
@ -25,6 +27,7 @@ set(GUI_SOURCES
reportmodel.cpp reportmodel.cpp
settingsdialog.cpp settingsdialog.cpp
settingsdialog.ui settingsdialog.ui
../../kima2.qrc
) )
add_executable(kima2 ${GUI_SOURCES}) add_executable(kima2 ${GUI_SOURCES})

View file

@ -78,6 +78,7 @@ MainWindow::MainWindow()
&MainWindow::onImportSalesJsonActionTriggered); &MainWindow::onImportSalesJsonActionTriggered);
readGeometry(); readGeometry();
setWindowIcon(QIcon(":/misc/kima2.ico"));
} }
void MainWindow::onActionEditSellerTriggered() void MainWindow::onActionEditSellerTriggered()