×
Namespaces

Variants
Actions

Talk:StarMenu: custom QML component plugin

From Nokia Developer Wiki
Jump to: navigation, search

Mardy - D-Bus

Why do you need D-Bus?

mardy 09:36, 28 March 2012 (EEST)

Lildeimos - D-Bus

@Mardy: that's a good question. D-Bus is only needed when compiling for Harmattan and it is used to get the N9/950 orientation. The coordinate system isn't changed when a rotation occurs, so the origin of coordinate system remain always in the same physical place (upper left in landscape and upper right in portrait). So I need to do some transformations in portrait to display the menu in the right place ( StarMenu::getOrientation() ). Within QML should be simplier, but forces the Harmattan developer to make some tricks to help the c++ pluging. So I opted for this solution and the plugin works the same way on all platforms.

Here a discussion with myself :) http://qt-project.org/forums/viewthread/15052/

lildeimos 13:31, 28 March 2012 (EEST)

 
×