Thread
:
[Announce] modRana: a flexible GPS navigation system
View Single Post
MartinK
2013-03-24 , 17:28
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#
1313
So
I've exposed
the mode using the
modrana
QML context property. So to get the current mode, just use it like this anywhere in the QML code:
Code:
modrana.mode
modrana.mode is a R/W sub-property, so it can be also used to set the current mode, modRana-wide:
Code:
modrana.mode = "car"
I've also fixed the theme related errors by specifying the
modrana.theme
sub property. It was probably caused by the root window not being completely loaded at startup. On the other hand, context properties are set before the main loop is started and the view shown, so it should not have this problem any more.
__________________
modRana
: a flexible GPS navigation system
Mieru
: a flexible manga and comic book reader
Universal Components
- a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
Quote & Reply
|
The Following 2 Users Say Thank You to MartinK For This Useful Post:
petur
,
Wikiwide
MartinK
View Public Profile
Send a private message to MartinK
Find all posts by MartinK