*** KangOl has quit IRC | 00:08 | |
*** nk1ox has quit IRC | 00:11 | |
*** zhost has quit IRC | 00:13 | |
*** spider-mario has quit IRC | 00:13 | |
*** DarkSim has quit IRC | 00:18 | |
*** KangOl has joined #sailfishos | 00:18 | |
*** louisdk has joined #sailfishos | 00:20 | |
*** Fazeriina has quit IRC | 00:23 | |
Nirkus | artemma: please excuse my noobness, but how do i access gstreamer stuff from a QML app? :) | 00:23 |
---|---|---|
artemma | Nirkus: I am not really an expert on it. I used some Qt classes from gstreamer in the past, but just a little | 00:24 |
artemma | MSameer is the person for gstreamer | 00:24 |
artemma | also note that right now code just using gstreamer won't be accepted to app store | 00:25 |
artemma | you'll have to ship your own copy of gstreamer together with the app | 00:25 |
Nirkus | artemma: i am really struggling with finding the correct/any docs on how to go any further than those Sailfish UI components ;) | 00:25 |
Nirkus | argh | 00:25 |
*** fk_lx has quit IRC | 00:26 | |
Nirkus | so, right now, I wont get a simple torch app into the app store? | 00:26 |
artemma | Nirkus: if you are looking for something cool meaning other libs, have a look at libraries allowed at harbour.jolla.com/faq | 00:26 |
artemma | Nirkus: my torch app is waiting in QA in harbour. And update using gstreamer will go next :) | 00:27 |
artemma | but these have to be not exactly simple torch apps for now | 00:27 |
super_hirsute | "GDB debugging from Qt Creator is broken at the moment on both emulator and device. Workaround is to run GDB from the command line." -- that'll be why then | 00:27 |
Nirkus | artemma: ..ok, that may be a hint, why there are so few apps available in the Jolla store currently ;) | 00:30 |
artemma | Nirkus: I would rather say that development stations appeared just a few weeks ago. And SDK a little earlier :) | 00:30 |
artemma | kind'a hard to develop cool stuff without the device | 00:30 |
artemma | and target users to be excited about your app | 00:31 |
MSameer | Nirkus: what are you trying to do ? | 00:36 |
lbt | can someone with a device check what permissions /home/nemo has ? | 00:37 |
Elleo | lbt: drwxr-x--- | 00:38 |
Elleo | lbt: belonging to user nemo, group nemo | 00:38 |
lbt | good - my wife's was 775 which seemed wron | 00:39 |
lbt | g | 00:39 |
*** Naranek has joined #sailfishos | 00:42 | |
*** M4rtinK has quit IRC | 00:42 | |
Nirkus | MSameer: I was trying to develope a torch app to get started | 00:48 |
MSameer | Nirkus: artemma did that already so he can help | 00:48 |
MSameer | Nirkus: problem is: QtMultimedia does not work for whatever reason | 00:49 |
MSameer | so the only way to do it is via gstreamer unless you want to wait for QtMultimedia | 00:49 |
*** zhxt has joined #sailfishos | 00:49 | |
*** rcg has quit IRC | 00:53 | |
mfulz | could someone answer me a simple c++ question? | 00:53 |
mfulz | constructor ( int param1, int param2) : m_param(param1), m_param2(param2) { my stuff; } | 00:54 |
mfulz | will the assignment of the params after : m_... done before or after the code, which is executed inside the constructor? | 00:55 |
MSameer | before | 00:55 |
mfulz | thanks | 00:55 |
MSameer | so object will be created, m_param = param1 will be executed | 00:55 |
MSameer | then the code in the constructor will be executed | 00:56 |
mfulz | good - makes sense anyway :) | 00:56 |
artemma | Nirkus: I did flashlight two ways: forcing camera to seek for focus all the time (hence forcing flash to be on); via gstreamer as MSameer says.. but in quite an ugly way. MSameer will probably make a way more proper torch and I'll learn how to properly bundle libs in from it then :) | 00:56 |
MSameer | you can also do: constructor(int param1, int param2) { m_param1 = param; my code } | 00:57 |
MSameer | artemma: there is no guarantee that my app will be available any time soon or it will be accepted | 00:57 |
MSameer | artemma: i am on vacation with a laptop that is overheating | 00:58 |
MSameer | and seems I caught flu :/ | 00:58 |
artemma | MSameer: I am personally after an example of bundling libs is whoever does it :) | 00:58 |
artemma | MSameer: sorry for you | 00:58 |
artemma | I don't mean to push for anything. It's fine if proper flashlight is ready many months after mine is in store after all | 00:58 |
MSameer | artemma: I gave you the chance :) | 00:59 |
artemma | Let's see if harbour gives one too :) | 00:59 |
MSameer | you wanted to be the first one and you are now the first one! | 00:59 |
artemma | There's no way to clean the queue, I have to wait for unpredictable time until the prev version is approved, then again for proper version | 00:59 |
lbt | it is christmas :) | 01:00 |
artemma | MSameer: yes, being #iamthefirstone is so Jolla, isn't it? ;) | 01:00 |
MSameer | lbt: no. it's now new year :D | 01:00 |
mfulz | before someone is going to take it over: I'm working on an openvpn client atm. :D | 01:00 |
lbt | mfulz: wtf... I missed it? Again! | 01:00 |
*** b0bben has joined #sailfishos | 01:00 | |
MSameer | mfulz: kudos! | 01:00 |
lbt | MSameer: even! | 01:00 |
lbt | mfulz: too late :) | 01:00 |
*** master_of_master has joined #sailfishos | 01:00 | |
mfulz | hum? who is doing it already and how is the state? | 01:01 |
* artemma wants instagram, but that's probably most complex of them all and probably with little interest from hardcore linux hackers | 01:01 | |
lbt | I was ... but I'm happy to drop it | 01:01 |
mfulz | hm how far you are before dropping :) | 01:01 |
lbt | mfulz: essentially nowhere .. I was digging into connman-vpn first | 01:02 |
MSameer | lbt: push the code to git and GPL it please so people can build upon it | 01:02 |
mfulz | ah ok | 01:02 |
artemma | I also want Pocket (good read it later app) and Buffer, but not sure if Pocket has API for reading stuff | 01:02 |
mfulz | I want to finish the settings stuff tomorrow (basic ones atm for first version just with certs and no pw) | 01:02 |
mfulz | after that I'll going into the dbus stuff | 01:02 |
mfulz | but doesn't seem too complicated - connman is quite well documented | 01:03 |
lbt | mfulz: just be aware that it's not likely to get into store | 01:03 |
MSameer | i am actually trying to clean the code of one of my harmattan apps and wondering how to support harmattan and sailfish from the same codevase | 01:03 |
mfulz | what are the requirements to get into the store? | 01:03 |
lbt | mfulz: my guess is you'll need to deploy to /etc or run with root priv | 01:03 |
MSameer | conman is not whitelisted | 01:03 |
mfulz | hm no | 01:03 |
*** master_o1_master has quit IRC | 01:03 | |
artemma | BTW, do you guys know what's Jolla attitude to sharing and/or high level interapp interop? Say, is Android-like sharing of browser links to Facebook, Twitter, ReadItLater, whatever-you-installed-for-sharing possible? | 01:03 |
MSameer | mfulz: depends on the libraries you link to | 01:04 |
mfulz | from the shell with normal nemo user I can use the dbus connman stuff | 01:04 |
lbt | mfulz: and creating tun/tap interfaces ? | 01:04 |
mfulz | but didn't test to a full vpn connection | 01:04 |
lbt | mfulz: OK - that's good | 01:04 |
mfulz | anyway I'll try and get back when a first test for others can be done as well :) | 01:04 |
lbt | I just want you to be prepared that it may not get in | 01:05 |
MSameer | then it goes to openrepos? | 01:05 |
lbt | we can always push it to the community repo and explore how to do that | 01:05 |
lbt | :) | 01:05 |
lbt | yes | 01:05 |
mfulz | ah great | 01:05 |
mfulz | what is the comm repo? | 01:05 |
MSameer | artemma: actually, that reminds me. I will push the torch app to open repos | 01:05 |
lbt | but they don't exist yet (on the OBS side) | 01:05 |
MSameer | mfulz: openrepos.net | 01:06 |
mfulz | thanks | 01:06 |
lbt | mfulz: well, there is the openrepos.net ... but the build side is on merproject.org's builder | 01:06 |
mfulz | ok going to work on my settings stuff | 01:06 |
artemma | MSameer: that probably means that you won't care about bundling the libs with app? | 01:06 |
MSameer | artemma: yes | 01:06 |
lbt | anyhow... 'night all | 01:06 |
*** b0bben has quit IRC | 01:07 | |
MSameer | artemma: it's my way to protest against the store restrictions :p | 01:07 |
mfulz | but if the app will run without any root or other dirty tricks it can be added to the normal store? | 01:07 |
artemma | MSameer: it's a pity. A working example on integrating libs is missing | 01:07 |
MSameer | mfulz: it depends on the qml and C++ libraries you use | 01:07 |
artemma | and another one on integrating a sample standard Qt module too | 01:07 |
vgrade | MSameer: thp wrote some words on supporting sailfish, harmattan | 01:07 |
vgrade | http://thpmaemo.blogspot.co.uk/2013/03/porting-harmattan-apps-to-sailfish.html | 01:07 |
mfulz | atm just normal stuff qtquick, salicia, qsettings, stuff like that | 01:08 |
mfulz | of course I'll need to use qt-dbus for communicating with connman | 01:08 |
MSameer | vgrade: problem is now we support qt4/qtquick 1.0 and qt5/qtquick 2.0 | 01:08 |
MSameer | vgrade: I did it for camera+ but it's _ugly_ | 01:08 |
MSameer | artemma: true but I am sure the SDK team is working on that | 01:09 |
vgrade | MSameer: ah, ok that page was from initial qt4 sdk | 01:09 |
MSameer | mfulz: point is: one cannot tell before seeing all the libraries | 01:09 |
mfulz | ok np | 01:09 |
MSameer | mfulz: but avoid qtwidgets | 01:09 |
mfulz | as said we'll se when there is something to show | 01:10 |
mfulz | ah no qtwidgets till now | 01:10 |
artemma | MSameer: I hope so. So far, SDK wasn't exactly full of examples. And half of known [by me] examples won't pass harbour criteria | 01:10 |
MSameer | vgrade: what I did is I followed his approach but I had import QtQuick 2.0 in all qml files and there is a harmattan qt4 file system plugin which loads the qml files and replaces import QtQuick 2.0 with import QtQuick 1.0 during _run time_ | 01:10 |
MSameer | vgrade: really ugly but works | 01:11 |
artemma | looks more like old good (bad) Nokia style examples that only work if you are inside Nokia :) | 01:11 |
MSameer | artemma: I am sure they are working on fixing it | 01:11 |
MSameer | artemma: beside, I don't check the examples. I create my own according to the public roles | 01:12 |
MSameer | so following what I do might not be the best approach | 01:12 |
artemma | MSameer: somebody will do examples earlier or later. I share mine when I can and where I think I could make input | 01:12 |
artemma | arrgh, QSocketNotifier again doesn't not notify me about /dev/input/event12 Meanwhile in the console I can perfectly see input happening | 01:13 |
artemma | I must be missing something very basic | 01:13 |
MSameer | artemma: true but I am protesting against store (and at the same time trying to left the restrictions) | 01:13 |
MSameer | hard for me to say that I am protesting against the store. hope no one will kick my *** :p | 01:14 |
MSameer | artemma: are you sure the device file is the correct one? | 01:14 |
artemma | MSameer: No, I am not sure, but for start I want to read at least something | 01:16 |
artemma | Here's the code: simplest I could come up with: http://pastebin.com/Lfsz4pw6 | 01:16 |
artemma | and I can see input from same device in console just via cat /dev/input/event12 | 01:17 |
MSameer | artemma: try QSocketNotifier::Exception ? | 01:19 |
*** KangOl has quit IRC | 01:19 | |
artemma | reading about exception.. | 01:20 |
artemma | interestingly I was getting notifier alerts before (but failed to read them), not I don't get notiifcations. Oh well, will try exception now | 01:22 |
MSameer | i think entries in /proc work only with exception but not sure | 01:23 |
MSameer | artemma: i think you should stop the notifier, read the data and then start notifier again | 01:23 |
MSameer | at least that's what I can see via the docs | 01:23 |
MSameer | but i really don't know | 01:23 |
MSameer | I use low level C for such things | 01:23 |
artemma | hmm.. I am mostly basing on http://radekp.github.io/qtmoko/api/tut-deviceexample.html | 01:24 |
* artemma doesn't mind any lower level stuff, no optimization needed there, will just use first thing that works | 01:25 | |
artemma | I want to see if I can reliably hook to long volume button press | 01:25 |
MSameer | that's easy | 01:26 |
artemma | and anyway, right now I don't even get notifier's notifications, so nothing to stop | 01:26 |
MSameer | artemma: install an event filter and watch for key presses | 01:26 |
MSameer | that gives you volume +/- | 01:26 |
artemma | MSameer: in c level, do you have blocking read? So that it would wait-wait-wait for presses? | 01:26 |
MSameer | a long press = volume release time - volume press time | 01:27 |
artemma | event filter? Won't it filter only events when my app is already on screen? | 01:27 |
MSameer | if the value is greater than X and X is a constant you define | 01:27 |
artemma | i.e. events coming to my window anyway | 01:27 |
MSameer | so? | 01:27 |
MSameer | you pass the filters | 01:27 |
artemma | I want to capture events while I am on background | 01:27 |
MSameer | you pass the events | 01:27 |
MSameer | you only inspect them | 01:27 |
MSameer | mmm | 01:28 |
artemma | in far bright future a daemon might watch and start flashlight on long press | 01:28 |
mfulz | how is qt handling errors in general? I can't find anything about exceptions | 01:28 |
MSameer | i think there are no exceptions in Qt but I don't know | 01:28 |
mfulz | yep there aren't because of compatibility but I don't find the error handling approach | 01:29 |
MSameer | artemma: i think read() is blocking by default | 01:29 |
MSameer | mfulz: what are you trying to do? | 01:30 |
artemma | mfulz: normal C++ exceptions should be fine | 01:30 |
mfulz | MSameer: Checking if a file is accessible inside a constructor and if not -> do some error handling | 01:31 |
MSameer | my jolla is @ the room where my kid is sleeping and I don't want to wake him up to test the qsocketnotifier bits | 01:31 |
MSameer | mfulz: a Qt-way would be a function returning a bool | 01:31 |
mfulz | artemma: yes I know I could, but if qt isn't using the exceptions of c++ (there is a good reason for: compatibility) there should be another possibility | 01:32 |
MSameer | but exceptions should work too | 01:32 |
mfulz | MSameer: Can constructors return variables? | 01:32 |
artemma | mfulz: qt comes from old times without good exception support on platforms | 01:32 |
MSameer | mfulz: no | 01:32 |
mfulz | so ok then I go for exceptions in this case | 01:33 |
MSameer | mfulz: http://stackoverflow.com/questions/5548951/why-doesnt-qt-use-exception-handling | 01:33 |
MSameer | but then I don't know Qt fully | 01:33 |
*** Morpog_ has quit IRC | 01:33 | |
mfulz | ah ok thanks | 01:33 |
MSameer | mfulz: what I do in these cases is: | 01:34 |
MSameer | class Foo { Foo(const QString& file) { m_found = QFile::exists(file); } bool isValid() { return m_found; } } | 01:34 |
MSameer | OR | 01:34 |
MSameer | class Foo { static Foo *instance(const QString& file) { if (!QFile::exists(file)) { return 0} } } | 01:35 |
MSameer | or you can use exceptions | 01:35 |
MSameer | I have to admit that I was a fan of exceptions until I worked for Nokia :p | 01:36 |
mfulz | ^^ | 01:37 |
mfulz | I'm not a fan of them but using them normally where it's giving me "better" code | 01:37 |
MSameer | that's always the best thing to do :) | 01:38 |
mfulz | and in comparism to your example doing something like { if(!checkFile(file)) throw ... } seems to be better to me :) | 01:38 |
MSameer | but take care that there is a race condition in my code | 01:38 |
*** Andy80 has quit IRC | 01:39 | |
MSameer | because the file might be created or deleted since the whole block is not atomic | 01:39 |
*** Andy80 has joined #sailfishos | 01:39 | |
MSameer | but if you are the only user of that file then you might not want to fix that | 01:39 |
mfulz | yes in that case it's really possible to ignore it | 01:40 |
mfulz | for a vpn thing the certs should really be binded to one user :) | 01:40 |
MSameer | :nod: | 01:40 |
*** Andy80 has quit IRC | 01:44 | |
valdur55 | I just found out that the jolla uses git as vcs | 01:45 |
MSameer | for what? | 01:46 |
artemma | MSameer: reading /dev/input/event12 using see (open, basically) returns endless stream of 0x40 :/ | 01:46 |
artemma | without any button presses | 01:46 |
artemma | and nothing if watching same in console | 01:46 |
jani | https://github.com/rasjani/Jopas and binaries for testing purposes @ https://openrepos.net/content/rasjani/jopas | 01:47 |
mfulz | just some fun in between: http://d24w6bsrhbeh9d.cloudfront.net/photo/apqNxqD_700b_v2.jpg | 01:48 |
mfulz | :) | 01:48 |
artemma | fd = open("/dev/input/event12", O_RDONLY); | 01:48 |
artemma | read(fd, &c, sizeof(c)); | 01:48 |
artemma | printf("<0x%x>\n", c); | 01:48 |
jani | MSameer: thanks btw for initial porting. based on your work, missing parts fixed or removed altogether - rewritten settings page completely.. | 01:48 |
MSameer | jani: glad to see someone maintaining it :) | 01:49 |
jani | i need something like that everyday and android counterparts are just not good enough.. | 01:50 |
MSameer | artemma: maybe that's why the socket notifier was not notifying? | 01:50 |
jani | so i had to =) | 01:50 |
MSameer | jani: I need it too that's why I did the initial port :) | 01:50 |
artemma | MSameer: possibly. Problem is I don't really understand why and what it means :/ | 01:50 |
MSameer | i need to try it but my jolla is way from me | 01:51 |
artemma | I thought opening an input file from C is same as printing to console | 01:51 |
* artemma trying jopas | 01:51 | |
MSameer | artemma: does it change when you press volume button? | 01:51 |
MSameer | jani: but what is the "jo" ? jolla? | 01:51 |
artemma | jani: btw, that sounds not very nice in Russian. Something like asspass | 01:51 |
jani | acid test has been done :D i went to work with it on friday | 01:52 |
MSameer | artemma: it's finland specific :) | 01:52 |
artemma | MSameer: probably not, hard to say as it reads all the time. Maybe I inject thread sleep | 01:52 |
*** Tumeez has quit IRC | 01:52 | |
artemma | actually it is more like in the middle between AssPas and FuckPas :) | 01:52 |
mfulz | lol | 01:52 |
artemma | depending on how you read J :) | 01:53 |
jani | Jolla-Opas = jopas .. also, there's a finnish saying called "jopas jotakin" which is something like "now thats something!" | 01:53 |
MSameer | aha | 01:53 |
MSameer | my finnish is non existent :'( | 01:53 |
MSameer | jani: I was planning to do more sailfish-ification but now I am glad you will take care of it | 01:54 |
MSameer | I really cannot maintain all the apps I need | 01:54 |
jani | or, "I'll be damned" according to the dictionary translator .. but anyway, its there now, been hacking on it since xmas and just trying to learn qml - never bothered to do so during harmattan so good excuse to do so now too as i now mainly work with .js anyway. | 01:56 |
jani | and will continue to maintain until unforeseen future. | 01:56 |
artemma | jani: looks pretty cool, actually works and is useful | 01:57 |
artemma | a couple of minor things: It gets half frozen while tries to connect when doing address lookup for the first time (I guess whole device is frozen, not just your app) | 01:58 |
artemma | and I cannot set my address as favorite for some reason. Only option available is current location | 01:58 |
jani | yes. favourites can be added atm only from "manage favourites" .. | 01:58 |
MSameer | it was possible to add them via long tapping the star icon | 01:59 |
artemma | And then minor layouting things that you'll be improving anyway | 01:59 |
MSameer | could someone put a screenshot somewhere please? | 01:59 |
artemma | such as possibly creating such layout that all info fits to screen even when keyboard is shown | 01:59 |
MSameer | jani: I was also planning to kill a lot of js and replace it with qml and/or C++ because loading some pages is really slow | 02:00 |
jani | MSameer: oh i didnt check the whole codebase, i havent removed that atleast ;) | 02:00 |
MSameer | jani: maybe it still works :D | 02:00 |
artemma | and now icon showing number of suggestions (2) is real tiny - hard to tap on. Maybe whole line could be tappable? | 02:00 |
artemma | long press seems to work only if address is found :) | 02:01 |
MSameer | yup | 02:01 |
artemma | mine is not (exactly my house number is not present in db) | 02:01 |
MSameer | that's how it should work | 02:01 |
MSameer | i am stupid. It's a finland specific apps but russian-speaking people do live in finland | 02:02 |
* MSameer slaps himself | 02:02 | |
artemma | yet route is found fine with my address (it subsitutues it with the closest recorded one) | 02:02 |
artemma | MSameer: what's bad about russians in Finland? :) | 02:02 |
jani | there's no translations yet and some strings are not even ready for translations .. | 02:03 |
*** ericcc has joined #sailfishos | 02:03 | |
MSameer | artemma: nothing. It's when you didn't like the name in Russian and I said that it's a finland specific app meaning that Russian speakers will not download it :p | 02:03 |
MSameer | jani: I killed the translations because I don't know Finnish but it's still available in the original github repos | 02:04 |
artemma | MSameer: pressing button while reading /dev/input/event12 with delay doesn't change anything. Only 0x40 comes | 02:04 |
MSameer | that is strange artemma! | 02:04 |
artemma | yeah, there are quite many russians in finland, especially in meego circles :) | 02:04 |
artemma | for(int i=0; i>-500; i++) { | 02:04 |
artemma | fd = open("/dev/input/event12", O_RDONLY); | 02:04 |
artemma | read(fd, &c, sizeof(c)); | 02:04 |
artemma | printf("%d: <0x%x>\n", i, c); | 02:04 |
artemma | QThread::msleep(500); | 02:04 |
artemma | } | 02:04 |
jani | Msameer: lots of new strings been added since too.. | 02:04 |
MSameer | aha | 02:05 |
artemma | Well, Jopas name is not super bad, it's not exactly identical to Fuck, but jokes are guaranteeed | 02:05 |
MSameer | fuck pas might be cool :P | 02:05 |
artemma | I would be fine telling its name to my dad, maybe not so much to my kids :) | 02:05 |
MSameer | it's better than lumia which has its own meaning in Spanish :p | 02:06 |
jani | artemma: someone once said there's no such thing as bad publicity =) | 02:06 |
MSameer | artemma: you will be surprised when your kids tell you :D | 02:06 |
artemma | MSameer: I am theretical person regardign kids so far | 02:06 |
*** Morpog_Mobile has quit IRC | 02:06 | |
MSameer | artemma: then no need to worry :) | 02:06 |
ln- | think about the children | 02:07 |
* artemma tries to deliver the exact degree of how it sounds. Taking it into account or not is up to you. I'll use the app anyway | 02:07 | |
*** zhxt has quit IRC | 02:07 | |
artemma | and use it happily | 02:07 |
MSameer | me too | 02:08 |
MSameer | if I can only get rid of skype :( | 02:08 |
MSameer | i don't want to install android skype :'( | 02:08 |
artemma | what does the green/yellow circle on the lines under addresses mean? | 02:08 |
jani | Msameer: added few screeenshots .. | 02:08 |
artemma | skype should be easy(ish) to create, they have C libs for ARM | 02:09 |
MSameer | green means the address is unique. yellow I think means the address is not unique | 02:09 |
jani | to openrepos page that is .. | 02:09 |
* artemma was creating a custom skype video client a year or two ago with Qt and GStreamer | 02:09 | |
MSameer | jani: will check it. thanks :) | 02:09 |
MSameer | artemma: the libs are no longer being offered | 02:09 |
artemma | oh.. | 02:09 |
artemma | microsoft way I guess.. | 02:10 |
*** Andy80 has joined #sailfishos | 02:10 | |
MSameer | did rainisto contribute to the sailfish port ? :p | 02:10 |
MSameer | artemma: exactly | 02:10 |
artemma | they have to provide them to device manufacturers at least.. | 02:10 |
artemma | ike smart tvs | 02:10 |
jani | Msameer: same fixes on package, not much on actual code.. | 02:10 |
MSameer | why did he not submit the changes back :P | 02:10 |
jani | i based my fork on his fork.. | 02:10 |
MSameer | wait until I meet him at the office :p | 02:10 |
artemma | jani: do you think killing Header could be a good idea? Then everything might fit to screen even with keyboard open | 02:10 |
artemma | jani: what does the green/yellow circle on the lines under addresses mean? | 02:11 |
*** louisdk has quit IRC | 02:12 | |
jani | artemma: main page will be definitely be rewritten to fit better .. also settings page is still too long and the important parts are not fully in the view .. | 02:12 |
MSameer | jani: nice settings page. great job! | 02:12 |
artemma | And pulley menu is cool, but.. I am still missing the eaily accessible SEARCH NOW! button. Maybe top-right action instead of a title would be sailfish enough? | 02:12 |
jani | so yes.. usability will be optimized .. | 02:12 |
mfulz | MSameer: better go for a xmpp client with voice support :) | 02:12 |
MSameer | mfulz: voice quality is not that good :/ | 02:12 |
* artemma is sure app cover in the future will show reminders when to exit bus, etc | 02:13 | |
mfulz | I know but still better than beeing locked to MS | 02:13 |
artemma | yes, settings page is cool indeed | 02:13 |
MSameer | mfulz: my mom doesn't care about MS lock. She cares about sound | 02:13 |
mfulz | hehe | 02:13 |
MSameer | artemma: do you have the skype stuff available somewhere? | 02:14 |
MSameer | artemma: I cn always try to extract the skype n9 stuff | 02:14 |
artemma | Hmm. I saved my address to favorites. How do I put into into From field? | 02:14 |
*** Andy80 has quit IRC | 02:14 | |
artemma | MSameer: I used skype really a year or two ago | 02:14 |
MSameer | artemma: tap the star | 02:15 |
artemma | and that was closed company code | 02:15 |
Nirkus | hm | 02:15 |
MSameer | artemma: I hate you :) | 02:15 |
Nirkus | howdo i execute $stuff as soon as a page is entered/rendered? | 02:15 |
artemma | AH, now I've got what Star is doing there! It looked like on-off switch, but in fact it lets you Choose a favorite | 02:15 |
artemma | Nirkus: Google "Component.onCompleted" | 02:15 |
jani | nirkus: onCompleted signal ? | 02:15 |
MSameer | Nirkus: on the first time the page is created or whenever it becomes active? | 02:16 |
artemma | jani: all in all it is a really useful app with a potential of becoming actually great | 02:16 |
jani | MSameer: on rainisto's fork .. i talked with him briefly few days ago and sand him a pr too . .but he didnt sound very eager on getting things done =) | 02:17 |
artemma | just some UI thinking and careful going through all screens added and it will be totally awesome | 02:17 |
Nirkus | MSameer: the first time should be the right choice in my case | 02:17 |
MSameer | jani: he's busy and like me he fixed his stuff and that's it | 02:17 |
MSameer | Nirkus: Page { | 02:17 |
artemma | still what does the green/yellow circle on the lines under addresses in Jopas mean? :Can't figure it out ) | 02:17 |
MSameer | Nirkus: Component.onCompleted: do_stuff | 02:17 |
MSameer | Nirkus: } | 02:17 |
MSameer | artemma: unique/non-unique address | 02:18 |
MSameer | artemma: if it's yellow then you get a bubble | 02:18 |
artemma | ah.. then it's duplicate for the (2) bubble? | 02:18 |
MSameer | artemma: an indicator. You really did not use n9 with meegopas did you ? :) | 02:19 |
artemma | MSameer: was meegopas a free app? | 02:19 |
MSameer | i ate 6 pieces of bread and still hungry. damn! | 02:19 |
MSameer | artemma: yes | 02:19 |
MSameer | artemma: free and GPLv3 | 02:20 |
artemma | I remember two apps for helsinki for N9 | 02:20 |
MSameer | artemma: that's why we forked it and ported it to sailfish | 02:20 |
artemma | one free that was Okay (proobably meegopas) | 02:20 |
MSameer | omat pysakit was one | 02:20 |
MSameer | which was crap | 02:20 |
artemma | and another one was 2 euros and was totally awesome | 02:20 |
artemma | I switched to the awesome after maybe a month of meegopas | 02:20 |
MSameer | meegopas improved | 02:20 |
MSameer | and it's the base of the sailfish app | 02:21 |
artemma | there was a map showing me on the map, gently alerting when its time to exit a bus, and other blackjack and sluts | 02:21 |
Nirkus | MSameer: which components do have that .onCompleted? auto-completion cant seem to find it.. | 02:21 |
jani | i used nothing but meegopas for actual travelling on n9 .. | 02:21 |
MSameer | i did the initial port, rainisto did some fixes and jani is now reworking all the crap I added :D | 02:21 |
MSameer | Nirkus: all QML components have that | 02:21 |
artemma | community work - totally cool for getting something to new platform quickly | 02:21 |
MSameer | Nirkus: Component.onCompleted: | 02:22 |
jani | one app had this alarm thing when you actually approached the stop you need to get off. | 02:22 |
artemma | Nirkus: onCompleted is so called attached property. Attached by Component. Hence it is actually Component.onCompleted | 02:22 |
*** Tumeez has joined #sailfishos | 02:23 | |
artemma | Nirkus: see for example here: https://github.com/amarchen/Wikipedia/blob/master/src/qml/pages/MainWikipediaPage.qml#L268 | 02:23 |
jani | would have started earlier with this but a) never got hired and b) did not pre-order so had to wait for dna to start selling it.. | 02:23 |
*** jjarven has quit IRC | 02:23 | |
jani | and yeah, so far, quite awesome ;) | 02:24 |
Nirkus | artemma: ah ok, so it is attached by me stating the Compontent.onCompleted? | 02:24 |
artemma | it is attached by Component. It is one of the object properties. You can set a function/code to this property | 02:25 |
artemma | just as you would do for onClicked | 02:25 |
artemma | Since every pure QML object (and all non-pure ones too I think) is created by Component, they will all have this property | 02:26 |
*** Morpog_Mobile has joined #sailfishos | 02:26 | |
jani | btw, is there any good pattern on how to isolate qml from .js code? I sorta dont like it that the ui declarations contain event code .. | 02:26 |
*** joecool has joined #sailfishos | 02:26 | |
artemma | jani: My primary pattern is to use states as much as possible | 02:29 |
*** furikku has joined #sailfishos | 02:29 | |
artemma | that gets rid from a lot of tricky code | 02:29 |
artemma | and if there's a lot of pure JS logic, that can go to a JS library | 02:30 |
*** Pat_o has quit IRC | 02:31 | |
jani | ok, will have to check on how to utilize states - still learning | 02:33 |
*** ericcc has quit IRC | 02:35 | |
*** ericcc has joined #sailfishos | 02:36 | |
*** ezech has quit IRC | 02:37 | |
Nirkus | the jolla camera seems to be pretty b*tchy | 02:37 |
Nirkus | is there a cenvenient way to debug runtime values of enums? | 02:38 |
Nirkus | s/cenvenient/convinient/ | 02:38 |
*** ericcc has quit IRC | 02:38 | |
*** jjarven has joined #sailfishos | 02:39 | |
Nirkus | argh, i should recharge my brain-thingy | 02:39 |
MSameer | Nirkus: what's with enums? | 02:41 |
MSameer | jani: a lot of the js code can be replaced by stuff from QtLocation and QtPositioning | 02:42 |
*** Pat_o has joined #sailfishos | 02:42 | |
MSameer | jani: I don't remember all the details now but that was my impression | 02:42 |
MSameer | jani: that would kill some js code | 02:42 |
jani | MSameer: havent got that far on familiarizing the whats in the codebase, just wanted to get it first into usable state .. albeit, i did notice that there's quite a few qml files that do not seem to be even used anywhere. | 02:44 |
jani | but good to point that out. qtpositioning is already in use.. | 02:45 |
MSameer | yes | 02:46 |
jani | thus, not going to submit to store anytime soon as its not yet accepted.. | 02:46 |
MSameer | might be worth checking the code for n9 and sailfish so you can see the changes I did | 02:46 |
Nirkus | MSameer: i am trying to get the actual enum declarations to interpret runtime values | 02:46 |
MSameer | Nirkus: I don't get you :/ | 02:46 |
Nirkus | MSameer: :o) while debugging, how do i convert the runtime value of an enum (the number) into the "semantic" value? | 02:48 |
MSameer | the first enum value is 0 | 02:48 |
Nirkus | usually, i would use the declaration of the enum / header files | 02:48 |
MSameer | so enum { Foo, Bar, Zot } | 02:48 |
MSameer | Foo = 0, Bar = 1, ... | 02:48 |
jani | db handling is quite funky atleast | 02:49 |
*** b0bben has joined #sailfishos | 02:49 | |
MSameer | jani: was planning to kill that and use QSettings | 02:49 |
Nirkus | MSameer: and how do i find the corresponding declaration using this Sailfish IDE thingy? | 02:49 |
jani | "select first to check if it exists, insert if that fails" =) | 02:49 |
Nirkus | :) | 02:49 |
MSameer | Nirkus: that I don't know really. I don't use that IDE | 02:49 |
MSameer | i use emacs + sb2 directly | 02:50 |
MSameer | and test on phone | 02:50 |
MSameer | final RPM built using Mer community OBS | 02:50 |
Nirkus | sb2? | 02:50 |
MSameer | scratchbox2 | 02:50 |
jani | scratchbox ;) | 02:50 |
MSameer | it's inside the build vm | 02:51 |
jani | never got used to sb2 .. | 02:51 |
jani | nor obs. | 02:51 |
MSameer | jani: had to use it for jolla. quite easy if you manage to wrap your head around it | 02:51 |
MSameer | jani: obs is cool but also once you wrap your mind around it | 02:51 |
Nirkus | mhhhh | 02:52 |
jani | it was driven for harmattan too at one point but gladly it never took air under its wings. | 02:52 |
MSameer | obs is a build system. you give it a _service file which tells it where to get the code from or you give it tarball + spec and it gives you an RPM | 02:52 |
MSameer | and obs has a command line client too ;) | 02:52 |
*** b0bben has quit IRC | 02:53 | |
jani | preferred sb1, it was so much clearer for me, even with all the shitty parts. | 02:53 |
artemma | jani: in Jopas when you are in the map it'd be cool if the *current* point would be highlighted somehow | 02:54 |
jani | there is a red dot in the map ? gps might require toggling off and on to make it work - didnt check if its a bug somewhere .. | 02:55 |
jani | but the feature is there .. | 02:55 |
artemma | if you are into just command line builds (local sb2, not obs), helloworld pro has the copy-pastable instructions | 02:55 |
jani | i have good enough osx with ssd, i can manage with qtcreator atm =) | 02:56 |
artemma | jani, I mean when you navigate proposed route with right-left buttons. There's no visual change when you do this right-left except for a screen move | 02:56 |
MSameer | jani: it'd be nice if you would add the spec file too under rpm/ | 02:56 |
MSameer | jani: I can then build it via obs if you want | 02:57 |
jani | autogenerated spec is good enough ? | 02:57 |
MSameer | i hope so | 02:57 |
jani | ok, i'll add it. | 02:57 |
MSameer | you need to enable positioning from settings in the phone itself | 02:57 |
MSameer | if that is not enabled then there is no way to get the position | 02:58 |
MSameer | building | 02:59 |
MSameer | https://build.merproject.org/package/show?package=jopas&project=home%3Amsameer%3Asailfish%3Aapps | 03:00 |
MSameer | done | 03:01 |
artemma | Do you guys know where/how the list of launcher shortcuts is stored? | 03:01 |
MSameer | https://build.merproject.org/package/binary?arch=armv8el&filename=harbour-jopas-0.1.0%2Bmaster.206.9034836-1.2.1.armv7hl.rpm&package=jopas&project=home%3Amsameer%3Asailfish%3Aapps&repository=sailfishos_1.0.0.5_latest_armv7hl | 03:01 |
MSameer | artemma: all launchers? | 03:01 |
* artemma thinks of two coding tasks: sorting shortcuts alphabetically and a quick-search laumcher | 03:01 | |
MSameer | rpm -ql jolla-camera | grep desktop | 03:02 |
jani | MSameer: btw, peeked at your profile in linkedin, i know you =) | 03:02 |
MSameer | jani: i feel so but i failed to remember :( | 03:03 |
jani | i was in application framework .. long dreadlocks. | 03:04 |
mfulz | can I use a dynamic class somehow in qml? | 03:04 |
mfulz | I've a class that work with a list of other classes | 03:04 |
mfulz | these list of classes should be changed inside the qml | 03:04 |
MSameer | dreadlocks? | 03:05 |
jani | meegotouch, maintained ruby and testing tools and did alot of integration stuff. | 03:05 |
MSameer | YES | 03:06 |
jani | rasta | 03:06 |
MSameer | now I do remember :) | 03:06 |
*** ericcc has joined #sailfishos | 03:07 | |
MSameer | mfulz: you can make those other classes properties? | 03:07 |
MSameer | s/you can/can you/ | 03:07 |
MSameer | jani: good old days of harmattan and bad days of flop | 03:07 |
mfulz | do you have a link which describes it? | 03:07 |
jani | well, it was fun while it lasted =) | 03:08 |
MSameer | not really. I don't really understand what you are trying to achieve | 03:08 |
mfulz | ok I'll try to explain in more detail: | 03:08 |
mfulz | I've a class which acts as a model for the qml listview (QAbstractListModel) | 03:08 |
mfulz | in this class I've a list of connection objects (classes that holds the config for a connection) | 03:09 |
jani | nice, i can see the rpmlint results | 03:09 |
mfulz | so if a value like gateway needs to be updated inside of these list, how can I do it? | 03:09 |
mfulz | atm. I just know to pass a specific instance of a class to the qml like: view->rootContext()->setContextProperty("FileChooserModel", &model); | 03:10 |
MSameer | mfulz: a better approach would be to have the QAbstractListModel expose all the stuff | 03:10 |
mfulz | ok so perhaps using a struct instead of the class for a connection then | 03:10 |
MSameer | mfulz: actually wait. A standard C++ Qt model so you can emit valueChanged() signal and the view should catch up | 03:11 |
mfulz | hum never done that before | 03:11 |
MSameer | mfulz: you might like to check QStandardModel | 03:12 |
mfulz | but it's more the other way around here: Changes only happen over the gui | 03:12 |
mfulz | ah ok I'll have a look | 03:12 |
MSameer | QStandardItemModel | 03:12 |
MSameer | where each node is an instance of QStandardItem | 03:12 |
*** Andy80 has joined #sailfishos | 03:12 | |
MSameer | you manipulate that and qt does all the magic | 03:12 |
MSameer | mfulz: so you want to update the gui when the conf changes or you want to update the conf when the gui gets edited? | 03:13 |
mfulz | I want to update the conf when the gui gets edited | 03:13 |
MSameer | that's different | 03:13 |
MSameer | you need to implement some C++ glue to write the actual file | 03:14 |
mfulz | I guess I'll do it over the listmodel and let it use an index which holds the selected item | 03:14 |
MSameer | so you have a list of files which you show via a file chooser model | 03:14 |
mfulz | ah sorry the filechooser was just an example - this is working already | 03:15 |
mfulz | I'll need to manage connections now | 03:15 |
mfulz | using a listview for all connections shown by name | 03:15 |
mfulz | and when selecting for editing then the connection settings itself should be changeable via the gui and stored afterwards via qsettings | 03:16 |
MSameer | and when a connections gets tapped, you go to the edit dialog? | 03:16 |
mfulz | at the start yes | 03:16 |
MSameer | mfulz: that's easy | 03:16 |
mfulz | how ? :) | 03:16 |
*** Andy80 has quit IRC | 03:16 | |
MSameer | mfulz: your settings class should have a Q_PROPERTY() per property you want to show | 03:16 |
MSameer | Q_PROPERTY(QString host READ host WRITE setHost NOTIFY hostChanged); | 03:17 |
MSameer | so you define a new property called host of type QString | 03:17 |
MSameer | with a setter called setHost(QString) and a getter: QString host() | 03:17 |
MSameer | i don't know how to explain that :/ | 03:18 |
mfulz | I know the real basic about such property | 03:18 |
MSameer | cool | 03:18 |
mfulz | but I'm missing something for the understanding | 03:18 |
MSameer | what are you missing? | 03:18 |
mfulz | because as said via the setContextProperty I just can make an instance visible to the qml? | 03:19 |
MSameer | in QML, when you set the host property, setHost() C++ method will get called | 03:19 |
mfulz | ah now I got it | 03:19 |
MSameer | mfulz: you need a model and the model holds a bunch of those objects | 03:19 |
mfulz | I can wrap that around directly in my QAbstractListModel | 03:20 |
MSameer | edit dialog edits one of those | 03:20 |
mfulz | and select it over an index a.e. | 03:20 |
MSameer | what I do is I define a new role for the model called "connection" and then in my list delegate I access connection which returns the C++ object itself | 03:21 |
MSameer | and then I can manipulate it | 03:21 |
MSameer | pass it around to the edit dialog... etc | 03:21 |
mfulz | ah that's what I wanted todo | 03:21 |
MSameer | but take care to set the C++ ownership otherwise QML might do garbage collection and destroy the object | 03:22 |
mfulz | but how can I pass an object back from the C++? | 03:22 |
MSameer | via a role | 03:22 |
MSameer | just a sec | 03:22 |
MSameer | mfulz: https://github.com/nemomobile/qtgrilo/blob/master/declarative/grilomodel.cpp#L51 | 03:23 |
mfulz | and I can pass a whole class instance back to qml via this? | 03:24 |
MSameer | yes | 03:24 |
MSameer | grilomodel.cpp has a new role called media | 03:24 |
MSameer | and each delegate media is a QObject subclass that get fetched from ::data() | 03:24 |
mfulz | ah great so going with a normal QObject derived class I can return via the role and use it like I passed it over via setContextProperty? | 03:26 |
MSameer | mfulz: https://github.com/nemomobile/qtgrilo/blob/master/example/tracker.qml#L46 | 03:26 |
MSameer | mfulz: its a model you can use with ListView and each delegate will get its own object | 03:26 |
mfulz | cool thank you very much | 03:26 |
MSameer | the link to the QML code I gave shows how the delegate accesses the media object | 03:27 |
MSameer | console.log(media.url) <-- | 03:27 |
MSameer | you can also define a separate role for each object property but that pollutes the delegate namespace a bit | 03:28 |
MSameer | so I don't like it all the time | 03:28 |
mfulz | yep I did it for my filechooser because I just needed name + type | 03:28 |
mfulz | but for the connection I've 10+ properties which would become ugly | 03:29 |
MSameer | just make sure you set Cpp ownership otherwise you might get random crashes | 03:29 |
mfulz | how is this done? | 03:29 |
MSameer | set a parent for the QObject subclass and Cpp ownership | 03:29 |
MSameer | in the model example there is a ::get() call | 03:30 |
MSameer | https://github.com/nemomobile/qtgrilo/blob/master/declarative/grilomodel.cpp#L94 | 03:30 |
mfulz | QQmlEngine::setObjectOwnership(media, QQmlEngine::CppOwnership); ? | 03:30 |
jani | does spectacle have any decent docs somewhere? mainly looking for changelog support atm and how it works .. only found this https://gitorious.org/meego-developer-tools/spectacle/source/9795a58a91170f49970d8fd76f8c5c15aea7db60:README.md but it doesnt really mentioned anything about changelogs .. | 03:30 |
MSameer | mfulz: yes that's needed to prevent QML runtime from garbage collecting and destroying those objects | 03:31 |
mfulz | and where is it needed? | 03:31 |
MSameer | jani: check with lbt but he's asleep now | 03:31 |
MSameer | mfulz: just set it before returning the object | 03:31 |
jani | ok, i'll ask him later then. | 03:31 |
mfulz | ah forget it understood | 03:31 |
mfulz | thank you very much for the help | 03:32 |
MSameer | glad to be of help | 03:32 |
MSameer | i will go get some rest | 03:32 |
MSameer | it's past 5 am | 03:32 |
MSameer | cya! | 03:32 |
mfulz | me too | 03:32 |
mfulz | gn8 @all | 03:32 |
*** mfulz has quit IRC | 03:35 | |
*** Jettis has quit IRC | 03:39 | |
*** Jettis has joined #sailfishos | 03:41 | |
artemma | MSameer: Skypekit for armv7 seems to be still available (was it you who was interested?) http://developer.skype.com/skypekit/development-guide/skype-kit-runtime-versions#linarmv7 | 03:48 |
*** Morpog_Mobile has quit IRC | 04:04 | |
jani | damn.. 6am. i should start sleeping -4hours ago. | 04:04 |
jani | g'nite. | 04:04 |
*** Morpog_Mobile has joined #sailfishos | 04:12 | |
*** Andy80 has joined #sailfishos | 04:13 | |
*** Andy80 has quit IRC | 04:17 | |
*** Andy80 has joined #sailfishos | 05:14 | |
*** Andy80 has quit IRC | 05:18 | |
*** triggerhappy has joined #sailfishos | 05:24 | |
*** martyone_ has joined #sailfishos | 05:30 | |
*** promulo has joined #sailfishos | 05:59 | |
*** Andy80 has joined #sailfishos | 06:14 | |
*** MFaro-Tusino has joined #sailfishos | 06:15 | |
*** Andy80 has quit IRC | 06:19 | |
*** promulo has quit IRC | 06:21 | |
*** b0bben has joined #sailfishos | 06:25 | |
*** b0bben has quit IRC | 06:30 | |
*** amonk has quit IRC | 06:37 | |
*** ericcc has quit IRC | 06:44 | |
*** Andy80 has joined #sailfishos | 07:15 | |
*** Andy80 has quit IRC | 07:20 | |
*** ericcc has joined #sailfishos | 07:21 | |
*** planasb has quit IRC | 07:28 | |
*** planasb has joined #sailfishos | 07:30 | |
*** ericcc has quit IRC | 07:36 | |
*** ericcc has joined #sailfishos | 07:37 | |
*** wellumakinen has joined #sailfishos | 07:44 | |
*** b0bben has joined #sailfishos | 07:47 | |
*** martyone_ has quit IRC | 07:53 | |
*** c0ck4m0u53 has joined #sailfishos | 07:58 | |
*** b0bben has quit IRC | 08:04 | |
*** b0bben has joined #sailfishos | 08:04 | |
*** b0bben has quit IRC | 08:09 | |
*** Pat_o has quit IRC | 08:11 | |
*** leinir has quit IRC | 08:11 | |
*** leinir_ has joined #sailfishos | 08:11 | |
*** b0bben has joined #sailfishos | 08:15 | |
*** b0bben has quit IRC | 08:19 | |
coderus | artemma: how your keyboard listener? | 08:20 |
*** Pat_o has joined #sailfishos | 08:26 | |
*** mk2soldier has joined #sailfishos | 08:29 | |
*** dhbiker has joined #sailfishos | 08:34 | |
*** b0bben has joined #sailfishos | 08:35 | |
*** Eismann has quit IRC | 08:38 | |
*** Bloob has joined #sailfishos | 08:40 | |
*** Hurrian has quit IRC | 08:49 | |
*** wellumakinen has quit IRC | 08:49 | |
*** alexxy has quit IRC | 08:50 | |
*** fk_lx has joined #sailfishos | 08:55 | |
*** alexxy has joined #sailfishos | 08:55 | |
*** wellumakinen has joined #sailfishos | 08:58 | |
*** itbaron has joined #sailfishos | 09:00 | |
*** Venemo_ is now known as Venemo | 09:01 | |
*** wellumakinen has quit IRC | 09:16 | |
*** Tumeez has quit IRC | 09:24 | |
*** Sfiet_Konstantin has joined #sailfishos | 09:26 | |
*** dhbiker has quit IRC | 09:27 | |
*** SfietKonstantin has joined #sailfishos | 09:31 | |
*** Sfiet_Konstantin has quit IRC | 09:31 | |
*** Tumeez has joined #sailfishos | 09:31 | |
coderus | is there any way to disable vkb popup when textarea getting tapped/focussed? | 09:31 |
Pnuu | coderus: https://together.jolla.com/question/526/dont-enforce-focus-to-textfield/ | 09:32 |
coderus | Pnuu: its different | 09:34 |
*** SfietKonstantin has quit IRC | 09:36 | |
*** zhost has joined #sailfishos | 09:37 | |
*** ericcc_ has joined #sailfishos | 09:37 | |
coderus | i'm asking about Qml/Silica development | 09:38 |
*** ericcc has quit IRC | 09:39 | |
*** Pat_o has quit IRC | 09:40 | |
Pnuu | coderus: ah, right | 09:41 |
*** martyone_ has joined #sailfishos | 09:42 | |
*** b0bben has quit IRC | 09:48 | |
*** b0bben has joined #sailfishos | 09:49 | |
*** Hurrian has joined #sailfishos | 09:51 | |
*** b0bben has quit IRC | 09:53 | |
*** dhbiker has joined #sailfishos | 09:54 | |
*** Pat_o has joined #sailfishos | 09:55 | |
*** b0bben has joined #sailfishos | 09:55 | |
*** martyone_ has quit IRC | 09:57 | |
*** stephg has joined #sailfishos | 10:03 | |
coderus | i'm just esarching most easy way to display emoji keyboard panel | 10:06 |
coderus | its very tricky in SIlica | 10:06 |
*** SfietKonstantin has joined #sailfishos | 10:11 | |
*** b0bben has quit IRC | 10:12 | |
*** b0bben has joined #sailfishos | 10:13 | |
*** dhbiker has quit IRC | 10:14 | |
jani | coderuns: one solution (albeit not what you asked) would be to write a emoji plugin to maliit but wiki says sdk has been removed. | 10:15 |
jani | s/coderuns/coderus/ =) | 10:15 |
*** Zotan has quit IRC | 10:17 | |
*** b0bben has quit IRC | 10:17 | |
*** triggerhappy has quit IRC | 10:18 | |
*** triggerhappy_ has joined #sailfishos | 10:18 | |
*** dhbiker has joined #sailfishos | 10:18 | |
*** dhbiker has quit IRC | 10:20 | |
*** SfietKonstantin has quit IRC | 10:22 | |
*** kor has quit IRC | 10:27 | |
*** amizraa has quit IRC | 10:28 | |
*** SfietKonstantin has joined #sailfishos | 10:29 | |
*** kor has joined #sailfishos | 10:35 | |
*** SfietKonstantin has quit IRC | 10:38 | |
*** stephg has quit IRC | 10:41 | |
*** zhost has quit IRC | 10:42 | |
coderus | why still different TextEdit and TextInput in Qt5? is it so hard to implement property "multiline" for TextEdit? | 10:42 |
*** mk2soldier has quit IRC | 10:48 | |
*** KangOl has joined #sailfishos | 10:51 | |
*** Superpelican_ has joined #sailfishos | 10:52 | |
*** Pat_o has quit IRC | 10:55 | |
*** sdjayna has quit IRC | 10:57 | |
*** Superpelican_ has quit IRC | 10:57 | |
*** irtu has quit IRC | 10:58 | |
*** Superpelican_ has joined #sailfishos | 10:58 | |
*** dhbiker has joined #sailfishos | 11:03 | |
*** matoking has joined #sailfishos | 11:06 | |
*** Morpog_ has joined #sailfishos | 11:17 | |
*** matoking has quit IRC | 11:25 | |
*** Superpelican_ has quit IRC | 11:33 | |
artemma | MSameer: Skypekit for armv7 seems to be still available (was it you who was interested?) http://developer.skype.com/skypekit/development-guide/skype-kit-runtime-versions#linarmv7 | 11:36 |
jani | lbt: awake ? is does spectacle support passing down changelog to spec ? readme didnt mention that .. | 11:43 |
*** b0bben has joined #sailfishos | 11:43 | |
*** b0bben_ has joined #sailfishos | 11:45 | |
jani | another, does OBS still need manual verification after bugzilla account has been created ? | 11:46 |
*** DarkSim has joined #sailfishos | 11:47 | |
*** Zotan has joined #sailfishos | 11:47 | |
*** leinir_ is now known as leinir | 11:48 | |
*** mk2soldier has joined #sailfishos | 11:48 | |
*** Zotan has quit IRC | 11:50 | |
*** b0bben_ has quit IRC | 11:50 | |
*** Zotan has joined #sailfishos | 11:50 | |
*** mk2soldier has quit IRC | 11:51 | |
*** datagutt has quit IRC | 11:54 | |
*** mk2soldier has joined #sailfishos | 11:55 | |
jani | and bite me .. why on earth does building on qtcreator keep on adding entries to yaml that are already present ? for example, it adds /usr/bin/ which clearly shouldnt be added as i dont want my rpm to own /usr/bin/ .. | 12:00 |
jani | mm take that back, issue with project file. | 12:03 |
*** zhost has joined #sailfishos | 12:04 | |
*** louisdk has joined #sailfishos | 12:05 | |
suy | For me, rebuilding (not the rpm, but just the "copy files" deployment method), edits the .yaml file again and again :-( | 12:05 |
*** M4rtinK has joined #sailfishos | 12:06 | |
suy | is freaking annoying, because I always see files dirty in the git repo | 12:06 |
jani | suy: it adds paths to it ? | 12:06 |
suy | jani: it changes them of place. Overall contents the same... | 12:07 |
*** louis__ has joined #sailfishos | 12:07 | |
suy | *are the same, just in different order | 12:07 |
jani | yeah, i had same .. here's my hypothesis and possible fix: | 12:08 |
coderus | just dont use yaml is solution :) | 12:08 |
*** Andy80 has joined #sailfishos | 12:08 | |
*** artemma has quit IRC | 12:08 | |
jani | i had icon desktop and target path's defimned in the pro file .. but these are automatically added if you have CONFIG += sailfishapp - you need to just define the names and content for those, not paths .. | 12:09 |
jani | i just did that, eg. removed icon.path, desktop.path and target.path and no more yaml or spec changes after a build .. | 12:09 |
suy | jani: I only have desktop.file, the other files are in OTHER_FILES | 12:10 |
jpnurmi | i don't have those specified and it still randomly changes every now and then | 12:10 |
suy | coderus: the yaml is there because of the template I started with. I thought it would be necessary if I need to create the RPM and save some .spec work | 12:10 |
*** zhxt has joined #sailfishos | 12:12 | |
coderus | i'm not using yaml, i'm writing spec files myself :) | 12:12 |
*** Morpog_Mobile has quit IRC | 12:15 | |
*** KangOl has quit IRC | 12:15 | |
*** spider-mario has joined #sailfishos | 12:18 | |
*** dirkvl_ has joined #sailfishos | 12:18 | |
dirkvl_ | afternoon! | 12:18 |
*** spider-mario has quit IRC | 12:18 | |
*** KangOl has joined #sailfishos | 12:18 | |
dirkvl_ | anyplace i can find some commands for the i2c | 12:19 |
dirkvl_ | such as reading out a specific id | 12:19 |
*** matoking has joined #sailfishos | 12:19 | |
*** spider-mario has joined #sailfishos | 12:20 | |
dirkvl_ | or waiting for thing to happen on the interrupt line and then reading? | 12:20 |
*** b0bben has quit IRC | 12:21 | |
*** artemma has joined #sailfishos | 12:22 | |
*** arcean has joined #sailfishos | 12:24 | |
*** gabriel9 has joined #sailfishos | 12:24 | |
*** dhbiker has quit IRC | 12:29 | |
*** dhbiker has joined #sailfishos | 12:32 | |
*** Morpog_Mobile has joined #sailfishos | 12:32 | |
dirkvl_ | any i2c experts here?? | 12:34 |
*** MFaro-Tusino has left #sailfishos | 12:39 | |
*** matoking has quit IRC | 12:40 | |
tbr | dirkvl_: standard tools should work, so documentation for other embedded linux distros should apply | 12:45 |
dirkvl_ | okay good | 12:46 |
dirkvl_ | can you point me in the right direction? :) | 12:47 |
*** gabriel9 has quit IRC | 12:47 | |
dirkvl_ | trying to build a keyboard, but software is not my specialty | 12:49 |
dirkvl_ | got 3.3v out working | 12:49 |
dirkvl_ | recognined i2c component | 12:49 |
dirkvl_ | now trying to get my phone to listen to the interrupt line | 12:49 |
tbr | I'd now attempt to use the internet search engine of my least distrust, so you could as well. | 12:50 |
tbr | as to the interrupt line this might be qualcomm specific | 12:50 |
dirkvl_ | yeah i've been using my ugooglizer for some time | 12:52 |
dirkvl_ | but no commands my phone likes ;) | 12:52 |
*** mk2soldier has quit IRC | 13:03 | |
lbt | jani: hey | 13:08 |
*** super_hirsute has quit IRC | 13:09 | |
lbt | so ... changelogs .. not sure. Our main approach to building is to keep the changelog out of the yaml/spec file and autogenerate it most of the time from git logs | 13:10 |
lbt | we use a seperate .changes file for that | 13:10 |
lbt | OBS appends it to the spec dynamically at build time | 13:11 |
lbt | suy: the point of the yaml is to provide a formally structured file for spec data | 13:12 |
lbt | that *should* make QtC's life easier | 13:12 |
lbt | but apparently even managing the yaml is quite hard - I'm just glad QtC doesn't have to support generic .spec files : | 13:13 |
lbt | :) | 13:13 |
jani | ok. | 13:13 |
lbt | the SDK is designed *not* to need yaml files - if you're a spec expert then just drop it. OTOH if you're working on community stuff and want to make life easier for non-spec people then it's good | 13:14 |
lbt | IMNSHO | 13:14 |
jani | it just that a) building spec from yaml seems to remove changelog alltogether and rpmlint on obs prints out warning if its not there. | 13:14 |
lbt | I bet most of the sailfish devs have no real clue about the spec files they've been making | 13:14 |
jani | s/a)// | 13:14 |
lbt | is there a .changes fil | 13:14 |
lbt | e | 13:14 |
lbt | cold fingers | 13:15 |
jani | another thing, order requirements changes from build to build, so building a package ends up with dirty .spec and .yaml. | 13:16 |
lbt | the QtC code is less than optimal | 13:17 |
jani | atleast my repo doesnt have .chagnges .. | 13:17 |
jani | file | 13:17 |
*** dirkvl_ has quit IRC | 13:17 | |
* lbt has a look | 13:17 | |
jani | and last, does obs access still require manual activation ? i registered to mer bugzilla but obs complains about authentication failure .. | 13:18 |
jani | i think i had access from my nokia email but ... well, im not particularry using it anymore ;) | 13:18 |
artemma | suy: they promised QtC will stop corrupting your .yaml/.spec on every save. Or that there will be at least an option for it | 13:20 |
jani | artemma: thats what i was just talking with lbt .. | 13:20 |
artemma | ok :) | 13:20 |
*** KangOl has quit IRC | 13:29 | |
*** matt_1979 has joined #sailfishos | 13:29 | |
lbt | "We have no right to distribute it so I would avoid any official statements about how to get it on your device" | 13:30 |
lbt | wrong channel :) | 13:30 |
jani | "uups" =) | 13:31 |
lbt | np ... just a general comment about stuff that can't be distributed | 13:32 |
lbt | basically it's a "no comment" | 13:32 |
lbt | however it would be nice if Konversation didn't just close windows with some random accidental keystroke :) | 13:33 |
*** b0bben_ has joined #sailfishos | 13:34 | |
jani | 99% change the comment was about image for n9 =) | 13:34 |
*** jjarven has quit IRC | 13:38 | |
*** b0bben_ has quit IRC | 13:39 | |
*** DarkSim has quit IRC | 13:41 | |
*** KangOl has joined #sailfishos | 13:42 | |
*** arcean_ has joined #sailfishos | 13:43 | |
*** arcean has quit IRC | 13:44 | |
entil | http://harmattan-dev.nokia.com/docs/platform-api-reference/showdoc.php?pkn=libcommhistory&wb=daily-docs&url=Li94bWwvZGFpbHktZG9jcy9saWJjb21taGlzdG9yeQ%3D%3D | 13:48 |
entil | is that the up to date documentation online? | 13:48 |
*** jjarven has joined #sailfishos | 13:53 | |
entil | ok, I figured out that doxygen . is enough to generate a browsable doc ;P | 13:55 |
*** sequantz has joined #sailfishos | 14:03 | |
lbt | Thoughts : https://together.jolla.com/question/5762/add-repository-to-sailfish-where-users-can-contribute-directly | 14:03 |
*** louisdk has quit IRC | 14:06 | |
MSameer | artemma: they don't accept new accounts :/ | 14:08 |
artemma | ah | 14:09 |
MSameer | artemma: so the only solution for me would be extracting android skype binaries and wrap them somehow but it's really hard without code or docs | 14:09 |
artemma | jolla could possibly do it as a company.. | 14:10 |
MSameer | The Skype Developer program is not accepting new registrations. | 14:10 |
MSameer | jolla can not do the crap I just wrote | 14:10 |
MSameer | I can do it however by myself | 14:10 |
*** wickwire has joined #sailfishos | 14:10 | |
artemma | what if existing developer (me or somebody else) wants to build s new app? | 14:11 |
MSameer | if you have an account already then you can try to login and see | 14:11 |
artemma | I could download binaries for you maybe | 14:11 |
MSameer | but I don't have that so I cannot do anything | 14:11 |
MSameer | if you could download them along with docs then I can try to do something | 14:11 |
artemma | though there was something about keys, like dev ones can work for 90 days only or something | 14:12 |
artemma | license explicitly prohibits use of skypekit for mobile apps | 14:13 |
*** atiti has quit IRC | 14:13 | |
artemma | sorry, I can't download kit for you then. Technically I think I could, but won't like to have my name at explicit license break | 14:14 |
artemma | maybe some other skype dev is less sensitive | 14:14 |
MSameer | artemma: docs maybe? | 14:15 |
artemma | docs I could do for you. There are several web pages, will scrap them somehow | 14:15 |
MSameer | I can extract binaries from anywhere but I need docs | 14:15 |
MSameer | artemma: thank you | 14:15 |
MSameer | this channel is not logged and I took nothing from you ;) | 14:15 |
artemma | it's been years since I used web site downloaders :) | 14:16 |
artemma | Don't quite even remember the app names | 14:16 |
*** louisdk has joined #sailfishos | 14:21 | |
*** KangOl has quit IRC | 14:24 | |
*** dhbiker has quit IRC | 14:25 | |
*** dhbiker has joined #sailfishos | 14:29 | |
MSameer | artemma: don't bother if it's a lot of hassle | 14:31 |
*** KangOl has joined #sailfishos | 14:34 | |
*** hcarrega has joined #sailfishos | 14:34 | |
*** planasb has quit IRC | 14:40 | |
*** planasb has joined #sailfishos | 14:41 | |
*** artemma has quit IRC | 14:49 | |
*** artemma has joined #sailfishos | 14:50 | |
entil | more questions... if I want to use classes from libcommhistory, how do I do that? make my project aware of the other project somehow? | 14:52 |
entil | I'd expect to add something to SOURCES and HEADERS in the .pro file but that'd be local to this one setup, yes? | 14:54 |
coderus | Pnuu: ping | 14:56 |
Pnuu | pong | 14:56 |
coderus | entil: do you have development headers for libcommhistory | 14:56 |
coderus | Pnuu: so there is soure=ces of maliit? | 14:57 |
entil | coderus: I have a git clone | 14:57 |
entil | https://github.com/nemomobile/libcommhistory | 14:57 |
Pnuu | coderus: wut, what? :-) | 14:57 |
coderus | entil: you need to install libcommhistory-qt5-devel | 14:58 |
coderus | Pnuu: maliit | 14:58 |
Pnuu | is that the input thingy? | 14:58 |
entil | coderus: on the vm? | 14:58 |
Pnuu | coderus: sorry, I've got no clue what you're talking about :-D | 14:58 |
entil | or the sdk somehow? | 14:58 |
*** KangOl has quit IRC | 15:00 | |
coderus | entil: yes | 15:01 |
coderus | Pnuu: you just updated my together questoin, i thought you know :) | 15:01 |
entil | coderus: I'm probably googling wrong cuz I can't find anything. any tips on what to do, concretely? | 15:01 |
Pnuu | coderus: which one? I tend to add quite a lot of tags to together.. | 15:02 |
*** piee has joined #sailfishos | 15:03 | |
coderus | Pnuu: adding custom keyboard to application :) | 15:04 |
entil | https://sailfishos.org/develop-faq.html that's the one? my sailfishos tomcat thing just gives 404 on everything | 15:04 |
*** zhxt has quit IRC | 15:04 | |
Pnuu | coderus: ah, yeah, I added "keyboard-layouts" to tags | 15:04 |
coderus | entil: go to SDK Control Center, select target, write libcommhistory in search field, install :D | 15:04 |
Pnuu | coderus: and changed "applicatoin" to "applications" in the topic | 15:05 |
entil | fuu, all I find on google is "go to the control center"... yeah, I would if I knew where it is :D it's probably the tomcat crap that doesn't work at :/ | 15:05 |
entil | *at all | 15:05 |
Pnuu | https://together.jolla.com/questions/5800/revisions/ | 15:06 |
*** wellumakinen has joined #sailfishos | 15:07 | |
*** artemma has quit IRC | 15:09 | |
*** lbt has quit IRC | 15:10 | |
*** lbt has joined #sailfishos | 15:10 | |
entil | Tomcat6 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat6 and CATALINA_BASE in /var/lib/tomcat6, following the rules from /usr/share/doc/tomcat6-common/RUNNING.txt.gz. | 15:11 |
entil | I'm guessing that should be something else | 15:11 |
entil | because I had this old tomcat installation from another project left over | 15:12 |
entil | coderus: thanks! I'm installing libcommhistory-qt5-devel now | 15:14 |
*** artemma has joined #sailfishos | 15:15 | |
entil | a simple test of #include "groupmanager.h" doesn't work though, I need something else as well? | 15:16 |
Elleo | entil: have you added a pkgconfig entry to your .pro? | 15:17 |
entil | Elleo: no, I have done nothing like this at all ever | 15:17 |
entil | first time for everything | 15:17 |
Elleo | entil: "PKGCONFIG += commhistory" (or whatever the actual pkgconfig name for that package is) | 15:18 |
*** M4rtinK has quit IRC | 15:18 | |
Elleo | might be libcommhistory or commhistory-qt5 or similar based on the package name | 15:18 |
entil | src/commhistory.pc says Name: libcommhistory | 15:19 |
Elleo | (take a look in /usr/lib/pkgconfig or list the devel package contents to find out | 15:19 |
*** M4rtinK2 has joined #sailfishos | 15:20 | |
entil | PKGCONFIG += libcommhistory based on that fails, though | 15:20 |
entil | do I need to run some kind of update thing to make the sdk aware of the new package? | 15:20 |
*** GeneralAntilles has quit IRC | 15:20 | |
*** leinir has quit IRC | 15:20 | |
entil | pkg-config I think is the usual program to run | 15:20 |
*** leinir has joined #sailfishos | 15:20 | |
Elleo | pkg-config is what gets run as part of the build process | 15:21 |
entil | wonder what causes this then | 15:21 |
Elleo | hang on, I'll just boot up the mersdk and have a look for myself | 15:21 |
entil | I manage the 486 target, type in libcommhistory, see I have libcommhistory-qt5 and libcommhistory-qt5-devel installed | 15:22 |
*** KangOl has joined #sailfishos | 15:22 | |
*** b0bben has joined #sailfishos | 15:22 | |
entil | when I click sync, thinking this is probably something about having installed the stuff in the wrong place, the most meaningful-looking message is "cannot delete non-empty directory: usr/bin" | 15:23 |
entil | now it claims the project is not configured and I have to do that again O_O | 15:23 |
Elleo | hang on, you said the file was commhistory.pc | 15:23 |
Elleo | so you want PKGCONFIG += commhistory | 15:23 |
Elleo | not PKGCONFIG += libcommhistory | 15:23 |
*** GeneralAntilles has joined #sailfishos | 15:23 | |
entil | https://github.com/nemomobile/libcommhistory/blob/master/src/commhistory.pc | 15:23 |
entil | I tried that, of course, and it says commhistory not found | 15:24 |
coderus | entil: first time developing apps? | 15:24 |
entil | coderus: on this platform, most certainly | 15:24 |
coderus | qt? | 15:24 |
entil | you ever need web done in django, I'm your man, but I've never done c++, qt or anything mobile before :D | 15:25 |
*** Morpog_Mobile has quit IRC | 15:25 | |
*** freedomrun has joined #sailfishos | 15:25 | |
coderus | well, its wrong choice to start development with plugins, modules,etc | 15:25 |
coderus | start with essentian things | 15:25 |
entil | I have flickables and a csv parser | 15:25 |
entil | imo a good way to learn is to actually have an application you want to get done, it solves a real problem (= keeps you motivated) and at the end of the day it's not just a copypasted tutorial | 15:26 |
coderus | well, what you need to get with commhistory? | 15:26 |
*** b0bben has quit IRC | 15:27 | |
entil | this is about reading sms data from the n900, exported to csv, so I want those imported into the jolla | 15:27 |
*** ponky_ has joined #sailfishos | 15:28 | |
*** valdur55_ has joined #sailfishos | 15:28 | |
*** zchydem_ has joined #sailfishos | 15:28 | |
*** Dima has joined #sailfishos | 15:28 | |
*** hoelzro_ has joined #sailfishos | 15:29 | |
*** tanghus_ has joined #sailfishos | 15:29 | |
coderus | there is also libcommhistory-qt5-declarative | 15:29 |
entil | https://github.com/mjtorn/jolla-morse | 15:30 |
entil | it's severely work in progress and I was thinking of sitting on it until it's somewhat done, now it's a collection of TODO | 15:30 |
entil | like the message class has to be replaced with commhistory's stuff, I was originally thinking of doing a conversion but it makes more sense to parse directly into the commhistory classes | 15:31 |
entil | that's a bit useless, though, if I can't get the damned thing visible in my project :D | 15:31 |
*** deztructor_ has joined #sailfishos | 15:31 | |
*** c0ck4m0u53 has quit IRC | 15:33 | |
*** M4rtinK2 has quit IRC | 15:33 | |
*** dhbiker has quit IRC | 15:33 | |
*** matt_1979 has quit IRC | 15:33 | |
*** Gilly has quit IRC | 15:33 | |
*** ponky has quit IRC | 15:33 | |
*** tanghus has quit IRC | 15:33 | |
*** hoelzro has quit IRC | 15:33 | |
*** Dima^ has quit IRC | 15:33 | |
*** valdur55 has quit IRC | 15:33 | |
*** zchydem has quit IRC | 15:33 | |
*** deztructor has quit IRC | 15:33 | |
Elleo | entil: err, you installed libcommhistory-qt5-devel, but you're looking at a pkgconfig file for libcommhistory | 15:34 |
Elleo | entil: I suspect what you want is commhistory-qt5 | 15:34 |
Elleo | (as the pkgconfig entry) | 15:34 |
*** isto has joined #sailfishos | 15:35 | |
hene- | what does jolla-morse do | 15:35 |
entil | hene-: hopefully one day it'll read in text messages exported from the n900 | 15:35 |
hene- | oh, okey | 15:35 |
lbt | entil: pin | 15:35 |
lbt | g | 15:35 |
entil | the csv parses now into my own Message objects, which is good enough for now until I start building the Group and Event classes soon | 15:35 |
lbt | the SDK control centre runs on the VM and is NATed to appear on 127.0.0.1:8080 | 15:36 |
lbt | if you have a local server running there then you need to change one or the other | 15:36 |
entil | lbt: yeah, I got that already, thanks :) | 15:36 |
lbt | OK, good | 15:36 |
lbt | just going through the backlog and spotted it | 15:37 |
entil | Elleo: thanks, you rule :) how did you get to that name? | 15:37 |
lbt | nb ... django's in use quite a bit around Mer | 15:37 |
entil | yeah, I worked with the guys back in the day, django 0.96 | 15:38 |
entil | been on the django road ever since | 15:38 |
Elleo | entil: by looking at the contents of libcommhistory-qt5-devel | 15:39 |
entil | the guys being marc dillon and stefano mosconi | 15:39 |
entil | Elleo: hmm.. I need to learn how to learn this obviously :P | 15:39 |
Elleo | entil: virtualbox is giving me some issues, so I just grabbed the rpm and ran "rpm -qlp libcommhistory-qt5-devel-1.6.27-35.9.Nemo.armv7l.rpm" | 15:39 |
*** fuz_ has quit IRC | 15:39 | |
entil | Elleo: ok, there's another .pc file | 15:39 |
Elleo | which lists all the file contents | 15:39 |
*** M4rtinK2 has joined #sailfishos | 15:39 | |
Elleo | including /usr/lib/pkgconfig/commhistory-qt5.pc | 15:39 |
lbt | ah :) | 15:39 |
*** dhbiker has joined #sailfishos | 15:39 | |
entil | it'd be real sweet if the sdk cc gave lists of files | 15:40 |
entil | sure I got the git clone and once I back off from irc I'll probably find the proper #include magic, but still | 15:40 |
*** Gilly has joined #sailfishos | 15:40 | |
lbt | entil: yup - I was planning quite some features around that but I've moved off SDK | 15:40 |
lbt | and fwiw that bit is in ruby | 15:40 |
lbt | but it's all on github for tinkering with | 15:40 |
entil | this is actually silly, but now that I got the package installed there, why doesn't it find header files? in trad. unix I'd make sure the include paths are ok, but what's up here? | 15:41 |
*** mk2soldier has joined #sailfishos | 15:41 | |
fk_lx | lbt: hi | 15:42 |
lbt | 'there' ? | 15:42 |
lbt | fk_lx: hey | 15:42 |
lbt | entil: the SDK is quite nested | 15:42 |
lbt | your host runs a VM which has a target inside | 15:42 |
Elleo | entil: what isn't finding the headers? I'd guess qtcreator might not find them since they're installed in the build vm, rather than on your local machine, but I'm not certain | 15:42 |
fk_lx | lbt: I've noticed that in newest SDK the RPMs that are build no longer land in RPMS folder of project but instead some build-* folder is created in home directory | 15:42 |
Elleo | dunno how much magic is going on between the two | 15:42 |
lbt | fk_lx: yeah - I found that this morning | 15:42 |
entil | Elleo: I thought I synced them, but maybe that doesn't mean what I think it does | 15:43 |
lbt | sync means if you ssh in and manual add stuff to the target, send it to QtC | 15:43 |
lbt | otherwise sync happens when needed | 15:43 |
entil | so that doesn't explain it | 15:43 |
lbt | ah : entil: virtualbox is giving me some issues, so I just grabbed the rpm and ran "rpm -qlp libcommhistory-qt5-devel-1.6.27-35.9.Nemo.armv7l.rpm" | 15:44 |
fk_lx | lbt: kinda sucks I used to put rpms on github with other project files, for those who want the latest version without waiting for Jolla Store and cannot build sources themselves for some reasons | 15:44 |
Elleo | entil: by sending it to QtC I think lbt means updating the info that QtC has on what packages, etc. are installed, not copying headers over | 15:44 |
lbt | entil: so you installed the devel package into the build VM, not the target | 15:44 |
Elleo | lbt: that line was from me, not entil | 15:45 |
Elleo | I was just finding the correct pkgconfig file for him | 15:45 |
entil | I found it by looking around the file system | 15:45 |
lbt | Elleo: I assumed you'd pastied his comment | 15:45 |
entil | it's supposed to be eg. #include "CommHistory/groupmanager.h" | 15:45 |
lbt | yeah, I see, oops | 15:45 |
Elleo | nah, that was me explaining how I'd found it for him | 15:45 |
lbt | Elleo: correct about updating QtC | 15:45 |
entil | it's apparently the top-level business that's in the include apth | 15:46 |
entil | *path | 15:46 |
Elleo | entil: is it not finding it when you build? | 15:46 |
Elleo | or is it just qtcreator saying it can't find it in the source highlighting stuff? | 15:46 |
entil | it highlighted the #include "groupmanager.h" (and variants thereof that I tried) and said it didn't find anything | 15:46 |
Elleo | entil: yeah, I suspect that's normal | 15:46 |
Elleo | because they don't exist on your computer, only on the vm | 15:46 |
entil | so I went digging around the file system to see if I can find clues | 15:46 |
entil | and I found it's situated in mjt@ishtar:~/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/commhistory-qt5/CommHistory$ | 15:47 |
entil | fsck, was meant to paste only the dir | 15:47 |
entil | whatever | 15:47 |
*** phaeron has quit IRC | 15:47 | |
entil | the solution is to #include "CommHistory/foo.h" | 15:47 |
entil | thanks a lot for your help, now I'm back on track :D | 15:47 |
Elleo | ah, maybe QtCreator is setup to automatically look for stuff in the targets then, didn't realise it did that | 15:47 |
*** matoking has joined #sailfishos | 15:47 | |
entil | btw, academic question, what if I had multiple projects and I would absolutely detest having libcommhistory in the other one, what would I do? add a new target? | 15:48 |
lbt | yes, QtC looks in targets | 15:48 |
fk_lx | lbt: not a big issue, but had to write a script to delete old RPMs and putting new in the right place ;-) | 15:48 |
lbt | entil: yes | 15:48 |
*** jhe__ has joined #sailfishos | 15:49 | |
*** zmc has quit IRC | 15:49 | |
entil | I'm also pretty sure my vbox vm is cluttered because I did the tutorial app before this and everything, there's probably an option somewhere to reset the image? | 15:49 |
*** isto has quit IRC | 15:49 | |
jhe__ | hi all! is caldav and carddav sync going to be part of mer, nemo or sailfish? | 15:49 |
*** isto has joined #sailfishos | 15:49 | |
lbt | jhe__: probably | 15:50 |
jhe__ | lbt: which one? | 15:50 |
lbt | nemo most likely | 15:50 |
lbt | they may even be there | 15:50 |
jhe__ | lbt: any idea when they are coming to sailfish? | 15:51 |
lbt | no, sorry | 15:51 |
jhe__ | lbt: ok, thanks anyway | 15:51 |
lbt | there's no reason people can't hack on them today afaik | 15:51 |
jhe__ | lbt: do you know if caldav4j would work if someone would just integrate it to calendar and contact - apps? | 15:53 |
lbt | I don't know the area well enough | 15:54 |
jhe__ | ok | 15:54 |
lbt | are you looking to work on it? | 15:54 |
lbt | or just interested? | 15:54 |
*** shanttu has joined #sailfishos | 15:55 | |
jhe__ | I have used caldav4j to integrate erp-system to davical server and was just wondering how much work it would require to do the same for my jolla phone | 15:55 |
jhe__ | but probably won't have time to actually make it happen | 15:57 |
lbt | OK | 15:57 |
jani | is there any benefit of listing qml files in .qrc or should it even be done ? | 15:57 |
*** piee has quit IRC | 15:59 | |
*** piee has joined #sailfishos | 16:01 | |
*** Andy80 has quit IRC | 16:02 | |
*** John24 has joined #sailfishos | 16:02 | |
John24 | hi guys :) | 16:02 |
*** Andy80 has joined #sailfishos | 16:02 | |
John24 | Would anyone be willing to help me out with a bit of qml? | 16:02 |
*** sdjayna has joined #sailfishos | 16:03 | |
coderus | jo sure | 16:04 |
coderus | just ask | 16:04 |
*** fuz_ has joined #sailfishos | 16:05 | |
John24 | I feel so stupid asking this, I have writen DX11 rendering engines but I am having hard time with silly date picker in QML. My issue is | 16:05 |
John24 | I got this following code : Button { id: button text: "Choose a date" onClicked: { var dialog = pageStack.push("Sailfish.Silica.DatePickerDialog", { date: new Date('2012/11/23') }) dialog.accepted.connect(function() { button.text = "You chose: " + dialog.dateText | 16:06 |
John24 | which asks user to pick a date using a datepicker dialog | 16:06 |
*** Andy80 has quit IRC | 16:07 | |
John24 | But for the love of it I got no idea how to access the individual elements as day, month and year, which I want to use to compare to a different date | 16:07 |
John24 | Essentially I want to comapre the date that user picked to todays date | 16:08 |
coderus | pastebin.com | 16:08 |
John24 | http://pastebin.com/jnMR0bWQ | 16:09 |
coderus | John24: there is dialog.day dialog.month dialog.year integer values and a dialog.date JavaScript Date() object | 16:10 |
John24 | I feel more stupid +1 | 16:13 |
coderus | jani: no profit. it will just take extra virtual memory if qrc compiled to binary | 16:13 |
coderus | jani: you can get benefit if only have > 1000 entries, it will short installation/removal time in multiple time | 16:14 |
coderus | John24: do you reading reference pages in qt creator? | 16:14 |
*** Morpog_Mobile has joined #sailfishos | 16:14 | |
jani | coderus: thanks. | 16:15 |
John24 | trying to | 16:15 |
coderus | John24: just F1 at interested object :) | 16:17 |
John24 | oh wow didn't know that :D thank you. I have a so much more to learn about mobile developement. Thanks for the help | 16:17 |
*** Andy80 has joined #sailfishos | 16:18 | |
artemma | Find it ifficult to switch between latest apps on jolla sailfishos, because top-left app cover is too far reach for thumb? Go vote to change it https://together.jolla.com/question/5924/show-latest-app-cover-in-bottom-right-not-top-left-for-easier-access/ | 16:18 |
coderus | artemma: what? | 16:19 |
Pnuu | I'd rather have pinnable covers | 16:19 |
artemma | oups, wrong channel | 16:19 |
artemma | should go to #jollamobile | 16:19 |
coderus | :D | 16:19 |
artemma | coderus: I just realize that most often I want to switch back to the most recently used app, and it's exactly the only app cover that is hard to reach with my thumb length :) | 16:20 |
artemma | realized* | 16:20 |
artemma | there is a reason why BlackBerry made it's task switching gesture to go from bottom | 16:21 |
coderus | there is many navigation issues in silica | 16:21 |
coderus | stack indicator should have "go top" something scrolling to top | 16:22 |
M4rtinK2 | coderus: yeah, was thinking the same thing | 16:22 |
coderus | John24: i found many peoples ignoring F1 :) | 16:22 |
M4rtinK2 | coderus: actually this is how the back button works in the modRana Qt4 & GTK GUIs - you long press it and it gets you back to the map screen | 16:23 |
M4rtinK2 | coderus: in this case it could pop all pages but the one on the bottom from the page stack | 16:23 |
John24 | another question if you don't mind what sort of scope does QML have? for exple here i get an error " ReferenceError: dialog is not defined" http://pastebin.com/TEZrhKfw | 16:24 |
artemma | coderus: fast scrolling to top (in the list) is already promised (I think I've seen some jolla person comment in together). | 16:25 |
artemma | I think they even mentioned something like next release | 16:26 |
coderus | John24: on which line? | 16:26 |
*** mk2soldier has quit IRC | 16:26 | |
*** phaeron has joined #sailfishos | 16:26 | |
John24 | line 50 | 16:27 |
coderus | John24: ha, your dialog instance exists only inside onLicked | 16:29 |
coderus | onClicked* | 16:29 |
coderus | you need to create globall properties holds values for page, for example | 16:29 |
John24 | ok I'll do that | 16:41 |
*** faenil has joined #sailfishos | 16:50 | |
*** valdur55_ is now known as valdur55 | 16:51 | |
*** wellumakinen has quit IRC | 16:55 | |
*** triggerhappy_ has quit IRC | 17:00 | |
*** Jef91 has joined #sailfishos | 17:03 | |
*** jjanvier has joined #sailfishos | 17:08 | |
*** matoking has quit IRC | 17:10 | |
*** b0bben has joined #sailfishos | 17:10 | |
*** Andy80 has quit IRC | 17:11 | |
*** Andy80 has joined #sailfishos | 17:12 | |
*** Andy80 has quit IRC | 17:12 | |
*** Andy80 has joined #sailfishos | 17:12 | |
*** amppa_ has joined #sailfishos | 17:12 | |
*** amppa has quit IRC | 17:12 | |
*** fawzi has quit IRC | 17:13 | |
*** ahiemstra has quit IRC | 17:13 | |
*** kontio has quit IRC | 17:13 | |
*** Sage__ has quit IRC | 17:13 | |
*** boud has quit IRC | 17:13 | |
*** smokex has quit IRC | 17:13 | |
*** sunkan has quit IRC | 17:13 | |
*** Jarrrgh has quit IRC | 17:13 | |
*** Aard has quit IRC | 17:13 | |
*** thomasgubler has quit IRC | 17:13 | |
*** yunta has quit IRC | 17:13 | |
*** jwalck has quit IRC | 17:13 | |
*** kontio has joined #sailfishos | 17:14 | |
*** kontio has quit IRC | 17:14 | |
*** kontio has joined #sailfishos | 17:14 | |
*** sunkan has joined #sailfishos | 17:14 | |
*** ahiemstra has joined #sailfishos | 17:14 | |
*** yunta has joined #sailfishos | 17:14 | |
*** Aard has joined #sailfishos | 17:15 | |
*** fawzi has joined #sailfishos | 17:15 | |
*** smokex has joined #sailfishos | 17:15 | |
*** Jarrrgh has joined #sailfishos | 17:15 | |
*** freedomrun has quit IRC | 17:15 | |
*** boud has joined #sailfishos | 17:16 | |
*** Andy80 has quit IRC | 17:16 | |
*** thomasgubler has joined #sailfishos | 17:17 | |
*** Sage_ has joined #sailfishos | 17:19 | |
*** cdp has joined #sailfishos | 17:21 | |
*** jwalck has joined #sailfishos | 17:24 | |
*** Andy80 has joined #sailfishos | 17:25 | |
*** SfietKonstantin has joined #sailfishos | 17:26 | |
*** Superpelican_ has joined #sailfishos | 17:26 | |
*** b0bben has quit IRC | 17:27 | |
*** b0bben has joined #sailfishos | 17:27 | |
Jef91 | Pnuu, Oh, I'm here as well :P | 17:29 |
Pnuu | :-) | 17:29 |
Jef91 | basically my goal is to build the EFLs to run on sailfish | 17:30 |
Jef91 | so I can run some of my tools I've written on it | 17:30 |
*** Venemo has quit IRC | 17:30 | |
*** Venemo has joined #sailfishos | 17:31 | |
*** b0bben has quit IRC | 17:32 | |
*** DarkSim has joined #sailfishos | 17:33 | |
Morpog_ | Reboot, a simple app icon to reboot your device: http://talk.maemo.org/showthread.php?p=1401860 | 17:33 |
*** Superpelican_ has quit IRC | 17:33 | |
*** Superpelican_ has joined #sailfishos | 17:34 | |
cos- | how do i test for sailfish/nemo in .pro file? | 17:37 |
Jef91 | Does the SDK allow me to cross compile software then Pnuu ? | 17:40 |
*** Andy80 has quit IRC | 17:41 | |
Pnuu | Jef91: well, it is meant to build the software packages for the phone on a pc, so I'd hope so :-) | 17:41 |
*** Andy80 has joined #sailfishos | 17:41 | |
Pnuu | (I haven't used it yet, as on holidays I have only a mini laptop with me) | 17:42 |
*** piee has quit IRC | 17:45 | |
*** Andy80 has quit IRC | 17:45 | |
*** zmc has joined #sailfishos | 17:48 | |
teve | Jef91: SDK has scratchbox2 env for crosscompiling, available targets are armv7hl and i486 | 17:49 |
*** piee has joined #sailfishos | 17:49 | |
Jef91 | Can I get sailfish to sync my Google Calendar/Contacts? | 17:49 |
Yaniel | yes | 17:49 |
Jef91 | I see my gmail account listed under calendars, but my events are populated | 17:49 |
Yaniel | but it only works in one way so far | 17:50 |
*** Zotan has quit IRC | 17:50 | |
Jef91 | I just need my stuff from the web to populate to my device | 17:50 |
Jef91 | I'm fine with having to edit them on my PC | 17:50 |
Yaniel | should be somewhat working in 1.0.2.5 | 17:51 |
jani | for me atleast, i had to remove and re-add google account before initial sync happened to calendar. | 17:51 |
Jef91 | How do I get a command line env in the SDK for building software sources to ARM? | 17:51 |
*** Superpelican_ has quit IRC | 17:52 | |
*** zmc has quit IRC | 17:52 | |
*** artemma has quit IRC | 17:52 | |
*** fuz_ has quit IRC | 17:53 | |
Jef91 | jani, removing and readding my G account sync it down it seems | 17:55 |
Jef91 | thanks | 17:55 |
Elleo | Jef91: https://sailfishos.org/develop-faq.html <-- see the section on "how do I log in to the emulator or build engine" | 17:55 |
Elleo | then use mb2 for building stuff | 17:55 |
Jef91 | thanks Elleo | 17:57 |
*** mk2soldier has joined #sailfishos | 17:57 | |
Elleo | no problem :) | 17:57 |
*** mk2soldier has quit IRC | 17:58 | |
*** fuz_ has joined #sailfishos | 17:59 | |
*** piee has quit IRC | 17:59 | |
Jef91 | Hrm. Looks like I have to toggle my google account on/off every time I make an update to my calednar | 18:00 |
Jef91 | that is annoying, but workable | 18:00 |
Yaniel | should get fixed soon ehough | 18:00 |
*** phako has quit IRC | 18:02 | |
*** phako has joined #sailfishos | 18:02 | |
*** matoking has joined #sailfishos | 18:03 | |
*** artemma has joined #sailfishos | 18:03 | |
jani | anyone to help with obs accout ? registered to bugzilla already but obs said authentication error .. or should i as on #mer ? | 18:05 |
*** piee has joined #sailfishos | 18:05 | |
*** KangOl has quit IRC | 18:07 | |
*** entil has quit IRC | 18:08 | |
M4rtinK2 | jani: I think lbt can help :) | 18:09 |
*** Uninstall has quit IRC | 18:09 | |
*** jani has quit IRC | 18:09 | |
*** pyksy has quit IRC | 18:09 | |
*** jani has joined #sailfishos | 18:09 | |
*** ezal has quit IRC | 18:09 | |
*** amizraa has joined #sailfishos | 18:09 | |
*** ezal has joined #sailfishos | 18:09 | |
*** jani is now known as Guest41776 | 18:09 | |
lbt | Guest41776: jani ? you need to use your account name, not email on OBS | 18:10 |
*** suy has quit IRC | 18:10 | |
*** suy has joined #sailfishos | 18:11 | |
*** kontio_ has joined #sailfishos | 18:11 | |
*** kontio_ has quit IRC | 18:11 | |
*** kontio_ has joined #sailfishos | 18:11 | |
*** Uninstall has joined #sailfishos | 18:11 | |
*** KangOl has joined #sailfishos | 18:11 | |
Guest41776 | duh. | 18:11 |
*** kontio has quit IRC | 18:11 | |
*** nahkiss has quit IRC | 18:12 | |
*** Andy80 has joined #sailfishos | 18:12 | |
*** nahkiss has joined #sailfishos | 18:12 | |
*** kostola_ has quit IRC | 18:12 | |
*** Uninstall has quit IRC | 18:14 | |
*** Uninstall has joined #sailfishos | 18:14 | |
*** kostola has joined #sailfishos | 18:14 | |
*** entil has joined #sailfishos | 18:14 | |
*** pyksy has joined #sailfishos | 18:15 | |
*** Andy80 has quit IRC | 18:16 | |
*** promulo has joined #sailfishos | 18:21 | |
*** piee has quit IRC | 18:27 | |
entil | is something special needed for debugging? start debugging (f5) and the status bar says Starting debugger "QmlCppEngine" for ABI "x86-linux-generic-elf-32bit"... and the debugger log is stuck with TRYING TO START ADAPTER | 18:33 |
entil | and NOTE: REQUEST REMOTE SETUP | 18:33 |
entil | if I choose to Run it, it doesn't get stuck on the breakpoints | 18:34 |
*** Venemo has quit IRC | 18:35 | |
Jef91 | Elleo, how do I create a VM in the SDK | 18:40 |
*** SfietKonstantin has quit IRC | 18:40 | |
*** Guest41776 is now known as jani | 18:42 | |
*** teve has quit IRC | 18:43 | |
*** Venemo has joined #sailfishos | 18:44 | |
*** Venemo has quit IRC | 18:45 | |
*** John24 has quit IRC | 18:46 | |
*** artemma has quit IRC | 18:48 | |
Elleo | Jef91: do you mean you want to create a new build target? | 18:49 |
*** datagutt has joined #sailfishos | 18:49 | |
Elleo | if so I think sb2-init is what you want (from within the mersdk vm) | 18:49 |
Jef91 | whats the default root password? | 18:49 |
Jef91 | on the sailfish OS image | 18:50 |
Elleo | for the mersdk vm or for the emulator? | 18:50 |
Elleo | either way I'm not sure off the top of my head, but you can ssh in directly as root using root's private key | 18:51 |
Elleo | then set the password to whatever you like | 18:51 |
Elleo | again see https://sailfishos.org/develop-faq.html for instructions | 18:51 |
Elleo | same section as before, just look for the bit on connecting as root instead of as nemo | 18:52 |
Yaniel | or use sudo as nemo | 18:52 |
*** tumpelo has joined #sailfishos | 18:56 | |
Waitee | lol | 18:56 |
Waitee | tumpelo: that was my nick in high school | 18:56 |
tumpelo | Waitee: I'll try to carry the torch further | 18:57 |
Jef91 | How do you gain root in sailfish OS? I've got it installed on my n9 | 19:00 |
*** b0bben has joined #sailfishos | 19:00 | |
Elleo | Jef91: ah, if the n9 image is similar to the jolla one then you need to setup developer mode and set an ssh password | 19:00 |
*** faenil has quit IRC | 19:01 | |
Elleo | Jef91: then use devel-su to become root with that password | 19:01 |
Pnuu | Jef91: settings -> developer mode (-> enable + boot) -> set passwd -> open terminal -> devel-su | 19:01 |
*** louisdk has quit IRC | 19:01 | |
Jef91 | hrm | 19:02 |
Jef91 | devel-su is prompting me for a password | 19:02 |
Jef91 | nvm | 19:02 |
Jef91 | that is the same password as the other | 19:02 |
Jef91 | thanks | 19:02 |
Pnuu | yes | 19:03 |
Jef91 | alrighty | 19:03 |
cdp | has anyone tried to use the sdk on freebsd? | 19:04 |
Jef91 | what package manager does this use by default? | 19:04 |
Jef91 | I know it uses RPMs, but is it powered by apt-get or yum past that? | 19:04 |
Elleo | Jef91: pkcon is the best way of doing things | 19:04 |
M4rtinK2 | pkcon (comes from packagekit) | 19:04 |
M4rtinK2 | yeah, it manages concurrent installation, etc. | 19:05 |
*** b0bben has quit IRC | 19:05 | |
M4rtinK2 | but you can also install and use zypper | 19:05 |
*** mfulz has joined #sailfishos | 19:06 | |
Jef91 | Are there any instructions for setting up a build system on the device itself? | 19:06 |
Jef91 | there were some of those for Harmattan I know | 19:06 |
mfulz | when using qproperties can I use an enum as well inside qml? | 19:06 |
Elleo | Jef91: you should be able to pretty much just install whatever packages you need | 19:07 |
Jef91 | Oh great, so I can install like a C compiler right in the default OS? | 19:08 |
Elleo | Jef91: yep | 19:08 |
Elleo | Jef91: pkcon search name gcc | 19:08 |
Elleo | for example | 19:08 |
coderus | sdk-utils for example :) | 19:09 |
*** KangOl has quit IRC | 19:11 | |
Jef91 | coderus, not finding any packages sdk-utils | 19:12 |
Jef91 | is there an equiv of build-essential for sailfish? | 19:12 |
*** Andy80 has joined #sailfishos | 19:12 | |
Elleo | that's probably in the mer-tools repo | 19:13 |
Elleo | you can add that by running "ssu ar mer-tools" "ssu ur" "pkcon refresh mer-tools" | 19:13 |
lbt | cdp: I doubt it'll work on freebsd | 19:14 |
lbt | it relies on 'unshare' which I think is linux | 19:14 |
lbt | you should be able to work around it though | 19:14 |
*** dirkvl_ has joined #sailfishos | 19:15 | |
*** freedomrun has joined #sailfishos | 19:15 | |
lbt | Jef91: there is very little support for on-device building; almost everything is written assuming either platform or VM SDK using sb2. Just fyi | 19:16 |
Jef91 | thanks for the tips Elleo | 19:16 |
*** Superpelican_ has joined #sailfishos | 19:16 | |
Jef91 | lbt, I'm tired of fighting with tools for cross compiling | 19:16 |
Jef91 | I just need to build like 4~ packages so I can run my python applications | 19:16 |
*** Andy80 has quit IRC | 19:17 | |
Jef91 | Elleo, "Fatal error: File '/repodata/repomd.xml' not found on medium 'https://releases.jolla.com/releases/latest/nemo/adaptation-n9xx-common/armv7hl/?credentials=store'" | 19:17 |
mfulz | anyone working on an emacs mode for sailfish coding? | 19:17 |
lbt | Jef91: tl;dr; ... it doesn't feel like cross compiling in the SDK | 19:17 |
lbt | it's essentially emulated and fast | 19:17 |
Jef91 | lbt, if there was a clean "take these steps to get a terminal to start compiling at" I'd cross compile | 19:17 |
lbt | mfulz: there's some QML emacs mode | 19:17 |
Jef91 | as it is though, I haven't seen one of those | 19:17 |
mfulz | yep for qml I know | 19:18 |
lbt | https://wiki.merproject.org/wiki/Platform_SDK | 19:18 |
mfulz | I was thinking more about the compile / deploy commands | 19:18 |
Elleo | Jef91: that's a reo specific to the n9 image, don't know anything about that; but like lbt says it's pretty easy to build stuff with the mersdk vm | 19:19 |
Elleo | repo* | 19:20 |
lbt | *nod*... I changed my mind. Get the Sailfish SDK VM and install that. Then use ssh to login and build in there. That will be easiest. | 19:20 |
*** KangOl has joined #sailfishos | 19:22 | |
Jef91 | I've installed the SDK | 19:22 |
Jef91 | Doesn't seem to do anything | 19:22 |
Jef91 | the projects are all for starting to write software | 19:22 |
Jef91 | I just want to cross compile a few things | 19:22 |
Elleo | Jef91: all you really need to do is ssh in compile stuff via mb2 | 19:23 |
Jef91 | And that is done how?.... | 19:23 |
*** joecool has quit IRC | 19:23 | |
Elleo | "mb2 run ./configure"; "mb2 make"; etc. | 19:23 |
Elleo | "mb2 build" if you've got an rpm .spec | 19:23 |
Jef91 | Elleo, | 19:24 |
Jef91 | I mean sshing in | 19:24 |
Jef91 | I can figure out how to build stuff | 19:24 |
Jef91 | once I am logged into a system | 19:24 |
Elleo | Jef91: https://sailfishos.org/develop-faq.html | 19:25 |
Elleo | look at the section "How do I login into the emulator or build engine?" | 19:25 |
Elleo | you're wanting to log in to the build engine | 19:25 |
Jef91 | getting connection refused | 19:27 |
Elleo | Jef91: did you start the build vm running? | 19:27 |
Elleo | you can do it easily by just clicking the button in qtcreator | 19:27 |
Elleo | (in the bottom left when you've got a project with a mer build target loaded) | 19:28 |
Jef91 | the "start sdk" button? | 19:29 |
Elleo | yeah | 19:29 |
*** ottulo has left #sailfishos | 19:29 | |
Jef91 | hey look at that | 19:29 |
Jef91 | its a live | 19:29 |
*** ottulo has joined #sailfishos | 19:29 | |
Elleo | :) | 19:30 |
Jef91 | what package manager does the SDK use? | 19:30 |
lbt | Jef91: be aware that when you're in the sdk you need to prefix all commands with sb2 -t SailfishOS-armv7hl | 19:30 |
Elleo | but be aware you don't want to build stuff directly in the VM, you want to use the scratchbox installed within | 19:30 |
lbt | all build command | 19:31 |
lbt | s | 19:31 |
Elleo | yeah, what lbt just said | 19:31 |
lbt | or you can enter a shell using just : sb2 -t SailfishOS-armv7hl | 19:31 |
lbt | but then things like /tmp are transient | 19:31 |
lbt | most of SDK is geared around rpm building - ie not much tooling for simple 'make' (which doesn't really need it) | 19:32 |
*** furikku has quit IRC | 19:32 | |
*** faenil has joined #sailfishos | 19:33 | |
*** dirkvl_ has quit IRC | 19:33 | |
*** Kabouik has joined #sailfishos | 19:33 | |
Jef91 | How do I install software/packages in the build VM? | 19:34 |
lbt | the SDK has a control centre - use that | 19:34 |
lbt | otherwise you get into setting sb2 modes etc | 19:34 |
lbt | which you can learn later :) | 19:34 |
lbt | the control centre is just a ruby wrapper over a bash script so you can drill into it | 19:35 |
Jef91 | This is far more cumbersome than just compiling natively | 19:35 |
Jef91 | on an ARM device | 19:35 |
lbt | ok, feel free | 19:35 |
Jef91 | I had things almost working on Harmattan. Going to just finish making things work there and play with sailfish later I think. | 19:36 |
Jef91 | Sailfish runs kinda clunky on the N9 anyways >.< | 19:36 |
* lbt sometimes wonders why he bothers... :) | 19:37 | |
lbt | tbr: hey https://build.merproject.org/project/meta?project=sailfishos%3Achum%3A1.0.2.5 | 19:37 |
tbr | lbt: ok, so let's scrap the other one then? | 19:37 |
lbt | https://build.merproject.org/project/show?project=home%3Albt%3Asailfishos | 19:38 |
lbt | I guess :( | 19:38 |
tbr | ok | 19:38 |
*** Superpelican_ has quit IRC | 19:38 | |
lbt | although given how our update systems seems to be working I'm expecing people on 1.0.0.5 for some time to come :D | 19:39 |
wickwire | Hi guys, any news on sailfishOS images for nexus devices...? | 19:39 |
* tbr pushes mosh to the new repo, fails because no access | 19:39 | |
lbt | eek | 19:39 |
lbt | tbr: what QA did you do ? | 19:39 |
lbt | write it down in the wiki | 19:39 |
lbt | and then push | 19:39 |
tbr | lbt: built it in private repo, then just copypac'd - NOT how I want to have the process for the future | 19:39 |
tbr | need to figure out the SR thing | 19:40 |
lbt | yeah ... but just write something up before you push | 19:40 |
*** tumpelo has quit IRC | 19:40 | |
lbt | that'll force us to take the first step | 19:40 |
lbt | added you | 19:40 |
Pnuu | wickwire: https://together.jolla.com/question/4851/what-hardwaredevices-would-you-like-to-see-sailfishos-on/ | 19:40 |
lbt | wickwire: not quite yet... | 19:40 |
lbt | wickwire: soon... (is that a Jolla catchphrase yet?) | 19:41 |
Pnuu | lbt: #soon | 19:41 |
*** rcg has joined #sailfishos | 19:42 | |
*** jmlich has joined #sailfishos | 19:43 | |
lbt | tbr did I show you : https://together.jolla.com/question/5762/add-repository-to-sailfish-where-users-can-contribute-directly | 19:43 |
wickwire | thanks! | 19:43 |
tbr | lbt: managed to break something :-( | 19:44 |
Yaniel | hmm should I update my chum link in ssu then | 19:45 |
tbr | lbt: https://build.merproject.org/package/show?package=mosh&project=sailfishos%3Achum%3A1.0.2.5 | 19:45 |
lbt | boom | 19:45 |
rcg | evening | 19:46 |
lbt | tbr: you copypac'ed it there? | 19:47 |
tbr | lbt: yes, worked 10 times flawlessly today | 19:48 |
tbr | on all sorts of repos | 19:48 |
tbr | osc copypac nemo:devel:apps mosh sailfishos:chum:1.0.2.5 | 19:48 |
*** tumpelo has joined #sailfishos | 19:48 | |
matoking | There's a wizard for adding an ARM device in SailfishOS IDE | 19:51 |
matoking | I feel so dumb now | 19:51 |
*** zmc has joined #sailfishos | 19:52 | |
lbt | tbr: I gotta go for a bit .. I'll look later. Not sure what's up. OBS issue though | 19:52 |
tbr | np | 19:52 |
*** sequantz has quit IRC | 19:55 | |
*** Tegu has joined #sailfishos | 20:01 | |
matoking | There was a one-click way of deploying an application to the device and I didn't know about it until now | 20:02 |
matoking | I'll never live this down D: | 20:02 |
*** SfietKonstantin has joined #sailfishos | 20:04 | |
raa70 | =) | 20:05 |
*** RoKenn has joined #sailfishos | 20:05 | |
*** b0bben has joined #sailfishos | 20:12 | |
*** Andy80 has joined #sailfishos | 20:13 | |
*** petantik has joined #sailfishos | 20:14 | |
*** tumpelo has left #sailfishos | 20:14 | |
*** boud has quit IRC | 20:14 | |
*** boud has joined #sailfishos | 20:15 | |
*** jstaniek has joined #sailfishos | 20:17 | |
*** Andy80 has quit IRC | 20:18 | |
*** kaari has quit IRC | 20:21 | |
*** Raim has quit IRC | 20:24 | |
*** itbaron has quit IRC | 20:25 | |
*** gigetoo has quit IRC | 20:33 | |
*** gigetoo has joined #sailfishos | 20:33 | |
*** John24 has joined #sailfishos | 20:35 | |
John24 | hi again, got few more questions about QML if anyone is willing to help | 20:35 |
John24 | I am still having issues with using datepicker on the sailfish OS and storing the values. I just can't get the values from the data picker to my declared date variables. Code = http://pastebin.com/mRfgDvN9 | 20:37 |
*** faenil has quit IRC | 20:40 | |
*** faenil has joined #sailfishos | 20:40 | |
*** b0bben_ has joined #sailfishos | 20:41 | |
Elleo | John24: I think usrDate = dialog will give you problem as the dialog gets destroyed after its accepted, also I think you meant to do this "console.log("User day: ", dialog.day)" when the dialog was accepted, not when it was created (which is what you currently do) | 20:43 |
coderus | John24: you need to add here: | 20:45 |
coderus | button.text = "You chose: " + dialog.day | 20:45 |
coderus | code you have below | 20:45 |
John24 | well the console.log is there just for me to see the dates. But I want to copy the date from dialog to usrDate as I wan to later use it for date comparisons. | 20:45 |
coderus | and usrDate = dialog.date | 20:46 |
coderus | John24: include code into connect function, not outside | 20:46 |
John24 | Ahhhhhhhhhhhhhhhhhhhhhhhhhh | 20:46 |
John24 | now I get it :D | 20:47 |
John24 | will test now | 20:47 |
*** dirkvl_ has joined #sailfishos | 20:48 | |
*** jjarven has quit IRC | 20:50 | |
*** Raim has joined #sailfishos | 20:50 | |
*** kvt has quit IRC | 20:52 | |
*** Kabouik_ has joined #sailfishos | 20:53 | |
*** jhe__ has quit IRC | 20:55 | |
*** SfietKonstantin has quit IRC | 20:55 | |
*** Kabouik has quit IRC | 20:56 | |
*** dirkvl_ has quit IRC | 20:59 | |
*** jjarven has joined #sailfishos | 21:02 | |
John24 | the code changes worked :D but I am having weird error/warning | 21:07 |
John24 | TypeError: Cannot read property 'year' of null | 21:07 |
John24 | changed code: http://pastebin.com/g7jhNTjG | 21:10 |
*** pixraider has joined #sailfishos | 21:10 | |
*** Venemo has joined #sailfishos | 21:11 | |
matoking | How can I get rid of the page stack indicator/back button on the top-left corner? | 21:11 |
matoking | I don't need to get rid of it completely | 21:11 |
matoking | Just hide it when necessary | 21:11 |
*** super_hirsute has joined #sailfishos | 21:13 | |
*** Andy80 has joined #sailfishos | 21:14 | |
*** Andy80 has quit IRC | 21:18 | |
*** jstaniek_ has joined #sailfishos | 21:23 | |
*** jstaniek has quit IRC | 21:23 | |
*** super_hirsute has quit IRC | 21:27 | |
suy | matoking: backNavigation: false | 21:27 |
suy | on a Page element | 21:28 |
matoking | @suy That doesn't seem to be documented on the Page doc page | 21:29 |
matoking | But it's there | 21:29 |
matoking | Thanks | 21:29 |
suy | matoking: true. It might be a bug. Or it might not be stable. But is used in the example components gallery app | 21:30 |
matoking | Yeah | 21:30 |
*** softmetz has joined #sailfishos | 21:30 | |
matoking | Given that Jolla is still a pretty small company and a product it isn't surprising there are undocumented surprises around | 21:31 |
*** softmetz has quit IRC | 21:33 | |
matoking | Still, it feels more straightforward and simple than Symbian^3/Symbian Belle which is nice | 21:33 |
*** softmetz has joined #sailfishos | 21:33 | |
matoking | Or that may have something to do with having experience :P | 21:33 |
*** softmetz has quit IRC | 21:34 | |
*** softmetz has joined #sailfishos | 21:34 | |
*** softmetz has quit IRC | 21:35 | |
*** softmetz has joined #sailfishos | 21:36 | |
*** softmetz has quit IRC | 21:47 | |
*** softmetz has joined #sailfishos | 21:47 | |
*** softmetz has quit IRC | 21:48 | |
*** softmetz has joined #sailfishos | 21:48 | |
*** zmc has quit IRC | 21:53 | |
*** rm_work is now known as rm_work|away | 21:53 | |
*** softmetz has quit IRC | 21:55 | |
*** softmetz has joined #sailfishos | 21:55 | |
*** softmetz is now known as softmetz|away | 22:01 | |
*** softmetz|away is now known as softmetz | 22:01 | |
*** beford has joined #sailfishos | 22:04 | |
*** b0bben has quit IRC | 22:06 | |
*** b0bben has joined #sailfishos | 22:06 | |
*** jmlich has quit IRC | 22:06 | |
*** Almehdin has quit IRC | 22:06 | |
*** cdp has quit IRC | 22:08 | |
John24 | is it possible to hide and show labels in sailfish QML? | 22:09 |
*** dhbiker has quit IRC | 22:11 | |
*** b0bben has quit IRC | 22:11 | |
matoking | @John24 label.visible = false should do the trick if I'm not wrong | 22:11 |
*** _miqu_ has joined #sailfishos | 22:12 | |
*** softmetz has quit IRC | 22:14 | |
*** softmetz has joined #sailfishos | 22:14 | |
John24 | label.visible = false doesn't seem to work | 22:14 |
John24 | Essentially my label will show a value that shoudl be shown once function is done | 22:15 |
*** Andy80 has joined #sailfishos | 22:15 | |
entil | arght :D I added something to the qml and added signals to it, only to remember later that's where threads are needed | 22:16 |
John24 | that would be useful, but I have no idea how to do it. I want the label hiden and once the fucntion is done, I want label to apear and display the values | 22:17 |
entil | John24: why not use property bindings? | 22:17 |
*** artemma has joined #sailfishos | 22:18 | |
matoking | Hmm | 22:18 |
John24 | no idea what they are | 22:18 |
jpnurmi | John24: the label won't show anything until it has a value | 22:18 |
entil | dunno, I haven't been following the channel, but because I've just dabbled in properties, maybe every solution starts looking like a property :D | 22:18 |
John24 | first app on qml ever | 22:18 |
matoking | @John24 How about having an empty text property until it's done? | 22:18 |
entil | John24: https://github.com/mjtorn/jolla-morse/blob/master/src/csvworker.h | 22:18 |
entil | my crap is very much work in progress and it's my first app in c++ or qt *ever* but that's what I can show you | 22:19 |
*** Andy80 has quit IRC | 22:19 | |
entil | John24: Q_PROPERTY(int seenSMS READ getSeenSMS NOTIFY seenSMSChanged); | 22:19 |
entil | John24: then qml has Label { id: sms_label; text: "Seen SMS: " + appWindow.csvhandler.seenSMS; x: Theme.paddingLarge } | 22:20 |
entil | so whenever the code updates its value and emits a signal, the qml is updated | 22:20 |
John24 | ahh I see, I will try to it out, See if I do it :) thanks | 22:20 |
entil | beware that this (I think, it looks like it, and in this one particular case someone told me) has to run in its own thread | 22:20 |
entil | googling for qt threads was horror, there's like at least two ways of doing it and some of the writings are about old versions | 22:21 |
entil | John24: https://github.com/mjtorn/jolla-morse/blob/master/src/csvhandler.cpp#L100 that's my thread invoker | 22:21 |
matoking | At the moment I'm using an QObject with getFileList() function to get a list which I add into a GridModel like this http://pastebin.com/7V53V0Zd | 22:21 |
matoking | That doesn't seem like the most perfect solution | 22:21 |
* entil can't figure out qml | 22:22 | |
entil | layouts | 22:22 |
entil | it's fscking harder than html+css | 22:22 |
John24 | oh I am ripping my hair out over the qml layouts | 22:22 |
matoking | I have some anger issues over models and their interaction between C++ and QML code | 22:23 |
John24 | I just don't get it, having something centered was like a journey to mordor | 22:23 |
matoking | But I think I'm starting to get hang of it | 22:23 |
matoking | @John24 Isn't that a simple anchors property? | 22:23 |
matoking | anchors.centerIn | 22:23 |
John24 | well not until I figured out how anchors worked | 22:24 |
entil | someone suggested the thread running stuff could send signals to qml but I couldn't figure that out so I relay them through the main process | 22:24 |
matoking | @entil What are you doing that would require threads? | 22:24 |
entil | matoking: importing sms data from an n900 export | 22:24 |
matoking | I had to do some threading on a semi-abandoned Qt project I have | 22:24 |
entil | matoking: with some 12k texts the ui stuttered | 22:24 |
entil | it's a better ux to have a thread do the work in the background while the ui does its thing | 22:25 |
matoking | Anyway | 22:26 |
matoking | I have bad memories about threading with Qt | 22:26 |
matoking | I looked up a bunch of examples, reworked it a multiple times | 22:26 |
matoking | Then I asked on an IRC channel and finally made something that worked | 22:26 |
entil | just after I got the QThread inheritance solution working, not knowing half of why it works, I found a blog post that dissed the solution totally.. and was written for qt 4.x so I don't know if it applies | 22:27 |
*** mk2soldier has joined #sailfishos | 22:27 | |
*** b0bben_ has quit IRC | 22:27 | |
*** vitronic__ has quit IRC | 22:27 | |
matoking | @entil Yeah, I tried using a solution that seemed really clean and simple | 22:27 |
matoking | But it didn't end up working | 22:27 |
*** vitronic__ has joined #sailfishos | 22:28 | |
matoking | Basically I just created objects and such and attached them to a QThread | 22:28 |
matoking | That didn't work | 22:28 |
entil | all of this is just crap, because I wouldn't want to put everything into threads | 22:28 |
entil | not sure why, I could probably use the exercise :P | 22:28 |
John24 | is it best to set font in pixels or point size? because setting font.pointSize seems to do nothing at all | 22:29 |
lbt | https://sailfishos.org/sailfish-silica/qml-sailfishsilica-theme.html | 22:29 |
matoking | Yeah, try to use Theme values if you want to keep your UI consistent | 22:30 |
John24 | cheers will try now | 22:34 |
*** pixraider_ has joined #sailfishos | 22:35 | |
*** arcean_ has quit IRC | 22:35 | |
entil | but was there another way to get data visible in qml after it's done except signals? | 22:35 |
wickwire | I've worked with Qt5/QML before, managed to work out C++<>QML interaction with the documentation on qtproject.org | 22:35 |
*** pixraider has quit IRC | 22:35 | |
wickwire | setContextProperty was useful to expose C++ properties to QML | 22:35 |
entil | if I got any of this right, binding a property to be shown has to have a Q_PROPERTY(... NOTIFY ...); thing on it? | 22:36 |
wickwire | I think so, yes | 22:36 |
entil | cuz I just undid my signal code because it wasn't updated as it went along :D | 22:37 |
entil | oh well, undo undo, and it's back | 22:37 |
wickwire | in any case, signals and slots are Qt (C++) inner mechanisms I think, very much needed to be understood | 22:37 |
wickwire | then exposing them to QML with setContextProperty | 22:37 |
entil | I think I'm getting there, just not sure about everything | 22:37 |
wickwire | for example | 22:37 |
entil | I don't have setContextProperty anywhere :o | 22:38 |
entil | I have the main class doing things in appWindow (so I can refer to it through many pages) and use signals to update stuff | 22:38 |
wickwire | setContextProperty is parallel to signals and slots, I believe | 22:38 |
wickwire | it is a means to expose C++ layer elements to QML | 22:38 |
wickwire | I think perhaps it would be best to start with Qt5 standard, | 22:39 |
wickwire | get the stock Qt Creator and Qt5 | 22:39 |
wickwire | the examples | 22:39 |
wickwire | and study them | 22:39 |
entil | I made an experiment and commented out the emit statements, updating only the member property, and of course the ui didn't update at all | 22:40 |
entil | so that's proven now :) | 22:40 |
matoking | What I've done is that I have classes based on QObject such as settings | 22:40 |
matoking | I add them to the rootContext so I can refer to their properties in the QML code | 22:40 |
wickwire | on sailfishOS (haven't tried it yet, still to get the jollamobile), you get an added library in the form of Silica | 22:40 |
matoking | Like settings.dirPath | 22:40 |
wickwire | I hope I'm describing this properly | 22:40 |
wickwire | but bottom line is | 22:40 |
entil | matoking: is rootContext similar to appWindow, like, conceptually? | 22:41 |
wickwire | if you are able to handle normal Qt5 and QML, then Silica/SailfishOS should just be a superset of that | 22:41 |
entil | I found myself hitting qt pretty hard, silica is very small on top of it | 22:41 |
matoking | @entil I don't know what appWindow is | 22:41 |
entil | like the two hard things with this so far have been qt (not silica per se) and c++ ;P | 22:41 |
matoking | Settings settings; | 22:42 |
matoking | view->engine()->rootContext()->setContextProperty("settings", &settings); | 22:42 |
matoking | That's the basic gist of it | 22:42 |
*** jrajaniemi has quit IRC | 22:42 | |
*** _miqu_ has quit IRC | 22:42 | |
matoking | And signals you can do with Connections { target: settings onSomething: { doSomething(); } } | 22:42 |
wickwire | yes, but my idea is, in order to take the most out of sailfishOS, Qt5 (C++/QML) understanding is key | 22:42 |
wickwire | C++ is hard | 22:42 |
entil | matoking: property CSVHandler csvhandler: CSVHandler { | 22:42 |
entil | id: csvhandler | 22:42 |
entil | } | 22:42 |
wickwire | QML is east | 22:42 |
wickwire | easy | 22:42 |
*** mfulz has quit IRC | 22:43 | |
entil | in the main qml ApplicationWindow | 22:43 |
entil | matoking: where did you get view in your example? | 22:43 |
wickwire | I was experimenting with Qt5 on Raspberry Pi and developed an app that did the following: | 22:43 |
matoking | @entil http://pastebin.com/QCwfmguv | 22:44 |
*** s1gk1ll_ has joined #sailfishos | 22:44 | |
wickwire | the qt app interacted with the GPIO ports on the Pi, managed to get signals from an IR sensor | 22:44 |
wickwire | when the sensor was triggered | 22:44 |
wickwire | the Qt app would invoke a connected USB Webcam to take a photo | 22:44 |
wickwire | and after getting the picture | 22:44 |
*** Tuilu_ has joined #sailfishos | 22:44 | |
wickwire | it would analyze it using QZXing | 22:45 |
entil | matoking: ok, that's actually pretty cool, I'm on the default from the template | 22:45 |
wickwire | a QR Code scanning library for Qt4 | 22:45 |
wickwire | I had to update QZXing to work with Qt5, | 22:45 |
entil | so I guess I could have instantiated my csvhandler and passed it into the rootContext() and worked from there... though I'm pretty sure updating the ui as stuff progresses would still require the handler to export Q_PROPERTY(..NOTIFY..); thingies | 22:45 |
wickwire | the webcam triggering was made using QProcess | 22:45 |
wickwire | and I got issues exchanging data between C++ and QML | 22:46 |
wickwire | which got solved using qtproject documentation | 22:46 |
entil | wickwire: that sounds nice! I was looking for a qr app but couldn't find anything (for jolla) but got something from yandex that works | 22:46 |
wickwire | and I also had to resort to QThread | 22:46 |
entil | after the latest update that enabled android apps to use the camera | 22:46 |
*** louisdk has joined #sailfishos | 22:47 | |
wickwire | because the photo processing was interfering with QML, on the main event loop | 22:47 |
*** s1gk1ll has quit IRC | 22:47 | |
wickwire | I was getting stuttering on my animations | 22:47 |
wickwire | QXZing Q Zebra Crossing did it for me | 22:47 |
*** Sidde has quit IRC | 22:47 | |
wickwire | but as I said, I had to mess with it in order to have it build in Qt5 | 22:48 |
*** Tuilu has quit IRC | 22:48 | |
wickwire | in the end the whole thing actually worked | 22:49 |
entil | that's always what counts ;) | 22:49 |
wickwire | I even installed a white bright LED on the RPi | 22:49 |
wickwire | to simulate a flash | 22:49 |
wickwire | so I had some squares rotating and moving along the screen | 22:50 |
wickwire | made a small transparent plastic case | 22:50 |
*** Venemo has quit IRC | 22:50 | |
wickwire | out of a plastic cover from an old photo frame | 22:50 |
wickwire | placed LED, sensor and USB cam inside | 22:50 |
wickwire | ran the app | 22:51 |
*** joecool has joined #sailfishos | 22:51 | |
wickwire | and then whenever I placed a picture with a QR Code against the plastic, | 22:51 |
wickwire | the sensor would trigger, | 22:51 |
wickwire | the usb cam would snap the pic | 22:51 |
wickwire | and the app would analyze it | 22:51 |
wickwire | decode the QR Code and present the string on screen | 22:52 |
wickwire | on the QML layer | 22:52 |
wickwire | amongst the spinning squares and stuff | 22:52 |
entil | that's pretty much what the red dodo qr & barcode scanner (android) does | 22:52 |
entil | that I downloaded | 22:52 |
entil | you should port your stuff to compete natively ;) | 22:52 |
wickwire | on sailfish you mean? | 22:53 |
entil | yes | 22:53 |
*** jjanvier has quit IRC | 22:53 | |
entil | qr codes are the future, and they're already here, so anything that would nudge jolla in that direction would help | 22:53 |
*** softmetz has quit IRC | 22:53 | |
entil | even though anyone can download an android app.. | 22:53 |
*** softmetz has joined #sailfishos | 22:54 | |
*** sjn has joined #sailfishos | 22:54 | |
wickwire | actually I've kind of dropped QR | 22:54 |
wickwire | in favour of NFC | 22:54 |
entil | all the ads on all the buses have qr, not nfc ;) | 22:54 |
entil | but sure | 22:54 |
sjn | \o | 22:55 |
entil | I'm happy with the android app so far so I don't care | 22:55 |
wickwire | I don't ride on buses | 22:55 |
wickwire | ehehehehe | 22:55 |
wickwire | but I know what you mean | 22:55 |
entil | we all have our reasons not to care ;P | 22:55 |
entil | and I just realized I've probably done this signal stuff a bit wrong | 22:55 |
wickwire | in any case, I believe NFC has made more of a positive impact on my daily routine | 22:55 |
John24 | is there a good guys somewhere fo how to use anchors? I am still having massive issues figuring out what the hell I am doing | 22:56 |
wickwire | John24 what are you trying to do? | 22:56 |
entil | I got READ and NOTIFY and I update the properties before emitting. I should probably do something with the NOTIFY method that updates the properties. I need to look into that tomorrow | 22:56 |
Elleo | John24: http://qt-project.org/doc/qt-5.0/qtquick/qtquick-positioning-anchors.html | 22:56 |
sjn | Question: Where do the logfiles reside in sailfish os? /var/log has some funny files, but nothing that is familiar for me</n00b> | 22:57 |
John24 | thanks Elleo I'll look into it :) | 22:57 |
wickwire | entil: I'm not entirely sure, but my understanding is that you're mixing signals and slots with C++/QML interoperability | 22:57 |
wickwire | signals and slots will work even within C++ | 22:58 |
wickwire | between classes | 22:58 |
wickwire | and within classes themselves | 22:58 |
entil | wickwire: I'm not entirely sure either, but what I realized was that I could just as well skip half the cases where I do an assignment and an emit, and just use an emit instead | 22:58 |
entil | yes, I pass info from the qthread to the main qobject | 22:58 |
entil | and from the qobject to qml | 22:58 |
*** DarkSim has quit IRC | 22:59 | |
entil | someone also suggested I could pass signals from qthread to qml direct but I couldn't figure that out so I relay through the main qobject | 22:59 |
entil | but yeah, the thing I realized is that I don't need to store a lot of state into the qthread object because I have the emits tied into the qobject anyway: https://github.com/mjtorn/jolla-morse/blob/master/src/csvhandler.cpp#L100 | 23:01 |
entil | so I can just emit the numbers without assigning them first | 23:01 |
*** John24 has quit IRC | 23:03 | |
*** joecool has quit IRC | 23:03 | |
wickwire | entil: what I had on my app was as follows: | 23:04 |
wickwire | Q_PROPERTY(QString qmlQRimg READ getQRImg NOTIFY qRImgUpdated) on the C++ header file | 23:05 |
wickwire | the following signal there as well: | 23:05 |
wickwire | QVariant qRImgUpdated(QVariant signal_qrimg); | 23:05 |
entil | similar to what I got | 23:05 |
wickwire | QVariant is relevant | 23:05 |
entil | never heard of QVariant :/ | 23:05 |
wickwire | then on main.cpp | 23:06 |
wickwire | QObject *qrFrame = rootObject->findChild<QObject *>(QString("QRFrame")); | 23:06 |
wickwire | QObject::connect(snapp, SIGNAL(qRImgUpdated(QVariant)), qrFrame, SLOT(updateQRFrame(QVariant))); | 23:06 |
*** b0bben has joined #sailfishos | 23:06 | |
wickwire | So C++ would find the QML element "QRFrame" and update it | 23:06 |
wickwire | on QML, | 23:07 |
wickwire | I have an Image element | 23:07 |
entil | I didn't use SIGNAL() or SLOT() macros | 23:07 |
entil | connect(csvWorker, &CSVWorker::readBytesChanged, this, &CSVHandler::setReadBytes); | 23:07 |
wickwire | with the following property: | 23:07 |
wickwire | objectName: "QRFrame" | 23:07 |
wickwire | hang on, let me see how I handled QThreads | 23:08 |
*** Almehdin has joined #sailfishos | 23:08 | |
wickwire | this was quite a while ago, | 23:08 |
wickwire | I'll need to to some refreshing prior to learning :p | 23:08 |
*** kostola has quit IRC | 23:08 | |
entil | so you're just emitting signals there, without qthreads? | 23:08 |
*** kostola has joined #sailfishos | 23:09 | |
*** Tuilu_ has quit IRC | 23:10 | |
*** b0bben has quit IRC | 23:11 | |
wickwire | ok so from what I'm reviewing, | 23:11 |
*** Tuilu has joined #sailfishos | 23:11 | |
wickwire | I have QThread on main.cpp | 23:12 |
wickwire | I create a thread, | 23:12 |
wickwire | I move the slot that handles the sensor/takes the picture to it | 23:12 |
*** jstaniek_ has quit IRC | 23:13 | |
entil | like the moveToThread() call or something? | 23:13 |
entil | so you have a thread and it creates a new thread and moves code to it? | 23:13 |
*** louisdk has quit IRC | 23:15 | |
wickwire | snapp->moveToThread(thread); | 23:15 |
wickwire | yep, I create the snapp instance | 23:15 |
wickwire | from the photo management class I have | 23:15 |
wickwire | I move it to a thread | 23:15 |
*** Andy80 has joined #sailfishos | 23:15 | |
wickwire | QObject::connect(thread, SIGNAL(started()), snapp, SLOT(doStuff()),Qt::QueuedConnection); | 23:16 |
wickwire | and I start the thread | 23:16 |
wickwire | thread->start(); | 23:16 |
wickwire | C++ is polling the GPIO every second | 23:16 |
wickwire | trying to figure out what is the sensor state | 23:17 |
wickwire | at the time, I couldn't find a proper way to have the GPIO push events to Qt C++ (inotify or something like that) | 23:17 |
wickwire | so C++ was polling the GPIO prot | 23:17 |
wickwire | port | 23:17 |
wickwire | once it had a changed state, | 23:17 |
wickwire | on its thread | 23:17 |
wickwire | it would snap the picture | 23:18 |
wickwire | using QProcess | 23:18 |
wickwire | and another linux app: "streamer" | 23:18 |
*** matt_197_ has joined #sailfishos | 23:19 | |
wickwire | this was because at the time, QtMultimedia wasn't working properly with Qt5 and RPi and USB Webcams | 23:19 |
entil | myeah | 23:19 |
wickwire | so I had to rely on a 3rd party app | 23:19 |
wickwire | streamer | 23:19 |
wickwire | and invoke it on Qt | 23:19 |
wickwire | using QProcess | 23:19 |
wickwire | so streamer is called | 23:19 |
wickwire | snaps the pic | 23:19 |
wickwire | then Qt C++ proceeds to analyze it with QZXing | 23:20 |
wickwire | if a string is successfully decoded from the pic, | 23:20 |
wickwire | the slot emits the result | 23:20 |
entil | this is probably still in the other thread apart from main.cpp/qthread | 23:20 |
*** Andy80 has quit IRC | 23:20 | |
wickwire | ... and from what I'm seeing, | 23:20 |
wickwire | the emit is able to find its way out of the thread and into the main event loop | 23:21 |
wickwire | and from there, to QML | 23:21 |
wickwire | yes, the slot doing the picture snapping/analyzing also emits the result | 23:21 |
wickwire | and is working inside the thread | 23:21 |
wickwire | I know for a fact that I had issues getting the value back | 23:22 |
entil | that sounds pretty much like what I'm doing, except for my main being qobject, not qthread | 23:22 |
wickwire | precisely because once the slot was delegated to the thread, it would get "lost" | 23:22 |
wickwire | but it got solved | 23:22 |
*** Almehdin has quit IRC | 23:23 | |
entil | I pass mainly integers, for counts, except when I pass the actual results, but that was never a problem | 23:23 |
entil | the only problem would be to have the worker thread emit signals straight to qml | 23:23 |
*** Almehdin has joined #sailfishos | 23:23 | |
wickwire | I can't say for sure, but I think that the QVariant is related | 23:23 |
wickwire | I'm just emitting a string | 23:23 |
entil | I'd have to set up the slots so qml understands them and I lost interest when it seemed easier for the worker to emit so the handler picks them up, and the handler emits again and qml picks that up | 23:23 |
wickwire | I would have used QString for that | 23:24 |
wickwire | not QVariant | 23:24 |
wickwire | well in any case I can't say that my solution should serve as an example | 23:25 |
wickwire | but I'd say that perhaps you'd get more understanding on #qt | 23:25 |
wickwire | and with qtproject.org | 23:25 |
wickwire | because these are qt concepts, not so much sailfish specifics | 23:26 |
entil | sure | 23:26 |
entil | thinking of joining | 23:26 |
*** pyksy has quit IRC | 23:26 | |
entil | got enough channels on my hands and the code is coming along smoothly enough that I dunno | 23:26 |
*** pyksy has joined #sailfishos | 23:26 | |
wickwire | in any case, I did resort to threads | 23:26 |
*** faenil has quit IRC | 23:26 | |
wickwire | I did get into trouble exchanging data between QML and C++ | 23:27 |
wickwire | both ways | 23:27 |
entil | you guys are great and I'm afraid a more general channel might be upset about the people not knowing possible silica peculiarities or something ;P | 23:27 |
wickwire | #qt will probably steer clear of silica issues, but as I said, maybe getting help there with generic signals and slots | 23:28 |
*** b0bben has joined #sailfishos | 23:28 | |
wickwire | and c++/qml interoperability | 23:28 |
wickwire | I'm not a part of the developer teams on either side, I'm just an enthusiast like you, and while I haven't yet messed around with sailfishOS on a jollamobile, | 23:29 |
wickwire | I'm hoping that using standard qt5/qml | 23:29 |
wickwire | and best practices from that | 23:30 |
wickwire | will get me most of the way | 23:30 |
*** rcg has quit IRC | 23:30 | |
entil | I think that'll happen | 23:30 |
wickwire | and then, complete the set using the silica specifics | 23:30 |
entil | silica seems trivial on top of qt | 23:30 |
*** Almehdin has quit IRC | 23:32 | |
*** b0bben has quit IRC | 23:32 | |
*** Almehdin has joined #sailfishos | 23:33 | |
entil | anyway, got to sleep(); gnight-> | 23:33 |
*** Kabouik has joined #sailfishos | 23:34 | |
wickwire | take care and good luck! | 23:36 |
*** Kabouik_ has quit IRC | 23:36 | |
*** rcg has joined #sailfishos | 23:38 | |
*** Andy80 has joined #sailfishos | 23:48 | |
*** zmc has joined #sailfishos | 23:49 | |
*** spider-mario has quit IRC | 23:49 | |
*** pixraider_ has quit IRC | 23:54 | |
*** amonk has joined #sailfishos | 23:55 | |
*** tango_ has joined #sailfishos | 23:55 | |
*** RoKenn has quit IRC | 23:56 | |
tango_ | I just noticed that if I use anchors.* layout in a silicagridview it stops responding to orientation changes | 23:56 |
tango_ | this is my current qml http://sprunge.us/iIWe | 23:59 |
tango_ | if I remove the anchors.* from the labels in the backgrounditem, rotating the phones gives me a rotate layout | 23:59 |
tango_ | with the anchors, it doesn't | 23:59 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!