maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   'pageStack.push(Qt.resolvedUrl()) (https://talk.maemo.org/showthread.php?t=97662)

Markkyboy 2016-09-29 23:40

Re: 'pageStack.push(Qt.resolvedUrl())
 
Quote:

Originally Posted by coderus (Post 1515839)
Much more info now.
Inside lipstick you cant use openUrlExternally

Thanks man, you are a star!, it was starting to give me a headache, but!.......here it comes, the 'but'; .......you say you can't use 'openUrlExternally inside lipstick, but clearly there are exceptions and I am now guessing that it has something to do with certain applications being registered in the system, as openUrlExternally does work with 'mailto:' as shown in my first post.

Now, how to open the alarm dialog directly! (I have managed to do this, but when the alarm dialog opens, all labels, headers, titles, etc, display as per their qsTrId's). I will try and work it out myself, as I enjoy the journey/discovery along the way, but I'm always open to tips/suggestions!

Thanks again coderus, much appreciated!

coderus 2016-09-30 09:01

Re: 'pageStack.push(Qt.resolvedUrl())
 
what is alarm dialog? new alarm?

Markkyboy 2016-09-30 11:51

Re: 'pageStack.push(Qt.resolvedUrl())
 
Quote:

Originally Posted by coderus (Post 1515862)
what is alarm dialog? new alarm?

Yes, it's the alarm ui page.

coderus 2016-09-30 12:12

Re: 'pageStack.push(Qt.resolvedUrl())
 
Code:

import org.nemomobile.dbus 2.0
//
DBusInterface {
    id: jollaClock
    service: "com.jolla.clock"
    path: "/"
    iface: "com.jolla.clock"
    function newAlarm() {
        call("newAlarm", [])
    }
}
// mousearea onClicked:
    jollaClock.newAlarm()


Markkyboy 2016-09-30 12:16

Re: 'pageStack.push(Qt.resolvedUrl())
 
ты мужчина!!

hahahaha, thanks man, nicely done, again!, I was already looking at implementing dbus but wasn't totally sure how to do it, now I know.

Kudos!

EDIT: inserted the dbus code and bang!, it worked first time!, thanks again dude.

I'm very envious of your skills man, very envious! :)


All times are GMT. The time now is 07:36.

vBulletin® Version 3.8.8