Browse Source

...

allow_new_sellers
Martin Brodbeck 3 years ago
parent
commit
18c2163318
  1. 2
      CMakeLists.txt
  2. 5
      kima2.qrc
  3. 3
      src/gui/CMakeLists.txt
  4. 1
      src/gui/mainwindow.cpp

2
CMakeLists.txt

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

5
kima2.qrc

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

3
src/gui/CMakeLists.txt

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

1
src/gui/mainwindow.cpp

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

Loading…
Cancel
Save