diff options
author | Darafei Praliaskouski <komzpa@gmail.com> | 2013-02-22 11:44:07 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:51:24 +0300 |
commit | e18fe9f4cc6531cee399377b044862128f9db174 (patch) | |
tree | 7a2772ec12a96e4333d44d7613ad16976ea40e65 /qt | |
parent | e3397bbc36245bf446d06c41772df3ad8966906c (diff) |
linux deployment
Diffstat (limited to 'qt')
-rw-r--r-- | qt/qt.pro | 45 | ||||
-rw-r--r-- | qt/res/MapsWithMe.desktop | 13 | ||||
-rw-r--r-- | qt/res/icons/128/MapsWithMe.png | bin | 0 -> 17651 bytes | |||
-rw-r--r-- | qt/update_dialog.cpp | 5 |
4 files changed, 61 insertions, 2 deletions
@@ -21,6 +21,51 @@ win32*|linux* { QT *= network } +linux* { + DEFINES += NO_DOWNLOADER + isEmpty(PREFIX):PREFIX = /usr + BINDIR = $$PREFIX/bin + DATADIR = $$PREFIX/share + RESDIR = $$DATADIR/$${TARGET} + + target.path = $$BINDIR + desktop.path = $$DATADIR/applications/ + desktop.files += res/$${TARGET}.desktop + pixmaps.path = $$DATADIR/pixmaps/ + pixmaps.files += res/icons/128/$${TARGET}.png + icon128.path = $$DATADIR/icons/hicolor/128x128/apps/ + icon128.files += res/icons/128/$${TARGET}.png + OTHER_RES.path = $$RESDIR + OTHER_RES.files = ../data/about.html ../data/eula.html ../data/welcome.html \ + ../data/countries.txt \ + ../data/languages.txt ../data/categories.txt \ + ../data/packed_polygons.bin + CLASSIFICATOR_RES.path = $$RESDIR + CLASSIFICATOR_RES.files = ../data/classificator.txt \ + ../data/types.txt + CONFIG(production) { + CLASSIFICATOR_RES.files += ../data/drules_proto.bin + } else { + CLASSIFICATOR_RES.files += ../data/drules_proto.txt + } + SKIN_RES.path = $$RESDIR/resources-mdpi + SKIN_RES.files = ../data/resources-mdpi/basic.skn ../data/resources-mdpi/symbols.png + FONT_RES.path = $$RESDIR + FONT_RES.files = ../data/01_dejavusans.ttf \ + ../data/02_wqy-microhei.ttf \ + ../data/03_jomolhari-id-a3d.ttf \ + ../data/04_padauk.ttf \ + ../data/05_khmeros.ttf \ + ../data/06_code2000.ttf \ + ../data/fonts_blacklist.txt \ + ../data/fonts_whitelist.txt \ + ../data/unicode_blocks.txt + MWM_RES.path = $$RESDIR + MWM_RES.files = ../data/World.mwm ../data/WorldCoasts.mwm + + INSTALLS += target desktop pixmaps icon128 OTHER_RES CLASSIFICATOR_RES SKIN_RES FONT_RES MWM_RES +} + macx* { LIBS *= "-framework CoreLocation" "-framework Foundation" "-framework CoreWLAN" \ "-framework QuartzCore" "-framework IOKit" diff --git a/qt/res/MapsWithMe.desktop b/qt/res/MapsWithMe.desktop new file mode 100644 index 0000000000..0cbbbab3e5 --- /dev/null +++ b/qt/res/MapsWithMe.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Application +Name=MapsWithMe +Version=1.0 +GenericName=Detailed Offline Maps of the World +GenericName[ru]=Подробная оффлайновая карта мира +Icon=MapsWithMe +TryExec=/usr/bin/MapsWithMe +Exec=/usr/bin/MapsWithMe +Terminal=false +StartupNotify=false +Categories=Qt;Education;Science;Geography;Geoscience +Keywords=Maps;Offline Maps;Minsk;London;Briefcase;Case;MapsWithMe;OSM;OpenStreetMap;Map diff --git a/qt/res/icons/128/MapsWithMe.png b/qt/res/icons/128/MapsWithMe.png Binary files differnew file mode 100644 index 0000000000..6dd5e09a61 --- /dev/null +++ b/qt/res/icons/128/MapsWithMe.png diff --git a/qt/update_dialog.cpp b/qt/update_dialog.cpp index 4460f7f2e7..e2eb71c634 100644 --- a/qt/update_dialog.cpp +++ b/qt/update_dialog.cpp @@ -292,8 +292,9 @@ namespace qt item->setData(KColumnIndexSize, Qt::UserRole, QVariant(qint64(size.second))); } - if (!statusString.isEmpty()) - SetRowColor(*item, rowColor); + // commented out because it looks terrible on black backgrounds + // if (!statusString.isEmpty()) + // SetRowColor(*item, rowColor); } } |