*** Tomiol80 has quit IRC | 00:14 | |
*** datagutt has quit IRC | 00:18 | |
*** M4rtinK has quit IRC | 00:18 | |
*** ottulo has quit IRC | 00:31 | |
*** ottulo has joined #sailfishos | 00:44 | |
*** amccarthy has quit IRC | 00:59 | |
*** amccarthy has joined #sailfishos | 01:00 | |
*** jeremy_ has joined #sailfishos | 01:15 | |
*** jeremy_ is now known as Guest46248 | 01:16 | |
*** Morpog_ has joined #sailfishos | 01:29 | |
*** Morpog_PC has quit IRC | 01:31 | |
*** Sfiet_Konstantin has quit IRC | 01:35 | |
*** Guest46248 has quit IRC | 01:52 | |
*** furikku has joined #sailfishos | 01:59 | |
*** exec_s has joined #sailfishos | 02:40 | |
*** mani_nc has quit IRC | 03:36 | |
*** krabador has joined #sailfishos | 03:38 | |
*** krabador has quit IRC | 03:45 | |
*** Custodian has joined #sailfishos | 04:45 | |
*** VitaBushido has quit IRC | 04:56 | |
*** Morpog_ has quit IRC | 05:09 | |
*** kaxing has joined #sailfishos | 05:13 | |
*** kaxing has quit IRC | 05:17 | |
*** triggerhappy has quit IRC | 05:34 | |
*** triggerhappy has joined #sailfishos | 05:35 | |
*** jpetersen_ has joined #sailfishos | 06:13 | |
*** piee has joined #sailfishos | 06:22 | |
*** dhbiker has joined #sailfishos | 06:25 | |
*** M13 has joined #sailfishos | 06:33 | |
*** b0bben has joined #sailfishos | 06:41 | |
*** Pali has joined #sailfishos | 06:49 | |
*** b0bben has quit IRC | 06:52 | |
*** Morpog_PC has joined #sailfishos | 07:00 | |
*** Eismann has joined #sailfishos | 07:01 | |
*** piee has quit IRC | 07:37 | |
*** M13 has quit IRC | 07:38 | |
*** Pali has quit IRC | 07:41 | |
*** piee has joined #sailfishos | 08:09 | |
*** triggerhappy has quit IRC | 08:14 | |
*** wmarone_ has joined #sailfishos | 08:17 | |
*** wmarone has quit IRC | 08:17 | |
*** piee has quit IRC | 08:18 | |
*** Tomiol80 has joined #sailfishos | 08:26 | |
*** piee has joined #sailfishos | 08:41 | |
*** piee has quit IRC | 08:45 | |
*** miksuh has quit IRC | 08:47 | |
*** Pat_o has joined #sailfishos | 08:57 | |
*** b0bben has joined #sailfishos | 09:06 | |
*** piee has joined #sailfishos | 09:08 | |
*** spider-mario has joined #sailfishos | 09:09 | |
*** Whippler has joined #sailfishos | 09:13 | |
*** piee has quit IRC | 09:13 | |
*** Tomiol80 has quit IRC | 09:16 | |
*** Pali has joined #sailfishos | 09:17 | |
*** M4rtinK has joined #sailfishos | 09:19 | |
*** Sfiet_Konstantin has joined #sailfishos | 09:33 | |
*** Kampak[spasi]BK has joined #sailfishos | 09:36 | |
*** Kampak[spasi]BK has left #sailfishos | 09:37 | |
*** Venemo has joined #sailfishos | 09:38 | |
*** zenvoid has joined #sailfishos | 09:43 | |
*** nodevel has quit IRC | 09:47 | |
*** b0bben has quit IRC | 09:52 | |
*** Whippler has quit IRC | 09:52 | |
*** b0bben has joined #sailfishos | 09:53 | |
*** b0bben has quit IRC | 10:12 | |
*** b0bben has joined #sailfishos | 10:12 | |
*** Superpelican has joined #sailfishos | 10:16 | |
*** miksuh has joined #sailfishos | 10:28 | |
Superpelican | Sfiet_Konstantin:ping | 10:34 |
---|---|---|
Sfiet_Konstantin | Superpelican: pong | 10:34 |
Superpelican | yay | 10:35 |
Superpelican | Sfiet_Konstantin:I want to connect | 10:35 |
Superpelican | Sfiet_Konstantin:A C++/Qt signal to a JS function | 10:35 |
Superpelican | that updates a QML object property | 10:35 |
Superpelican | Sfiet_Konstantin:But to what object should I connect? | 10:35 |
Superpelican | I'm still a bit confused on how to do C++/Qt signal -> QML signal handler/function/slot | 10:37 |
*** reaffi has joined #sailfishos | 10:37 | |
Sfiet_Konstantin | Superpelican: use Connection component | 10:37 |
Sfiet_Konstantin | you will be less confused :P | 10:37 |
Superpelican | Sfiet_Konstantin:But | 10:37 |
Superpelican | Connections{} breaks my QObject::connect's | 10:37 |
Sfiet_Konstantin | how come ? | 10:37 |
Superpelican | I have to do setContextProperty first | 10:37 |
Sfiet_Konstantin | yes | 10:37 |
Superpelican | and that breaks my QObject::connect's | 10:37 |
Superpelican | I get the same error | 10:38 |
Sfiet_Konstantin | set context property, and then do connect | 10:38 |
Sfiet_Konstantin | what do you get ? | 10:38 |
*** datagutt has joined #sailfishos | 10:38 | |
Superpelican | as when I put the QObject::connect before doing setSource/setView | 10:38 |
Sfiet_Konstantin | Superpelican: what errpor do you get ? | 10:38 |
Superpelican | well | 10:38 |
Superpelican | something like null::mySignal blahah | 10:38 |
Superpelican | it can't find the QML object anymore | 10:38 |
Sfiet_Konstantin | Superpelican: well, paste | 10:38 |
Sfiet_Konstantin | of cause you can't find, because it is not created | 10:39 |
Sfiet_Konstantin | it is created only if the source is set | 10:39 |
Superpelican | yes | 10:39 |
Superpelican | but | 10:39 |
Sfiet_Konstantin | but IMO, better NEVER find objects using C++ code | 10:39 |
Sfiet_Konstantin | and always do that from QML | 10:39 |
Superpelican | exactly the same code | 10:39 |
Superpelican | works | 10:39 |
Superpelican | without adding setContextProperty | 10:39 |
Superpelican | Sfiet_Konstantin:I'll push the changeset to Bitbucket | 10:39 |
Superpelican | Sfiet_Konstantin:Changes pushed | 10:41 |
Superpelican | without the setContextProperty though | 10:42 |
Superpelican | Sfiet_Konstantin:But imagine I have put the setContextProperty() for "Sailfish::setView(appview.data(), "main.qml");" | 10:43 |
Superpelican | Sfiet_Konstantin:I'll paste the error ;) | 10:43 |
*** b0bben has quit IRC | 10:44 | |
*** arcean has joined #sailfishos | 10:45 | |
Superpelican | Sfiet_Konstantin:But I've read you can't do setContextProperty() after setSource/setView | 10:46 |
Sfiet_Konstantin | Superpelican: you can | 10:46 |
Superpelican | and if I do it for setSource | 10:46 |
Sfiet_Konstantin | but nothing used by the QML components | 10:46 |
Superpelican | I don't have a rootobject | 10:46 |
*** b0bben has joined #sailfishos | 10:46 | |
Superpelican | ok I'll try that then | 10:46 |
*** krabador has joined #sailfishos | 10:49 | |
Superpelican | Sfiet_Konstantin: "error: 'class QObject' has no member named 'setContextProperty'" | 10:50 |
Superpelican | QMLrootobject->setContextProperty() | 10:50 |
Sfiet_Konstantin | Superpelican: well | 10:52 |
Sfiet_Konstantin | self explained | 10:52 |
Sfiet_Konstantin | read the text | 10:52 |
Sfiet_Konstantin | "class QObject do not have a member called setContextProperty" | 10:52 |
Superpelican | yeah | 10:52 |
Superpelican | I understand that | 10:52 |
Superpelican | but what to do about it? | 10:52 |
Sfiet_Konstantin | well | 10:52 |
Sfiet_Konstantin | what is the QMLrootobject ? | 10:53 |
Superpelican | eh | 10:53 |
Sfiet_Konstantin | is it view()->rootObject() ? | 10:53 |
Superpelican | Sfiet_Konstantin:https://bitbucket.org/Superpelican/quick_clamshell/src/e23481d859e55182dc5194517187ef3e8d7eb645/main.cpp?at=default | 10:53 |
Superpelican | Sfiet_Konstantin:I have put setContextProperty on line 25 | 10:54 |
*** M4rtinK has quit IRC | 10:54 | |
Superpelican | (the blank line) | 10:54 |
Superpelican | Sfiet_Konstantin:So yes | 10:54 |
Sfiet_Konstantin | Superpelican: you are doiing it wrong | 10:55 |
Superpelican | it's a view->rootObject() | 10:55 |
Superpelican | :( | 10:55 |
Sfiet_Konstantin | what are ytou trying to do ? | 10:55 |
Sfiet_Konstantin | IMO the best is juist to do | 10:55 |
Sfiet_Konstantin | appview->rootObject()->setContextPropertty("Logic", thelogic) | 10:55 |
Superpelican | Sfiet_Konstantin:But then I won't have the QObject::connects | 10:56 |
Superpelican | So it's because of the cast to QObject? | 10:56 |
Superpelican | or polymorphism | 10:56 |
Sfiet_Konstantin | no no no | 10:57 |
Superpelican | Sfiet_Konstantin:But can I connect QML signals to C++ slots too with Connections{}? | 10:57 |
Sfiet_Konstantin | what do you call "won't have the qobject::connect ?) | 10:57 |
Sfiet_Konstantin | yes | 10:57 |
Sfiet_Konstantin | that's the idea | 10:57 |
Superpelican | I don't understand Connections{} | 10:57 |
Superpelican | it's weird | 10:57 |
Sfiet_Konstantin | it is easy | 10:57 |
Superpelican | to me | 10:57 |
Sfiet_Konstantin | in target you put the object to listen | 10:57 |
Sfiet_Konstantin | so: "target: Logic" | 10:57 |
Superpelican | it looks like you're not giving it enough information | 10:57 |
Sfiet_Konstantin | (the C++ object passed to the context) | 10:58 |
Superpelican | I mean | 10:58 |
Sfiet_Konstantin | and then, you add a signal listener | 10:58 |
Superpelican | you don't even tell it which signal it's about | 10:58 |
Sfiet_Konstantin | onSomething: <your JS function> | 10:58 |
Sfiet_Konstantin | and you bind a function | 10:58 |
Sfiet_Konstantin | Superpelican: you tell it using onXxxxx | 10:58 |
Superpelican | http://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-connections.html | 10:58 |
Superpelican | Sfiet_Konstantin:And it will find Qt/C++ signals too? | 10:59 |
Superpelican | So I could also do onMyC++Signal ? | 10:59 |
Sfiet_Konstantin | yes | 10:59 |
Superpelican | hmm | 10:59 |
Superpelican | it's so confusing all these different ways | 11:00 |
Superpelican | of QML<->C++ | 11:00 |
Superpelican | which one to choose... | 11:00 |
Sfiet_Konstantin | IMO there are 2 | 11:00 |
Sfiet_Konstantin | declaring QObject through context properties | 11:00 |
Sfiet_Konstantin | easy one | 11:00 |
Sfiet_Konstantin | and second one, declaring QObject as components | 11:00 |
Sfiet_Konstantin | qmlregisterxxxxtype | 11:00 |
Sfiet_Konstantin | slightly more complex but useful | 11:00 |
Superpelican | I don't like instantiating in QML | 11:01 |
Superpelican | I want my UI to be QML | 11:01 |
Superpelican | and my logic pure Qt/C++ | 11:01 |
Superpelican | and no JS stuff | 11:01 |
Superpelican | I want the QML UI just to be the a thin layer that communicates with the user | 11:01 |
Superpelican | not that it's 80% of my app | 11:01 |
Sfiet_Konstantin | Superpelican: the JS is glue | 11:01 |
Sfiet_Konstantin | you know | 11:02 |
Sfiet_Konstantin | you are already writing JS | 11:02 |
Sfiet_Konstantin | everything behind a : is js | 11:02 |
Superpelican | :( | 11:02 |
Sfiet_Konstantin | and you know, you don't get much more perf to do find object etc etc | 11:02 |
Sfiet_Konstantin | especially because it have to parse the QML object tree | 11:02 |
Sfiet_Konstantin | costly | 11:02 |
Sfiet_Konstantin | etc | 11:02 |
Sfiet_Konstantin | and JS is JIT | 11:02 |
Superpelican | And isn't that a huge performance hit? | 11:03 |
Superpelican | all that JS stuff | 11:03 |
Sfiet_Konstantin | Superpelican: well, will tell you | 11:03 |
Sfiet_Konstantin | do you care about huge perf when you are writing UI ? | 11:03 |
Superpelican | I like the declarative way of declaring UIs | 11:03 |
Sfiet_Konstantin | UI is waiting 99% of time | 11:04 |
Superpelican | but not all the JS stuff | 11:04 |
Sfiet_Konstantin | want perf, go assembly or C | 11:04 |
Superpelican | Sfiet_Konstantin:yes | 11:04 |
Superpelican | but | 11:04 |
Sfiet_Konstantin | if you want pure perf, better write your own toolkit with C | 11:04 |
Superpelican | it's a mobile device | 11:04 |
Sfiet_Konstantin | well, this will not be possible | 11:04 |
Sfiet_Konstantin | especially if you want declarative | 11:04 |
Sfiet_Konstantin | (and declarative is good) | 11:04 |
Sfiet_Konstantin | so stick with what the toolkit prpovides | 11:04 |
Sfiet_Konstantin | using JS glue code is not bad | 11:04 |
Sfiet_Konstantin | if it is kept to a minimum | 11:05 |
Superpelican | It would be nice if QML was just 100% compatible with C/C++ | 11:05 |
Superpelican | no type conversion and JS | 11:05 |
Superpelican | Sfiet_Konstantin:I at least hope that future versions of Qt won't ditch C++ completely | 11:06 |
Superpelican | and be JS only | 11:06 |
Superpelican | which seems to be what most toolkits/stuff is heading to now | 11:06 |
Superpelican | Sfiet_Konstantin:So the only thing I need to do for QML<->C++ is setContextProperty() and Connections{} ? | 11:08 |
Superpelican | and then it will *just work* | 11:08 |
*** sardini has joined #sailfishos | 11:08 | |
Superpelican | ? | 11:08 |
Superpelican | Sfiet_Konstantin: appview->rootObject()->setContextProperty("cpplogic", thelogic) -> "error: 'class QQuickItem' has no member named 'setContextProperty'" | 11:12 |
Sfiet_Konstantin | Superpelican: lol, they won't do that | 11:12 |
Sfiet_Konstantin | doing powerful stuff in C++ and exposing in QML seems to be the most comon stuff though | 11:12 |
Sfiet_Konstantin | Superpelican: nooo | 11:12 |
Sfiet_Konstantin | appView->rootContext | 11:12 |
Superpelican | -_- | 11:12 |
Superpelican | Sfiet_Konstantin:So I should put a Connections{} in each Page{} ? | 11:16 |
Sfiet_Konstantin | Superpelican:no | 11:16 |
Sfiet_Konstantin | or yes | 11:16 |
Sfiet_Konstantin | well | 11:16 |
Sfiet_Konstantin | on the pages where you need to listen to the logic | 11:16 |
Superpelican | ok | 11:18 |
Superpelican | I will try to get the Connections{} working then | 11:18 |
*** Venemo has quit IRC | 11:19 | |
Superpelican | Sfiet_Konstantin:And I could also call a C++/Qt slot directly from QML with arguments that Qt/C++ understands? | 11:20 |
Sfiet_Konstantin | Superpelican: you can call a slot if it is declared as slot in the C++ side | 11:21 |
Sfiet_Konstantin | you can call it just like a JS function | 11:21 |
*** b0bben has quit IRC | 11:21 | |
Superpelican | ok | 11:22 |
Superpelican | well then | 11:22 |
Superpelican | I don't need Connections{} for QML->C++ | 11:22 |
Sfiet_Konstantin | no | 11:22 |
Superpelican | ? | 11:23 |
Sfiet_Konstantin | you don't need | 11:23 |
Sfiet_Konstantin | no you don't need | 11:23 |
Superpelican | If I can call C++ slots directly | 11:23 |
Superpelican | why would I first | 11:24 |
Superpelican | define a onClicked signal handler | 11:24 |
Superpelican | that emits a signal | 11:24 |
Superpelican | and connect that to a slot | 11:24 |
Superpelican | if I can call to slot directly in onClicked? | 11:24 |
Superpelican | Sfiet_Konstantin:^ | 11:24 |
Superpelican | :( | 11:25 |
Superpelican | But now all my efforts to pass a page to the Dialog to be able to call a signal from that page are useless too :( | 11:25 |
Superpelican | I could've just called the slot directly | 11:26 |
Sfiet_Konstantin | Superpelican: you can call a slot directly | 11:27 |
Superpelican | yes | 11:27 |
Superpelican | but now all the time and effort I spend to be able to access the StartPage scope from the dialog and the questionpage is wasted too :( | 11:28 |
Superpelican | it was just so I could emit a signal defined in StartPage scope | 11:29 |
Superpelican | which isn't needed anymore now | 11:29 |
*** krabador has quit IRC | 11:33 | |
Superpelican | Sfiet_Konstantin:Yay, my t-shirt just came in! | 11:38 |
Superpelican | :D | 11:39 |
Sfiet_Konstantin | Superpelican: pics | 11:40 |
Sfiet_Konstantin | or it didnt happened | 11:40 |
Superpelican | of course! | 11:40 |
*** maninc has joined #sailfishos | 11:42 | |
*** Superpelican has quit IRC | 11:43 | |
*** Superpelican has joined #sailfishos | 11:43 | |
Superpelican | Sfiet_Konstantin:You'll never guess why I just left ;) | 11:43 |
Sfiet_Konstantin | Superpelican: dunno | 11:44 |
Sfiet_Konstantin | because you received a phone with the tee shirt ? | 11:44 |
Superpelican | Sfiet_Konstantin:Well, I needed to close the lid of my laptop, in order too... | 11:44 |
Superpelican | Sfiet_Konstantin:...put the sticker on the back of my laptop! :D | 11:44 |
Sfiet_Konstantin | pff | 11:45 |
Sfiet_Konstantin | stickers | 11:45 |
Sfiet_Konstantin | :D | 11:45 |
Sfiet_Konstantin | I had them before it was cool | 11:46 |
Sfiet_Konstantin | :D | 11:46 |
Morpog_PC | My Thsirt is on it's way back to Jolla via Airmail :) | 11:46 |
Sfiet_Konstantin | Jolla hipster | 11:46 |
Sfiet_Konstantin | Morpog_PC: lol too big ? | 11:46 |
Morpog_PC | too small :( | 11:46 |
Sfiet_Konstantin | :O | 11:46 |
Sfiet_Konstantin | first time I heard this | 11:46 |
Morpog_PC | well, I admit I'm fat :) | 11:46 |
Sfiet_Konstantin | damn the thinkpad trackpoint is nice | 11:47 |
Sfiet_Konstantin | i'm using an external kbd | 11:47 |
Sfiet_Konstantin | and searching for it all the time | 11:47 |
Morpog_PC | lol | 11:47 |
Superpelican | Sfiet_Konstantin, Morpog_PC:http://ubuntuone.com/4P54TNZ1Ai09rcgbtosEFi | 11:47 |
Superpelican | the evidence :P | 11:47 |
Morpog_PC | in germany we call it clit ;) | 11:47 |
Sfiet_Konstantin | Superpelican: lol show the tee | 11:48 |
Morpog_PC | Superpelican, I got that letter also here ;) | 11:48 |
Sfiet_Konstantin | tshirt | 11:48 |
Superpelican | of course | 11:48 |
Superpelican | Sfiet_Konstantin:http://ubuntuone.com/4TqyFTcRN4iBC8v8bpqJra | 11:48 |
Morpog_PC | Jesus, make that space before links :) | 11:49 |
Morpog_PC | I'm a lazy person, I want to click those links | 11:49 |
Yaniel | heck, even tab-completion puts a space after nicks | 11:50 |
Yaniel | and I feel sorry for Sfiet_Konstantin | 11:50 |
Yaniel | must be awful to be highlighted every 5min | 11:51 |
Morpog_PC | :) | 11:51 |
Superpelican | and of course the only #Unlike Asus in the world: http://ubuntuone.com/3d5L55GNRZEjZxNFtacYau | 11:53 |
*** Pat_o has quit IRC | 11:56 | |
Sfiet_Konstantin | Superpelican: :) | 12:07 |
Sfiet_Konstantin | Yaniel: :P | 12:07 |
Sfiet_Konstantin | yues | 12:07 |
Superpelican | Sfiet_Konstantin:Is your Thinkpad #Unlike ? | 12:11 |
Superpelican | :P | 12:13 |
*** Pat_o has joined #sailfishos | 12:14 | |
Sfiet_Konstantin | Superpelican: no tthis one | 12:15 |
Sfiet_Konstantin | the old one | 12:15 |
Superpelican | :( | 12:15 |
*** Pat_o has quit IRC | 12:20 | |
*** Superpelican has quit IRC | 12:29 | |
*** arcean has quit IRC | 12:31 | |
*** TW1920 has quit IRC | 12:38 | |
*** TW1920 has joined #sailfishos | 12:39 | |
*** Superpelican has joined #sailfishos | 12:41 | |
*** blue787_ has joined #sailfishos | 12:43 | |
*** _Razor__ has joined #sailfishos | 12:44 | |
*** blue787 has quit IRC | 12:50 | |
*** _Razor_ has quit IRC | 12:50 | |
*** DrIDK has quit IRC | 12:50 | |
*** rainemak has quit IRC | 12:50 | |
*** r3d has quit IRC | 12:50 | |
*** xl_fk has quit IRC | 12:50 | |
*** xl_fk has joined #sailfishos | 12:50 | |
*** xl_fk has quit IRC | 12:50 | |
*** xl_fk has joined #sailfishos | 12:50 | |
*** blue787_ is now known as blue787 | 12:50 | |
*** maninc has quit IRC | 12:56 | |
Superpelican | Sfiet_Konstantin:How do you I get the argument the signal carries with it in QML? | 12:57 |
*** rainemak has joined #sailfishos | 12:57 | |
Superpelican | Sfiet_Konstantin:For example I have a newQuestion(QString question) signal | 12:57 |
Superpelican | I would like to obtain the question string from the signal in QML | 12:57 |
*** DrIDK has joined #sailfishos | 12:58 | |
Sfiet_Konstantin | Superpelican: it is the name of the argument you gave | 12:58 |
Sfiet_Konstantin | like if the signal is declared void toto(QString tata) | 12:58 |
Superpelican | Sfiet_Konstantin:Just the name? | 12:58 |
Sfiet_Konstantin | you will have to onToto: console.debug(tata) | 12:58 |
Sfiet_Konstantin | yes | 12:58 |
Superpelican | no scope/class name for it? | 12:58 |
Superpelican | ok | 12:58 |
Superpelican | thanks | 12:58 |
Superpelican | I'm getting somewhere now :D | 12:59 |
Superpelican | Might be able to finish my app tomorrow :) | 12:59 |
*** Morpog_PC has quit IRC | 13:01 | |
Superpelican | Sfiet_Konstantin:So this should work? http://paste.kde.org/p8e6b1347/ | 13:03 |
Superpelican | where I have the void newQuestion(QString question) signal defined in my cpp class | 13:03 |
*** Venemo has joined #sailfishos | 13:04 | |
Sfiet_Konstantin | onNewQueston | 13:07 |
Sfiet_Konstantin | onNewQuestion | 13:07 |
Superpelican | ok | 13:07 |
Superpelican | but why? | 13:07 |
Superpelican | why does it change my name? | 13:07 |
Sfiet_Konstantin | Superpelican: because it camelcases | 13:07 |
Sfiet_Konstantin | it is like that | 13:08 |
Sfiet_Konstantin | on + signal name with a capital first letter | 13:08 |
Superpelican | ok | 13:08 |
Superpelican | at least it works now | 13:08 |
Superpelican | oh noooo | 13:08 |
Superpelican | Sfiet_Konstantin:It doesn't | 13:09 |
Superpelican | Sfiet_Konstantin: file:///opt/sdk/Quick2Clamshell/usr/share/Quick2Clamshell/pages/QuestionPage.qml:51:5: QML Connections: Cannot assign to non-existent property "onNewQuestion" | 13:09 |
Superpelican | :( | 13:09 |
Superpelican | why doesn't it *just work* | 13:09 |
Superpelican | It always looks so nice and easy on the docs | 13:10 |
Sfiet_Konstantin | Superpelican: you are holding it wrong | 13:10 |
Sfiet_Konstantin | it is easy | 13:10 |
Sfiet_Konstantin | gimme full code | 13:10 |
Superpelican | Sfiet_Konstantin:What should it look like then? | 13:10 |
Superpelican | I'll push to Bitbucket | 13:10 |
Superpelican | give me a sec | 13:10 |
Superpelican | Sfiet_Konstantin:Changes pushed | 13:11 |
Superpelican | you can take a look now | 13:11 |
Superpelican | https://bitbucket.org/Superpelican/quick_clamshell/src/e23481d859e55182dc5194517187ef3e8d7eb645/pages/QuestionPage.qml?at=default | 13:12 |
Sfiet_Konstantin | do setcontextproperty _before_ setview | 13:12 |
Superpelican | oops | 13:12 |
Sfiet_Konstantin | and try again | 13:12 |
Superpelican | wrong rev | 13:12 |
Superpelican | what? | 13:12 |
Superpelican | but you told me | 13:12 |
Superpelican | to do it after setView | 13:12 |
Sfiet_Konstantin | no | 13:13 |
Sfiet_Konstantin | I said before | 13:13 |
Sfiet_Konstantin | maybe I said serview after setcontet | 13:13 |
Superpelican | eh | 13:13 |
Superpelican | Sfiet_Konstantin:But how *can* I call slots from QML, but can't it find the object's signals? | 13:18 |
Superpelican | I've checked | 13:18 |
Superpelican | calling slots works | 13:18 |
Superpelican | I can set a variable in my UI | 13:18 |
Sfiet_Konstantin | Superpelican: well | 13:18 |
Superpelican | and I've done a qDebug() of the C++ variable | 13:18 |
Sfiet_Konstantin | ok | 13:18 |
Sfiet_Konstantin | how do you do your connection | 13:18 |
Superpelican | well | 13:18 |
Superpelican | it's in the paste | 13:19 |
Superpelican | [15:02] <Superpelican> Sfiet_Konstantin:So this should work? http://paste.kde.org/p8e6b1347/ | 13:19 |
Superpelican | Sfiet_Konstantin:Is that enough information? | 13:20 |
Superpelican | you can always check out the full code on Bitbucket | 13:20 |
Sfiet_Konstantin | NO !!!! | 13:20 |
Superpelican | it's up2date | 13:20 |
Sfiet_Konstantin | that's wrong :O | 13:20 |
Superpelican | :( | 13:20 |
Sfiet_Konstantin | the target is used to get the signal from logic | 13:20 |
Sfiet_Konstantin | isn't it | 13:20 |
Sfiet_Konstantin | the connection | 13:20 |
Sfiet_Konstantin | you want to listen to a signal from logic isn't it ? | 13:20 |
Superpelican | yes | 13:20 |
Sfiet_Konstantin | so why target is set to a label ? | 13:21 |
* sardini look the Sfiet_Konstantin master's class qt | 13:21 | |
Superpelican | an id, you mean? | 13:21 |
Sfiet_Konstantin | Superpelican: well the target refers to a Label | 13:21 |
Superpelican | oh yes | 13:21 |
Superpelican | the id of the Label{} | 13:22 |
Sfiet_Konstantin | you should listen to the logic | 13:22 |
Superpelican | the Label{} questionTxt should be the receiver of the signal | 13:22 |
Sfiet_Konstantin | so set it to the name of the logic you declared | 13:22 |
Sfiet_Konstantin | Superpelican: nooooo | 13:22 |
Superpelican | ok | 13:22 |
Sfiet_Konstantin | it is not like that | 13:22 |
Superpelican | that would be cpplogic | 13:22 |
Sfiet_Konstantin | connection listen to a signal | 13:22 |
Sfiet_Konstantin | yes | 13:22 |
Sfiet_Konstantin | it is cpplogic | 13:22 |
Superpelican | hmm | 13:22 |
Superpelican | but don't you think "target" is a bit misleading? | 13:22 |
Sfiet_Konstantin | and inside the onXXXXxxxxxx you wrote in conenction, you can call the properties of the bale | 13:22 |
Sfiet_Konstantin | target is the target you listen | 13:23 |
Superpelican | ok | 13:23 |
Superpelican | but still it sounds like "the target of the signal" | 13:23 |
Sfiet_Konstantin | aha the 1st attribute in QObject::connect | 13:23 |
Sfiet_Konstantin | Superpelican: no, this do not make sense | 13:23 |
Sfiet_Konstantin | because what is the object emitting the signal then, you don't know | 13:23 |
Superpelican | :nod: | 13:23 |
Superpelican | I'm building/running/testing it now | 13:24 |
Superpelican | Sfiet_Konstantin:Well no errors this time when the QuestionPage is pushed onto the pageStack | 13:25 |
Superpelican | (Connections{} is on the QuestionPage.qml page) | 13:26 |
Superpelican | so it should be ok now | 13:26 |
Superpelican | Sfiet_Konstantin:Ah http://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-connections.html must've confused me | 13:28 |
Superpelican | it's a bit weird example IMO | 13:29 |
Superpelican | could've been clearer | 13:29 |
Superpelican | Now it's time to connect my other C++ signals and finish the logic :D | 13:30 |
Superpelican | Sfiet_Konstantin:Looks like you need multiple Connections{} for multiple connections :( | 13:39 |
Sfiet_Konstantin | Superpelican: if the target is the same and only the signals different | 13:40 |
Sfiet_Konstantin | you can use the same connection | 13:40 |
Superpelican | hmm ok | 13:40 |
Superpelican | that's nice | 13:40 |
Superpelican | because I have multiple signals from cpplogic | 13:40 |
Sfiet_Konstantin | yeah, of cause | 13:40 |
Superpelican | Sfiet_Konstantin:it's of course ;) | 13:42 |
Superpelican | not "of cause" | 13:42 |
Superpelican | Sfiet_Konstantin:Would a if-else statement in JS to check if the parameter of the signal is true or false be costly? | 13:43 |
Sfiet_Konstantin | lol | 13:43 |
Sfiet_Konstantin | no | 13:43 |
Superpelican | Sfiet_Konstantin:I can always have 2 signals when for answer is correct and one for answer is wrong if that's more efficient? | 13:44 |
Superpelican | s/when/, one | 13:45 |
Sfiet_Konstantin | Superpelican: same question | 13:46 |
Sfiet_Konstantin | what are you trying to save by preventing one JS call ? | 13:46 |
Sfiet_Konstantin | two signals means twice more handling in Connect | 13:46 |
Superpelican | but no if-else statemnt | 13:46 |
Sfiet_Konstantin | that is twice the JS "overhead" you are talking about | 13:46 |
*** Morpog_PC has joined #sailfishos | 13:46 | |
Sfiet_Konstantin | so basically, just don't care | 13:47 |
Sfiet_Konstantin | please | 13:47 |
Sfiet_Konstantin | this "overhead" will cost nothing | 13:47 |
Sfiet_Konstantin | the Jolla is a dualcore, with ~1Ghz | 13:47 |
Sfiet_Konstantin | not a i386 with 200mhz | 13:47 |
Yaniel | signals were nothing on the N8 already | 13:47 |
Yaniel | much less on the Jolla | 13:48 |
Sfiet_Konstantin | less than nothing :) | 13:48 |
Superpelican | Yaniel:Eh | 13:48 |
Superpelican | that's exactly what were talking about | 13:48 |
Yaniel | yes | 13:48 |
Superpelican | whether 2 signals would be better than 1 signal with an if-else statement | 13:48 |
Superpelican | Yaniel:So you say 2 signals would be better? | 13:48 |
Superpelican | Sfiet_Konstantin doesn't think so | 13:48 |
Yaniel | "so basically, just don't care" | 13:49 |
Sfiet_Konstantin | Superpelican: just put it this way | 13:49 |
Sfiet_Konstantin | two signals is BAD | 13:49 |
Yaniel | yeah he clearly doesn't | 13:49 |
Sfiet_Konstantin | in term of DESIGN OF THE CODE | 13:49 |
Superpelican | ok | 13:49 |
Sfiet_Konstantin | duplication of effort, confusing etc | 13:49 |
Sfiet_Konstantin | signals are made such that you can carry properties with them (good, bad answer) | 13:50 |
Sfiet_Konstantin | so why not use them | 13:50 |
Sfiet_Konstantin | and a cheap call of JS won't change much in a whole UI | 13:50 |
*** Superpelican has quit IRC | 13:51 | |
*** Superpelican has joined #sailfishos | 13:51 | |
Superpelican | hmm | 13:51 |
Superpelican | got that seconds of lag and counting again | 13:51 |
Sfiet_Konstantin | Superpelican: and aren't you afraid of the supermegagiga overhead caused by the QML engine ? | 13:52 |
Sfiet_Konstantin | come on, it is scripting :P | 13:52 |
Morpog_PC | Sfiet_Konstantin, was that just a spec leak? :D | 13:52 |
Superpelican | yeah | 13:52 |
Sfiet_Konstantin | (well actually the declarative stuff, tired with the scene graph is very efficient) | 13:52 |
Sfiet_Konstantin | Morpog_PC: well | 13:52 |
Superpelican | that's what I thought too | 13:52 |
Sfiet_Konstantin | take it at what you like | 13:52 |
Superpelican | but I kept it secret | 13:52 |
Sfiet_Konstantin | don't, because it is speculation | 13:52 |
Superpelican | to not scare Sfiet_Konstantin ;) | 13:52 |
Sfiet_Konstantin | dual core, ok | 13:52 |
Sfiet_Konstantin | 1 gig, just like the N9, would be a minimal | 13:53 |
Superpelican | but that's known | 13:53 |
Sfiet_Konstantin | and 1 GHZ, as well | 13:53 |
Sfiet_Konstantin | I just took a N9, dualcored version | 13:53 |
Morpog_PC | I didn't follow discussion, as I was cloning my system for a while rebooting :( | 13:53 |
Sfiet_Konstantin | that is what we can expect at least | 13:53 |
Sfiet_Konstantin | Morpog_PC: we were talking about the cost of a signal, or a JS function with the Jolla phone | 13:53 |
Sfiet_Konstantin | that is basically nothing | 13:53 |
Sfiet_Konstantin | we are not in the i386 era | 13:54 |
Sfiet_Konstantin | with 8Mo ram | 13:54 |
Superpelican | Morpog_PC:The amount of SoCs the Jolla can have is already rather limited | 13:54 |
Superpelican | it has to include LTE | 13:54 |
Superpelican | go look up all SoCs with LTE | 13:54 |
Morpog_PC | it doesn't need to include it, could be a seperate radio chip | 13:54 |
Superpelican | hmm | 13:54 |
Sfiet_Konstantin | true | 13:54 |
Superpelican | yeah | 13:54 |
Sfiet_Konstantin | especially for LTE in different countries | 13:55 |
Superpelican | but that would use more power | 13:55 |
Morpog_PC | sure | 13:55 |
Sfiet_Konstantin | since LTE is a huge mess | 13:55 |
Morpog_PC | I won't be using LTE at all :) | 13:55 |
Superpelican | I hope it's not a 1st gen power sucking LTE SoC | 13:55 |
Morpog_PC | heck I even disable 3G to save power and just enable it when I really need the speed | 13:55 |
Superpelican | Morpog_PC:I won't either | 13:55 |
Superpelican | me too | 13:55 |
Superpelican | <3 N900 status bar widget | 13:55 |
Superpelican | I even turn off 2G when not needed | 13:56 |
Superpelican | my N900 has a second hand battery :( | 13:56 |
Morpog_PC | that I cannot, wazzap forces me to be always connected | 13:56 |
Superpelican | so battery life is very poor | 13:56 |
Superpelican | I only enable 2G when on the move for emergencies | 13:56 |
* Superpelican 's on the move mode: 2G enabled, WiFi off. @Home mode: 2G off, WiFi enabled | 13:57 | |
Superpelican | maximum power saving here ;) | 13:57 |
Venemo | heya | 13:57 |
Superpelican | I also always try to reduce screen brightness to the minimum | 13:57 |
Sfiet_Konstantin | hey Venemo | 13:58 |
Sfiet_Konstantin | not ure if wifi consume less | 13:58 |
Superpelican | yes | 13:58 |
Superpelican | but when I'm @home I use WiFi | 13:58 |
Morpog_PC | Sfiet_Konstantin, sure wifi consumes alot less | 13:58 |
Superpelican | and no 2G | 13:58 |
Sfiet_Konstantin | Morpog_PC: hum ok | 13:58 |
Superpelican | so it doesn't matter | 13:59 |
Superpelican | even if it did consume more | 13:59 |
Superpelican | but | 13:59 |
Superpelican | that said | 13:59 |
Superpelican | my experience matches Morpog_PC's answer ;) | 13:59 |
Sfiet_Konstantin | ok | 13:59 |
Superpelican | especially 3G eats battery life | 13:59 |
Superpelican | but I almost never use that | 13:59 |
Superpelican | because of PrePaid | 13:59 |
Sfiet_Konstantin | :/ | 13:59 |
Sfiet_Konstantin | I see | 13:59 |
Superpelican | and data is *very* expensive in NL | 13:59 |
Sfiet_Konstantin | :( | 13:59 |
Sfiet_Konstantin | ah :O | 14:00 |
Superpelican | NL is the most expensive country in EU | 14:00 |
Sfiet_Konstantin | Superpelican: you are NL ? :O | 14:00 |
Morpog_PC | I only disable it for power saving | 14:00 |
Superpelican | yes | 14:00 |
Sfiet_Konstantin | becase I always thought that you were fr thanks to your nick | 14:00 |
Morpog_PC | 500mb is 7,95 a month here | 14:00 |
Superpelican | lol | 14:00 |
Sfiet_Konstantin | (well not anymore until you said you don't know fr well) | 14:00 |
*** piee has joined #sailfishos | 14:00 | |
Sfiet_Konstantin | :O | 14:00 |
Superpelican | Morpog_PC::O | 14:00 |
Sfiet_Konstantin | in fr, 30€ = all illimited | 14:00 |
Superpelican | :O | 14:00 |
Superpelican | We pay at least 10 euro here for 500 mb | 14:01 |
Superpelican | but | 14:01 |
Sfiet_Konstantin | call to most europe countries | 14:01 |
Sfiet_Konstantin | 3G infr | 14:01 |
Superpelican | that's without | 14:01 |
Venemo | fyi, I'm not from FR, either | 14:01 |
Sfiet_Konstantin | SMS | 14:01 |
Sfiet_Konstantin | Venemo: lol | 14:01 |
Superpelican | normal SMS and calls | 14:01 |
Superpelican | so you'll pay about 20 euro a month | 14:01 |
Morpog_PC | there are cheaper ones here, but this is the best Carrier here (T-Mobile) the cheap ones suck :) | 14:01 |
Superpelican | We've got T-Mobile here too | 14:02 |
Superpelican | and Vodafone | 14:02 |
Superpelican | and KPN | 14:02 |
Superpelican | (don't know if you've heard of it) | 14:02 |
Superpelican | they're the owner of E-Plus | 14:02 |
Morpog_PC | sure, we got Eplus here, which is from KPN | 14:02 |
Superpelican | which they're selling now | 14:02 |
Morpog_PC | yep | 14:03 |
Superpelican | to Telefonica DE | 14:03 |
Morpog_PC | btw eplus is one of the ones that suck :) | 14:03 |
Superpelican | ah | 14:03 |
Superpelican | When I'm in Germany I always get E-Plus as roaming network | 14:03 |
Superpelican | But some Mexican billionair wants to buy KPN | 14:04 |
Morpog_PC | yeah heard that | 14:04 |
Superpelican | to stop them from selling E-Plus | 14:04 |
Superpelican | he's interested in E-Plus | 14:04 |
Superpelican | to enter the European market | 14:04 |
Superpelican | but KPN is the most expensive carrier here | 14:04 |
Morpog_PC | yeah, he could destroy the fusion plans of eplus and o2 (thats the other one that sucks) | 14:05 |
Superpelican | Lol 1 + 1 = -1 | 14:05 |
Morpog_PC | hehe | 14:05 |
Morpog_PC | then there is Vodafone which is almost as good as t-mobile and thats it | 14:05 |
Superpelican | Jolla has been talking to KPN though | 14:05 |
Superpelican | to bring the Jolla to NL | 14:05 |
*** dhbiker_ has joined #sailfishos | 14:06 | |
Superpelican | don't know if you've heard it | 14:06 |
Morpog_PC | I never buy mobile devices on contract | 14:06 |
*** dhbiker_ has quit IRC | 14:06 | |
Superpelican | me neither | 14:06 |
Morpog_PC | nope, haven't heard that | 14:06 |
Superpelican | way too expensive | 14:06 |
Morpog_PC | just known the DNA deal | 14:06 |
*** dhbiker has quit IRC | 14:07 | |
Superpelican | Morpog_PC:Dont' know if it works but:: http://translate.google.com/translate?sl=nl&tl=de&js=n&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Ftweakers.net%2Fnieuws%2F87523%2Fkan-onderhandelt-met-jolla-over-release-sailfish-toestel.html | 14:07 |
Superpelican | You could try http://translate.google.com/translate?hl=en&sl=nl&tl=en&u=http%3A%2F%2Ftweakers.net%2Fnieuws%2F87523%2Fkpn-onderhandelt-met-jolla-over-release-sailfish-toestel.html too | 14:08 |
Superpelican | hmm actually it looks pretty well translated | 14:08 |
Superpelican | at least the English one | 14:08 |
Superpelican | at least you should be able to understand what they mean | 14:09 |
Morpog_PC | better in englsih | 14:11 |
Superpelican | Morpog_PC:What I think is very strange | 14:11 |
Superpelican | Morpog_PC:That in the article Jolla said that people in NL pick up new technology fast | 14:12 |
Morpog_PC | yeah, but the article is quite old | 14:12 |
Superpelican | Morpog_PC:Which isn't quite what I've seen | 14:12 |
Superpelican | people pretty much stick to known tech here | 14:12 |
Morpog_PC | especially when you think of their bikes :) | 14:12 |
Superpelican | ? | 14:12 |
Morpog_PC | bicycles | 14:12 |
Superpelican | ? | 14:13 |
Morpog_PC | old tech | 14:13 |
Morpog_PC | very old bicycles | 14:13 |
Superpelican | You mean bicycles are still used a lot in NL? | 14:13 |
Morpog_PC | thousands of them | 14:13 |
Superpelican | oh | 14:13 |
Morpog_PC | yeah | 14:13 |
Superpelican | yeah | 14:13 |
*** Tomiol80 has joined #sailfishos | 14:13 | |
Superpelican | @ railway stations | 14:13 |
Morpog_PC | when I was in amsterdam they were everywhere | 14:13 |
Superpelican | :nod: | 14:13 |
Morpog_PC | and most of them looked like they were 30 years old :) | 14:14 |
Superpelican | lol | 14:14 |
Superpelican | Morpog_PC:Yeah, it's too risky to take your new fancy bike to the railway stations | 14:15 |
Superpelican | they get stolen a lot | 14:15 |
*** krabador has joined #sailfishos | 14:21 | |
*** Khertan_ has joined #sailfishos | 14:30 | |
Khertan_ | Hello | 14:30 |
Khertan_ | ownNotes Preview for Sailfish OS : https://www.youtube.com/watch?v=BfzlX0NEARs | 14:31 |
*** dhbiker has joined #sailfishos | 14:33 | |
Sfiet_Konstantin | Khertan_: good job | 14:35 |
Morpog_PC | nice | 14:36 |
Khertan_ | Sfiet_Konstantin: thx | 14:36 |
Khertan_ | Morpog_PC: thx | 14:37 |
Superpelican | Khertan_:Is it called ownNotes because it syncs with Owncloud notes? | 14:37 |
Khertan_ | yep ... and i like that name | 14:37 |
Superpelican | :) | 14:37 |
Khertan_ | i 'm progressivly removing the prefix Kht of the name of my apps | 14:37 |
Superpelican | well that's very nice :) | 14:37 |
Superpelican | I'd love to use Owncloud in the future | 14:38 |
Khertan_ | and that s name ... wasn't taken yet if i believe google | 14:38 |
Superpelican | instead of relying on some other company to store my data | 14:38 |
Khertan_ | Superpelican: that s what i do since the apparition of dropbox | 14:38 |
Khertan_ | Superpelican: its rely on file modification datetime | 14:40 |
Khertan_ | but as the server hosting ownCloud can have a different time zone or even delay | 14:40 |
Khertan_ | the sync process take care of it | 14:40 |
Khertan_ | by doing a delta between the clock | 14:40 |
Superpelican | Khertan_:I've just watched the vid | 14:41 |
Superpelican | it looks awesome :D | 14:41 |
Superpelican | It's written in Python, isn't it? | 14:41 |
Khertan_ | yep | 14:41 |
Superpelican | hmm | 14:41 |
Superpelican | I didn't expect PyOtherSide to work so well | 14:41 |
Khertan_ | i've just rewrite the qml part for sailfish os | 14:41 |
Superpelican | I mean it's still very young, right? | 14:41 |
Khertan_ | Superpelican: yep and i didn't use the last version that thomas perl released | 14:42 |
Khertan_ | but a 2 month old fork i ve made and add some thing in it | 14:42 |
Superpelican | ah | 14:42 |
Superpelican | so it should be even better | 14:42 |
Khertan_ | Superpelican: yep | 14:42 |
Superpelican | Khertan_:One tip | 14:42 |
Superpelican | Khertan_:It's not "Licenced under the GPLv3" | 14:43 |
Superpelican | but "Licensed under the GPLv3" | 14:43 |
Khertan_ | oh thx | 14:43 |
Khertan_ | :) | 14:43 |
Superpelican | licence is not a verb | 14:43 |
*** exec_s has quit IRC | 14:43 | |
Superpelican | Khertan_:Licence is the British English noun | 14:44 |
Superpelican | and license is the American english noun | 14:44 |
Superpelican | :) | 14:45 |
Superpelican | I wasn't sure how to spell it either a while ago | 14:45 |
Superpelican | so I looked it up on the web :) | 14:45 |
Khertan_ | oh i made this error everywhere since a long time | 14:46 |
Khertan_ | my spell checker didn't notice it | 14:46 |
Superpelican | lol | 14:46 |
Superpelican | yeah it sucks | 14:46 |
Superpelican | when you find out that you | 14:47 |
Superpelican | 've made a particular error everywhere ;) | 14:47 |
Superpelican | I've had it too :) | 14:47 |
Khertan_ | A) Are you an American (or a speaker of American English)? If so, proceed to answer 1. B) Are you British (or a speaker of an English dialect centred primarily around British English, ie. Australian English)? If so, proceed to answer 2. 1) Licensed. 2) Licenced. | 14:47 |
Khertan_ | i'm french ... what's solution 3 ? .... random.choice(1,2) | 14:48 |
*** arcean has joined #sailfishos | 14:48 | |
Khertan_ | :p | 14:48 |
Superpelican | So licenced is correct? | 14:48 |
Khertan_ | Superpelican: that s yahoo answer ...so probably not correct:) | 14:49 |
Superpelican | http://en.wiktionary.org/wiki/licenced | 14:49 |
Superpelican | "(UK, nonstandard) Alternative form of licensed." | 14:50 |
Superpelican | so it should be correct | 14:50 |
Superpelican | but not preferred ;) | 14:50 |
Superpelican | So better stick with "licensed" | 14:51 |
Superpelican | unless of course | 14:51 |
Superpelican | you want your app to be #Unlike :P | 14:51 |
Superpelican | Sfiet_Konstantin:How would I let a signal carry 2 arguments? | 15:08 |
Superpelican | is there some list type that JS/QML "understands"? | 15:08 |
faenil | Superpelican, js array, js dictionary.. | 15:09 |
faenil | read with QVariantMap or QVariantList on cpp side | 15:09 |
Superpelican | faenil:But I want to send a signal from the cpp side | 15:10 |
Superpelican | to the QML side | 15:10 |
Superpelican | I want to send a signal from C++ to QML that carries 2 ints with it | 15:11 |
faenil | Superpelican, well if it's just 2 ints why not sending the two ints? | 15:19 |
Superpelican | faenil:Eh, can signals carry more than 1 argument? | 15:21 |
Superpelican | I thought they could only carry 1 | 15:25 |
Superpelican | like functions in C and C++ can only have 1 return value | 15:26 |
faenil | why are you relating return values to parameter passing? | 15:27 |
DrIDK | Superpelican, connect(obj, SIGNAL(int, QString...), this, SLOT( int, int ..)) | 15:27 |
Superpelican | ok | 15:28 |
Superpelican | thanks I'll try that | 15:28 |
Superpelican | but I'm using the Connections{} element in QML | 15:28 |
faenil | Superpelican, are you having any issue? | 15:29 |
Superpelican | haven't built/tried yet | 15:29 |
faenil | ok | 15:31 |
DrIDK | Superpelican, http://paste.kde.org/pb84a93dd/ | 15:31 |
Superpelican | DrIDK:Thanks, I understand :) | 15:32 |
Superpelican | that's exactly what I've done | 15:32 |
Superpelican | except for the signal is defined in C++/Qt | 15:32 |
faenil | DrIDK, he wants to define the signal in c++ | 15:32 |
*** piee has quit IRC | 15:33 | |
DrIDK | Superpelican, ah, ok! So it's the same! emit sendError("message" ,3) | 15:34 |
Superpelican | :nod: :) | 15:34 |
*** piee has joined #sailfishos | 15:35 | |
Superpelican | Sfiet_Konstantin:I have a defined an IntValidator for my answer_textField | 15:45 |
*** disharmonic has joined #sailfishos | 15:45 | |
Superpelican | Sfiet_Konstantin:Is it still possible to change answer_textField.text to a string then? | 15:45 |
Superpelican | I mean the program itself | 15:46 |
Superpelican | not the user | 15:46 |
Sfiet_Konstantin | Superpelican: what about using placeholder | 15:46 |
Superpelican | Sfiet_Konstantin:A.k.a.: is IntValidator only for user input? | 15:46 |
Sfiet_Konstantin | Superpelican: I dunno | 15:46 |
Superpelican | Sfiet_Konstantin:But can placeholder still be used | 15:46 |
Sfiet_Konstantin | and forgot | 15:46 |
Superpelican | after the user has already input something once? | 15:47 |
Sfiet_Konstantin | well, you are doing it wrong in UI way this tie i guess | 15:47 |
Sfiet_Konstantin | tell me what you are trying to do | 15:47 |
*** martyone has joined #sailfishos | 15:47 | |
Superpelican | Sfiet_Konstantin:Well | 15:47 |
Superpelican | TBH | 15:47 |
Superpelican | I doubt if I'm doing it right as well | 15:48 |
Superpelican | but | 15:48 |
Superpelican | Sfiet_Konstantin:the idea is to notify the user if his answer is correct/wrong | 15:48 |
Sfiet_Konstantin | but well, I can tell you what you could do for something nicer | 15:48 |
Sfiet_Konstantin | Superpelican: there is something (IIRC) | 15:48 |
Superpelican | I could of course put a Label{} | 15:48 |
Superpelican | under the answer_textField | 15:48 |
Superpelican | and change that | 15:48 |
Superpelican | put it would have to fade out | 15:48 |
Superpelican | otherwise it wouldn't be clear | 15:49 |
Sfiet_Konstantin | let me check | 15:49 |
Superpelican | for which question/answer the notification was meant | 15:49 |
Sfiet_Konstantin | using a validator seems to be a good idea | 15:49 |
Sfiet_Konstantin | but maybe I would use a custom one | 15:49 |
Superpelican | eh | 15:50 |
Superpelican | wouldn't that defeat the whole purpose? | 15:50 |
Superpelican | I mean | 15:50 |
Superpelican | if you allow strings | 15:50 |
*** Pali has quit IRC | 15:50 | |
Superpelican | my Logic::checkAnswer(int usersanswer) method | 15:50 |
Superpelican | doesn't check whether the answer is an int | 15:50 |
Superpelican | itself | 15:50 |
Superpelican | it relies on the validator | 15:51 |
Superpelican | which makes the design a lot easier | 15:51 |
Sfiet_Konstantin | Superpelican: imo, I would find away to trigger a validator | 15:51 |
Sfiet_Konstantin | (like don't validate when the text is changed) | 15:51 |
Sfiet_Konstantin | etc. | 15:51 |
Sfiet_Konstantin | and only validate when you click on a button | 15:51 |
Sfiet_Konstantin | let me see | 15:51 |
Superpelican | well | 15:51 |
Superpelican | I think I'll just add another Label{} | 15:52 |
Sfiet_Konstantin | Superpelican: you can of cause :) | 15:52 |
Sfiet_Konstantin | but in ui, it is not as good :P | 15:52 |
Superpelican | s/of cause/of course ;) | 15:52 |
*** Pali has joined #sailfishos | 15:53 | |
Superpelican | Sfiet_Konstantin:Isn't there a special notification element in Sailfish? | 15:53 |
Sfiet_Konstantin | sorry, bit busy: I'm compiling my kernel, and the SailfishWL image on my iconia is dying with some .... kernel panics | 15:53 |
Sfiet_Konstantin | no | 15:53 |
Sfiet_Konstantin | don't us enotifications | 15:53 |
Superpelican | lol | 15:53 |
Superpelican | kernel panics | 15:53 |
Superpelican | makes me think of bad things :( | 15:54 |
Sfiet_Konstantin | GOCHA | 15:54 |
Superpelican | 1( when my laptop kernel panicked when trying to dd an image of my microSD | 15:54 |
Sfiet_Konstantin | a usb key | 15:54 |
Sfiet_Konstantin | will be able to boot mer on it | 15:54 |
Superpelican | 2( What I get when my try to boot Nemo on my N900 :( | 15:54 |
Sfiet_Konstantin | Superpelican: lol | 15:54 |
Superpelican | it's not funny :P | 15:55 |
Superpelican | my poor N900 is broken | 15:55 |
Superpelican | thanks to my clumsiness | 15:55 |
Superpelican | I dropped it a few times | 15:55 |
Superpelican | now the magnet sensor is broken | 15:55 |
Superpelican | and it always thinks it's backcover is open | 15:55 |
Superpelican | which leads to the microSD always being unmounted | 15:55 |
Superpelican | and when trying to boot Nemo it can't find the rootfs as a result | 15:56 |
Sfiet_Konstantin | nice | 15:56 |
Superpelican | and worst of all | 15:57 |
Superpelican | well | 15:57 |
Superpelican | actually not | 15:57 |
Superpelican | I spent a whole weekend a while ago | 15:57 |
Superpelican | figuring out why it wouldn't boot Nemo | 15:57 |
Superpelican | so another reason for Jolla to *hurry* :P | 15:58 |
Sfiet_Konstantin | I remember that | 15:58 |
Superpelican | well actually don't hurry | 15:58 |
*** arcean has quit IRC | 15:58 | |
Superpelican | make it a polished product :D | 15:58 |
Superpelican | #Unlike iPhone 4 and 5 | 15:58 |
Superpelican | (death grip and WiFi problems) | 15:59 |
Sfiet_Konstantin | IMO iPhone 4 / 5 are quite good products | 16:00 |
Sfiet_Konstantin | but we should talk about that on something like #JollaMobile | 16:00 |
Sfiet_Konstantin | ping Khertan_ and Khertan | 16:01 |
Sfiet_Konstantin | who is the true one | 16:01 |
Superpelican | well | 16:02 |
Superpelican | paying 700/800 $ for a product | 16:02 |
Superpelican | and having problems with connecting to WiFi networks | 16:02 |
Superpelican | is a bit too much | 16:02 |
Sfiet_Konstantin | Superpelican: go ----> #JollaMobile | 16:02 |
Superpelican | IMO | 16:02 |
*** arcean has joined #sailfishos | 16:03 | |
*** Superpelican has quit IRC | 16:07 | |
*** Superpelican has joined #sailfishos | 16:07 | |
*** ambrosia has joined #sailfishos | 16:08 | |
*** krabador has quit IRC | 16:11 | |
*** b0bben has joined #sailfishos | 16:16 | |
*** SfietKonstantin has joined #sailfishos | 16:32 | |
*** Sfiet_Konstantin has quit IRC | 16:34 | |
*** SfietKonstantin is now known as Sfiet_Konstantin | 16:36 | |
*** Sfiet_Konstantin has joined #sailfishos | 16:37 | |
Khertan_ | Sfiet_Konstantin: both are clone | 16:39 |
*** arcean has quit IRC | 16:40 | |
*** mike7b4_lenovo has joined #sailfishos | 16:43 | |
*** Venemo has quit IRC | 16:48 | |
*** TW1920_ has joined #sailfishos | 17:03 | |
*** TW1920 has quit IRC | 17:05 | |
Sfiet_Konstantin | Khertan_: and your clone | 17:28 |
*** Pat_o has joined #sailfishos | 17:28 | |
Sfiet_Konstantin | what do you think about doing a sailfishos preentation one day | 17:28 |
Sfiet_Konstantin | in Paris (because IIRC you are in Paris) | 17:28 |
*** piee has quit IRC | 17:40 | |
*** piee has joined #sailfishos | 17:43 | |
*** b0bben has quit IRC | 17:49 | |
*** martyone has quit IRC | 17:49 | |
*** b0bben has joined #sailfishos | 17:51 | |
Superpelican | Sfiet_Konstantin:What was that package that you needed to install to enable QML debugging? | 17:59 |
Superpelican | I forgot | 17:59 |
Superpelican | and I've already done zypper se qt5 | grep debug | less | 18:00 |
Sfiet_Konstantin | Superpelican: dunno | 18:00 |
Superpelican | but couldn't find anything | 18:00 |
Sfiet_Konstantin | :s | 18:00 |
Sfiet_Konstantin | ask someone else | 18:00 |
Superpelican | ok :) | 18:00 |
Superpelican | Stskeeps:What was the package you needed to install to enable QML debugging in the SDK? | 18:04 |
Superpelican | Sfiet_Konstantin:The Sailfish emulator VM is eating 430 mb here | 18:06 |
Superpelican | Sfiet_Konstantin:Does Sailfish need so much RAM? | 18:06 |
Superpelican | it's not even running an app | 18:07 |
special | Superpelican: you can't assume ~anything about sailfish based on the emulator ;) | 18:07 |
Sfiet_Konstantin | special: :D | 18:09 |
Sfiet_Konstantin | well, we can still spread fud | 18:09 |
Sfiet_Konstantin | special: it needs 4 gigs of ram | 18:09 |
Sfiet_Konstantin | and uses like 3 of them without multitask | 18:09 |
Sfiet_Konstantin | 1 available for user | 18:09 |
Sfiet_Konstantin | ;) :P | 18:09 |
special | ah, you must be thinking of ubuntu touch; that's what the edge is about | 18:10 |
*** b0bben has quit IRC | 18:16 | |
*** Superpelican has quit IRC | 18:21 | |
Sfiet_Konstantin | special: true | 18:23 |
*** Eismann_ has joined #sailfishos | 18:23 | |
*** Eismann has quit IRC | 18:24 | |
*** SeekingFor_ has joined #sailfishos | 18:38 | |
*** SeekingFor has quit IRC | 18:40 | |
*** SeekingFor_ is now known as SeekingFor | 18:40 | |
*** SeekingFor has quit IRC | 18:42 | |
*** SeekingFor has joined #sailfishos | 18:43 | |
*** arcean has joined #sailfishos | 18:47 | |
Khertan_ | Sfiet_Konstantin: why not ... | 18:48 |
Sfiet_Konstantin | Khertan_: :) | 18:49 |
Sfiet_Konstantin | because it might be interesting | 18:49 |
Sfiet_Konstantin | just like fk_lx's initiative | 18:49 |
*** piee has quit IRC | 19:03 | |
*** arcean has quit IRC | 19:05 | |
*** boud has quit IRC | 19:07 | |
*** Venemo has joined #sailfishos | 19:12 | |
*** boud has joined #sailfishos | 19:14 | |
*** furikku has quit IRC | 19:30 | |
Khertan_ | Sfiet_Konstantin: indeed... but i ve a bad feeling of such group since meego-fr | 19:51 |
Stskeeps | went quite well in warsaw, poland at least | 19:52 |
Sfiet_Konstantin | Khertan_: well, what about showing it without reminding about the legacy | 19:52 |
Sfiet_Konstantin | and we can show (or find someone to show) about ubuntu | 19:52 |
Khertan_ | intel sponsoring ... push people to create a association ...while knowing that two week later intel abandon meego | 19:52 |
Khertan_ | s/abandon/leave | 19:52 |
Sfiet_Konstantin | :/ | 19:52 |
Sfiet_Konstantin | nice | 19:52 |
Sfiet_Konstantin | but here, Jolla do nothing | 19:52 |
Sfiet_Konstantin | we do what we want | 19:53 |
Khertan_ | yep | 19:53 |
Khertan_ | just a demo | 19:53 |
Khertan_ | some coding demonstration ... | 19:53 |
Khertan_ | why not | 19:53 |
Khertan_ | Sfiet_Konstantin: didnt follow the fk_lx initiative | 19:54 |
Sfiet_Konstantin | Khertan_: that the idea | 19:54 |
*** jpetersen__ has joined #sailfishos | 19:55 | |
Khertan_ | did u think there will be an audience ? | 19:56 |
Khertan_ | ten people? | 19:56 |
*** Alittlemurkling has joined #sailfishos | 19:57 | |
Khertan_ | Sfiet_Konstantin: i should try the ubuntu sdk to see if i can made ownNotesForUbuntu | 19:58 |
Khertan_ | :p | 19:58 |
*** jpetersen_ has quit IRC | 19:59 | |
Sfiet_Konstantin | Khertan_: do you have ubuntu as a distro ? | 19:59 |
Khertan_ | Sfiet_Konstantin: just the laptop ... as my wife use it too | 20:00 |
Khertan_ | the n130 and my pc use a debian stable | 20:01 |
Khertan_ | lol installing the sdk start with a big warning about mixing libs in ppa | 20:02 |
Khertan_ | ... | 20:02 |
Khertan_ | 0 ppa installed on that laptop | 20:02 |
*** Pat_o has quit IRC | 20:04 | |
*** Pali has quit IRC | 20:19 | |
*** M4rtinK has joined #sailfishos | 20:25 | |
*** arcean has joined #sailfishos | 20:31 | |
*** dhbiker has quit IRC | 20:42 | |
*** arcean has quit IRC | 20:45 | |
Alittlemurkling | I'm sure you all get this question a lot, but is it currently possible to run Sailfish on a phone such as a Galaxy S3? I don't have any experience making ports, but I'm willing to learn. | 20:45 |
*** M13 has joined #sailfishos | 20:46 | |
*** ajalkane has joined #sailfishos | 20:50 | |
special | Alittlemurkling: at the moment, there are no public images of sailfish other than the (x86) emulator | 20:50 |
Khertan_ | but there is nemo and mer source. | 20:51 |
Alittlemurkling | So it's not currently possible to make an ARM image? | 20:51 |
Khertan_ | and sailfish compone'nts and ui isn't yet open sourced | 20:51 |
special | you could try to get nemo images running, and that would be a start towards getting sailfish | 20:52 |
special | nemo doesn't have much in terms of android adaptation support currently | 20:52 |
*** M13 has quit IRC | 20:52 | |
special | it also depends on how open the Galaxy S3 is; if you can't flash a working (with drivers) AOSP image onto it, you're not going to get very far. | 20:53 |
Alittlemurkling | I'm not too interested in it's android compatibility, so that's not much of an issue for me. My gs3 is currently running Cyanogenmod 10.1.2, so I don't think openness well be a problem either. | 20:54 |
special | android adaptation != android compatibility | 20:54 |
*** lpotter has quit IRC | 20:55 | |
dm8tbr | the general recommendation is: make nemomobile work on your device, then 'porting' sailfish, should be just installing the ui layer on top once it comes out | 20:55 |
*** lpotter has joined #sailfishos | 20:55 | |
special | cyanogenmod isn't quite the same thing, either. | 20:56 |
dm8tbr | nope | 20:57 |
dm8tbr | cm is just android | 20:57 |
special | to run on android hardware, nemo has to have an android kernel and some of the drivers (like GPU), which is what I meant by adaptation | 20:57 |
special | if you have AOSP, you can get what you need; otherwise it might be tricky. | 20:58 |
special | and again, nemo is not very far along on this yet, either. | 20:58 |
Alittlemurkling | Ah, I see. And I doubt you can use the android kernel as a drop in replacement, correct? | 20:59 |
special | maybe. Every hardware has its challenges | 21:01 |
dm8tbr | the kernel is the lesser problem | 21:02 |
dm8tbr | getting all the binary drivers from android to work is the challenge nowadays | 21:02 |
*** mecki has joined #sailfishos | 21:03 | |
dm8tbr | mer has a good checker script to make sure the kernel will work well | 21:03 |
Alittlemurkling | Excellent. | 21:05 |
*** nodevel has joined #sailfishos | 21:07 | |
special | generally the nexus devices are the best choice for this sort of thing | 21:07 |
*** mecki has left #sailfishos | 21:08 | |
Alittlemurkling | Oh, one more question and I will leave you alone-- will calls and SMS still work? | 21:08 |
special | unknown and complicated | 21:09 |
special | you can probably get the basics up (graphics, touch, etc.) nearly anywhere, more complicated parts may not work without specialized effort. | 21:10 |
Alittlemurkling | Haha, alright then. I suppose I shall just continue to play with the sdk while I await arm images. Thank you all for your patience. | 21:10 |
special | nemo is the place to watch; once android work there is a little further along and there are nemo+wayland images for android HW, it might be worth looking into. | 21:11 |
*** Pat_o has joined #sailfishos | 21:12 | |
*** zenvoid has quit IRC | 21:19 | |
Alittlemurkling | Okay, I will try to keep up with nemo then. | 21:20 |
*** Alittlemurkling has quit IRC | 21:32 | |
*** ibins has left #sailfishos | 21:38 | |
*** ibins has joined #sailfishos | 21:40 | |
*** ajalkane has quit IRC | 21:53 | |
*** mike7b4_lenovo has quit IRC | 21:59 | |
*** disharmonic has quit IRC | 22:00 | |
*** spider-mario has quit IRC | 22:02 | |
*** Pat_o has quit IRC | 22:02 | |
*** piee has joined #sailfishos | 22:10 | |
*** piee has quit IRC | 22:14 | |
*** Eismann_ has quit IRC | 22:28 | |
*** lpotter has quit IRC | 22:36 | |
*** lpotter has joined #sailfishos | 22:36 | |
*** M4rtinK has quit IRC | 23:06 | |
*** jjanvier has joined #sailfishos | 23:12 | |
*** Custodian has quit IRC | 23:36 | |
*** jjanvier has quit IRC | 23:52 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!