summaryrefslogtreecommitdiff
path: root/navit/graphics/qt5
Commit message (Collapse)AuthorAgeFilesLines
* fix:graphics/qt5: Allow to draw transparent polygons (#878)Stefan Wildemann2019-09-201-23/+5
| | | | There is a "misconception" in qt5 graphics about how to draw transparent stuff causing transparent items on the map to not correctly work. This PR changes qt5 graphics to force-clear overlays on starting to draw them instead of force clearing the shape of a transparent item. While this imposes the limitation that the content of an overlay cannot be drawn in multiple runs, it allows to draw transparent stuff on the map. Luckily I don't know of any overlay item yet that is not drawn in one run. So this seems to work OK.
* implement drawing of polygons with holes for qt5Stefan Wildemann2019-07-281-1/+40
|
* add:graphics:dpi scaling support (#813)Stefan Wildemann2019-07-281-3/+25
| | | | | This commit adds calculating a scaling factor out of the virtual_dpi assumed when the layout was created, and the real_dpi value of the hardware. It is activated if "virtual_dpi" tag is set into the "graphics" tag on navit.xml. Currently only qt5 graphics implment returning the hardware dpi. But this can be simulated and overwritten by setting "real_dpi" tag to "graphics" tag on navit.xm on all available graphics.l
* fix:graphics:qt5: Remove unnecessary moc includes. (#798)Stefan Wildemann2019-06-182-2/+2
| | | | | | | | | | | | | | | | * Remove unnecessary moc includes. This commit removes moc file includes for some classes which do not define new qt classes. This caused a long standing warning which seems to be treated as error on some setups. * Make (in)sanity check happy. Here you got your bloody spaces. Uber picky, isn't it? * Remove QAudio::interruptedState again Sailfish version of QT doesn't feature this yet.
* Fix:graphics_qt5:redraw after overlay actionqt5_osd_layer_fixWildemann Stefan2019-01-291-0/+20
|
* Fix:graphics_qt5:reorder class members to workaround astyleWildemann Stefan2019-01-291-2/+3
|
* Fix:graphics_qt5:Correctly disable single overlay.Wildemann Stefan2019-01-293-145/+145
| | | | Only disable "all" overlays, if root pane got disabled.
* Fix:graphics_qt5: stlye with astyle to comply with styleWildemann Stefan2019-01-298-161/+157
| | | | | | Use astyle --indent=spaces=4 --style=attach -n --max-code-length=120 -xf -xh to obey styling rules. Btw. a big hurdle for newbies to just fix !one line" if one needs to restyle a whole module for ci...
* Fix:graphics_qt5:Dont't clear windows on fake resizeStefan Wildemann2019-01-292-8/+13
| | | | | Sometimes it happeenes that resize is called, but the new size equals the old one. This change keeps the contents intact if that happens.
* Fix:graphics_qt5:Dont't clear overlays on moveStefan Wildemann2019-01-281-6/+13
| | | | | | This commit keeps the internal pixmap of an overlay intact if resize is called for the overlay, but the actual size was not changed. This keeps icons and so on intact as they are not repainted after resize.
* Cleanup:global:force the re-attach the return type to the function ↵Joseph Herlant2018-05-302-70/+34
| | | | | | | | declaration (#605) * Cleanup:global:force the re-attach the return type to the function declaration * cleanup:global:some loose ends
* cleanup:cmake:retab all CMakeLists.txt filesJoseph Herlant2018-05-251-6/+6
|
* cleanup:cmake:remove trailing spacesJoseph Herlant2018-05-251-1/+1
|
* cleanup:global:Use astyle to reformat everythingJoseph Herlant2018-05-254-181/+136
|
* Fix:debug:Change line separators for dbg to work also on win* platform (#546)Joseph Herlant2018-04-264-90/+90
| | | | | | | | * Fix:debug:Change line separators for dbg to work also on win* platform * Fix:debug:Break multiline dbg statements to use the new model * Fix:debug:Move the EOL into debug_vprintf
* add:graphics-qt5:add missing watchEvent slot (#387)Pierre GRANDIN2017-12-262-0/+14
| | | | | | * Fix:add missing watchEvent slot implementation * Fix:add missing watchEvent slot implementation
* fix: graphics_qt5 fix layer drawing and draggingR7618Stefan Wildemann2017-06-132-12/+35
| | | | Now cursor is drawn right with qml and qwidgets
* Correctly implement draw_drag on graphics_qt5R7612Stefan Wildemann2017-06-064-18/+38
|
* Fix: Make rotating compatible to Qt 5.2 (#256)R7604Stefan Wildemann2017-06-041-2/+7
| | | | | | Welcome to Qt5 compatibility hell. Seems like the Screen.orientationUpdateMask property is only valid from Qt5.4 and beyond. To make this compatible down to Qt5.2, i introduce a QML JavaScript workaround/hack.
* graphics_qt5 QML: Add screen rotation support (#255)R7550Stefan Wildemann2017-05-151-9/+28
| | | | | Now the QML qt5 graphics happily rotates according to screen orientation. At least on Sailfish. Should do on other QML hardware as well. Hard to test, as PC's usually don't have screen rotation support.
* Remove Qt5 fonts dependency on Freetype (#253)R7542Stefan Wildemann2017-05-133-36/+143
| | | | | | | | | | | | | | | | | | | | * Fix: Have nice font shadow as freetype has If using QT font rendering, a white (or black) outline as if rendered with freetype is shown. * qt5: Port font guessing and matrix transformation Select font using the same algorithm than in freetype. Transform font using the same matrix than in freetype. * Sailfish: switch to QT font rendering * Fix: remove SubPxelAntiAliasing hint, Sailfish's QT version is too old for this * Fix: fix bbox calculation for qt5 fonts
* Fix: Apply coding style to graphics_qt5Wildemann Stefan2017-05-068-1301/+1301
|
* Add Qt5 qml gui skeleton (#236)R7461Stefan Wildemann2017-05-048-22/+62
| | | | | | | | | | | | | | | | | | | * Initial parts of qt5 qml graphics based on graphics/qt5_qml * Qt5 QML gui: working handover The hand over of the QML engine between the graphics and the gui part is working now. The gui can load it's own QML component and embed the navit widget inside other QML code. * Remove unneeded moc include * Fix: Apply coding style * Fix:extern "C" the navit includes in graphics qt5 Seems the navit includes are not fully "c++" aware, so extern "C" them in the c++ parts.
* graphics Qt5 keyboard (#214)R7384Stefan Wildemann2017-04-105-1/+136
| | | | | | | | | | | * Fix: Enable keyboard on graphics_qt5:QML * Fix: Enable keyboard on graphics_qt5:QWidget * Fix: register the QML RRC. To not let the resources be optimized out if you compile navit without modules, they need to be registered on module init.
* Qt5 Graphics: Add QML support (#213)R7378Stefan Wildemann2017-04-058-71/+580
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Qt5: Add navit callbacks to private Add navit callbacks to private data, to prepare qt5 graphics transition to QML 2.0 instead of QWidget. * Qt5: use only one widget Refactor qt5 code to use only one widget. Overlays won't have their own widgets anymore. This is in peparation for converting qt4 graphics to QML 2.0 * initial addition of QML to qt5 graphics. * Add first (bogus) qml file. This commit adds the qml file for the qt5 qml graphics if used with internal gui. And it alters the cmake scripts to istall it. * Add inital Quick component Now this has it's own c++ Quick component included. Additionally the qml file gets embedded into the plugin. * Small cleanup, qml package name correction. * Convert to QGuiApplication to remove QWidget dep. * First time working QQuick Navit * Lower qml import versions, as sailfish uses old ones. * Add header to QtQuick item. * Add new attr qt5_widget to qt5 * Add qt5 variants to test * Correct mistake in running test for qt5 * Fix: Tomtom libpng version bump to 1.6.29 The libpng version 1.6.28 was removed from ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/ * Fix: Make window as big as possible if w and h are not given * Fix navit config for run_linux_test, complete test separation. * Fix xdotools use separatelog dir * Fix: correct mess generated with last commit * Convert from CMAKE_AUTORRC to old macros We want to support old cmake, that doesn't have AUTORRC * Fix: Add qml modules to build in order to allow QML graphics to run * Fix: Use trusty packages instead.
* Fix: remove autotools leftoversWildemann Stefan2017-02-231-9/+0
|
* Fix: Qt5: only update navit geometry if root window changed size.Stefan Wildemann2017-02-233-9/+8
|
* Fix: Qt5: fix resizing. Add config params w,h,fullscreenStefan Wildemann2017-02-233-56/+99
|
* Fix: Qt5: clean up things even if there i no app objectStefan Wildemann2017-02-231-2/+5
|
* Fix: Qt5: allow passing Qt backend via config.xmlStefan Wildemann2017-02-232-6/+34
|
* Fix: Qt5: integer to pinter cast as suggested by GLibStefan Wildemann2017-02-231-7/+7
|
* refactor: qt5: follow api changes brought with commit ↵Stefan Wildemann2017-02-232-3/+3
| | | | 60bc2797f0bd71d87a4eece306e2368afe2a8866
* Qt5: Use default svg size if size not givenStefan Wildemann2017-02-231-3/+3
|
* Qt5 image loading more robust on navit image guessingStefan Wildemann2017-02-231-27/+70
|
* Improve dash handling. Cope with impair patterns.Stefan Wildemann2017-02-231-0/+11
|
* Clear surfaces if transparent. Fix dash setting.Stefan Wildemann2017-02-231-5/+24
|
* Sailfish needs periodic trigger for display on.Stefan Wildemann2017-02-232-4/+39
|
* Add screen blanking for Sailfish OS.Stefan Wildemann2017-02-231-2/+8
|
* Remove most debug messagesStefan Wildemann2017-02-231-29/+28
|
* Fix overlay text functions.Stefan Wildemann2017-02-231-16/+32
|
* Add QT5 graphics. Works on Sailfish OS.Stefan Wildemann2017-02-238-0/+1110