coderus | console.log("something happened") | 00:00 |
---|---|---|
coderus | } | 00:00 |
magegu | coderus: thanks, i cannot find the Output | 00:00 |
coderus | in qt creator application output tab on the bottom | 00:00 |
magegu | coderus: nothing in the IDE views or the logs ive checket so far | 00:00 |
magegu | hm, weird | 00:00 |
magegu | coderus: the app Output view will only show "Connecting to device..." | 00:02 |
*** arcean_ has quit IRC | 00:02 | |
coderus | magegu: something wrong with your configuration | 00:06 |
MSameer | jake9xx: ^^^ | 00:07 |
MSameer | isn't that a known issue? | 00:07 |
*** Morpog_Jolla has quit IRC | 00:12 | |
*** b0bben has quit IRC | 00:12 | |
*** b0bben has joined #sailfishos | 00:13 | |
*** macben has joined #sailfishos | 00:16 | |
* coderus sleeping... | 00:17 | |
*** b0bben has quit IRC | 00:17 | |
*** macben has quit IRC | 00:20 | |
*** jjanvier has joined #sailfishos | 00:21 | |
*** Bloob has quit IRC | 00:28 | |
*** martyone_ has joined #sailfishos | 00:28 | |
*** phaeron has quit IRC | 00:32 | |
*** wickwire has joined #sailfishos | 00:41 | |
*** magegu has quit IRC | 00:41 | |
*** piggz has joined #sailfishos | 00:42 | |
*** Pat_o has quit IRC | 00:43 | |
*** wickwire has quit IRC | 00:50 | |
*** wickwire has joined #sailfishos | 00:51 | |
*** macben has joined #sailfishos | 00:51 | |
*** AlmAck has quit IRC | 00:56 | |
*** macben has quit IRC | 00:56 | |
*** Pat_o has joined #sailfishos | 01:02 | |
*** Almehdin has quit IRC | 01:04 | |
*** niqt has quit IRC | 01:07 | |
*** Almehdin has joined #sailfishos | 01:09 | |
*** wickwire has quit IRC | 01:13 | |
*** qqK has quit IRC | 01:16 | |
*** amonk has quit IRC | 01:17 | |
*** lobo has quit IRC | 01:17 | |
*** louisdk has quit IRC | 01:20 | |
*** Andy80 has quit IRC | 01:20 | |
*** louisdk has joined #sailfishos | 01:29 | |
*** a3Dman has joined #sailfishos | 01:29 | |
*** triggerhappy has joined #sailfishos | 01:31 | |
*** a3Dman has quit IRC | 01:31 | |
*** mfulz has quit IRC | 01:31 | |
*** a3Dman has joined #sailfishos | 01:32 | |
*** lobo has joined #sailfishos | 01:33 | |
*** a3Dman has quit IRC | 01:33 | |
*** a3Dman has joined #sailfishos | 01:34 | |
*** a3Dman has joined #sailfishos | 01:34 | |
*** ericcc has joined #sailfishos | 01:35 | |
*** Almehdin has quit IRC | 01:44 | |
*** Almehdin has joined #sailfishos | 01:47 | |
*** Almehdin has quit IRC | 01:49 | |
*** Almehdin has joined #sailfishos | 01:50 | |
*** mk2soldier has joined #sailfishos | 01:54 | |
*** macben has joined #sailfishos | 01:55 | |
*** lobo has quit IRC | 02:01 | |
*** macben has quit IRC | 02:02 | |
*** mk2soldier has quit IRC | 02:14 | |
*** softmetz_ has joined #sailfishos | 02:14 | |
*** jstaniek has quit IRC | 02:16 | |
*** Morpog_Jolla has joined #sailfishos | 02:17 | |
*** softmetz has quit IRC | 02:18 | |
*** louisdk has quit IRC | 02:27 | |
*** M4rtinK has quit IRC | 02:32 | |
*** raven24 is now known as raven24^{off} | 02:40 | |
*** Morpog_ has joined #sailfishos | 02:43 | |
*** Morpog_Jolla has quit IRC | 02:45 | |
*** Morpog_Mobile_ has quit IRC | 02:45 | |
*** Morpog_PC has quit IRC | 02:46 | |
*** artemma has joined #sailfishos | 02:46 | |
*** jjanvier has quit IRC | 03:02 | |
*** chaofeng has joined #sailfishos | 03:10 | |
*** Morpog_Jolla has joined #sailfishos | 03:20 | |
*** cxl000 has joined #sailfishos | 03:25 | |
*** ericcc has quit IRC | 03:51 | |
*** ericcc has joined #sailfishos | 03:52 | |
*** macben has joined #sailfishos | 04:02 | |
*** amonk has joined #sailfishos | 04:02 | |
*** amonk has quit IRC | 04:03 | |
*** amonk has joined #sailfishos | 04:05 | |
*** amonk has quit IRC | 04:05 | |
*** amonk has joined #sailfishos | 04:05 | |
*** macben has quit IRC | 04:06 | |
*** artemma has quit IRC | 04:20 | |
tanghus | Is it possible to disable SDK modifying the yaml file? It fuxxees up my CI | 04:24 |
*** Riksha has quit IRC | 04:34 | |
*** furikku has joined #sailfishos | 04:53 | |
*** Morpog_Mobile has joined #sailfishos | 04:57 | |
*** hcarrega has quit IRC | 05:12 | |
*** martyone_ has quit IRC | 05:13 | |
*** Hurrian has joined #sailfishos | 05:32 | |
*** MSameer has quit IRC | 05:35 | |
*** Almehdin has quit IRC | 05:35 | |
*** MSameer has joined #sailfishos | 05:35 | |
*** Almehdin has joined #sailfishos | 05:43 | |
*** zmc has quit IRC | 06:13 | |
*** zmc has joined #sailfishos | 06:18 | |
*** Morpog_Jolla has quit IRC | 06:33 | |
*** macben has joined #sailfishos | 07:06 | |
*** macben has quit IRC | 07:11 | |
*** proyvind has joined #sailfishos | 07:25 | |
coderus | tanghus: CI>? | 07:32 |
tanghus | coderus: Continuos Integration. In this case more Continuos Translation :) | 07:33 |
*** nwoki has quit IRC | 07:40 | |
*** nwoki has joined #sailfishos | 07:44 | |
*** nwoki has quit IRC | 07:44 | |
*** nwoki has joined #sailfishos | 07:44 | |
*** phaeron has joined #sailfishos | 07:48 | |
*** krnlyng has quit IRC | 07:51 | |
*** krnlyng has joined #sailfishos | 07:54 | |
*** macben has joined #sailfishos | 08:10 | |
tango_ | is there a way to read/write simple configuration files (.ini, .xml) from qml diectly? | 08:12 |
coderus | tanghus: for xml there XmlListModel | 08:22 |
coderus | for ini nothing in qml | 08:22 |
coderus | tanghus: i'm just not building using qtc :) | 08:23 |
coderus | sorry :D | 08:23 |
tango_ | coderus: yeah but xmllistmodel only reads from xml files, I don't think it can write them too | 08:23 |
coderus | tango_: for xml XmlListModel in QML, and nothing for ini. | 08:23 |
coderus | yup | 08:23 |
coderus | you need C++/Qt code | 08:24 |
coderus | its QtXML | 08:25 |
tango_ | which doesn't have qml bindings, I assume | 08:25 |
coderus | and for ini files you can use QSettings. | 08:26 |
coderus | QSettings settings("/path/to/test.ini", QSettings::IniFormat); | 08:26 |
coderus | settings.beginGroup("TAG1"); | 08:26 |
coderus | and so on | 08:26 |
tango_ | ah, interesting | 08:27 |
tango_ | yeah, it's for settings, so that will do | 08:27 |
tango_ | oh wait, still c++ | 08:27 |
tango_ | daaaaaaaaamn | 08:27 |
coderus | sure | 08:27 |
coderus | dont beware C++ | 08:27 |
*** Sviox has joined #sailfishos | 08:27 | |
coderus | you can make class and export it to qml easily | 08:28 |
coderus | in a half of hour or even less | 08:28 |
tango_ | coderus: I know, that's not the reason I'm trying to avoid c++ | 08:28 |
coderus | lol | 08:28 |
tango_ | coderus: it's just that my sdk setup doesn't work | 08:29 |
coderus | if you want to avoid c++ you need to use qmlscene and not sailfishapp | 08:29 |
tango_ | so I can code qml stuff directly on the phone and it works great | 08:29 |
coderus | write support classes for xml and settings oncce and continue using qml | 08:29 |
coderus | :) | 08:29 |
*** Trizt has quit IRC | 08:29 | |
*** Bloob has joined #sailfishos | 08:32 | |
*** Andy80 has joined #sailfishos | 08:32 | |
*** _miqu_ has joined #sailfishos | 08:32 | |
coderus | you can also build qmlplugin and import it to any qml you want | 08:33 |
*** Trizt has joined #sailfishos | 08:36 | |
*** macben has quit IRC | 08:41 | |
*** krnlyng has quit IRC | 08:45 | |
*** macben has joined #sailfishos | 08:48 | |
*** krnlyng has joined #sailfishos | 08:48 | |
*** fk_lx has joined #sailfishos | 08:48 | |
*** macben has joined #sailfishos | 08:49 | |
*** macben has quit IRC | 08:50 | |
coderus | is it the same connman with sailfish one? https://wiki.archlinux.org/index.php/Connman | 08:55 |
*** nwik has quit IRC | 08:56 | |
*** macben has joined #sailfishos | 09:00 | |
celeron55 | i can tell that it is because the first link on the page is already visited in my browser and i have only visited it's page before from some sailfish/nemo/mer pages 8) | 09:00 |
*** macben has quit IRC | 09:01 | |
coderus | well, is there ready to get connmanctl then? | 09:02 |
*** chaofeng has quit IRC | 09:06 | |
*** ericcc has quit IRC | 09:11 | |
*** ericcc has joined #sailfishos | 09:12 | |
*** khertan has quit IRC | 09:14 | |
*** Communi11778 has joined #sailfishos | 09:29 | |
*** Communi11778 has left #sailfishos | 09:33 | |
*** magegu has joined #sailfishos | 09:34 | |
*** magegu has quit IRC | 09:37 | |
Sviox | Someone suggested some days ago to use condition packagesExists(sailfishapp) in .pro file to make sailfish specific configurations, but I'm getting "not a recognized test function" error. Any ideas? | 09:39 |
Andy80 | I'm trying to get rid of an old application template I created with an early version of the SDK but it looks like it's a blody mess :( | 09:49 |
Andy80 | not only they switched from sailfishapplication (included in sources) to sailfishapp, but also the .pro/.pri included must be different | 09:50 |
Andy80 | has anyone a complete app published somewhere, with the new template, where I can take example from? | 09:51 |
*** pixraider has joined #sailfishos | 09:56 | |
fk_lx | Andy80: I think the easiest way would be probably creating a new project in new SDK and either copy your stuff there or just use it as sth to copy from to your original project | 10:00 |
*** macben has joined #sailfishos | 10:00 | |
Andy80 | fk_lx: I've created a new project and I'm taking example from it, but I'm modifying the existing one I've. Of course I'm working on a different git branch, because at the moment nothing compiles :/ | 10:01 |
*** _miqu_ has quit IRC | 10:03 | |
fk_lx | well just look carefully at all errors you get | 10:03 |
*** macben has quit IRC | 10:05 | |
*** _miqu_ has joined #sailfishos | 10:07 | |
*** pixraider has quit IRC | 10:07 | |
*** psedlak has quit IRC | 10:09 | |
Andy80 | fk_lx: yes but I'm not expert at all of .pro stuff.... I'm getting tons of warnings and even errors in main.cpp | 10:10 |
fk_lx | maybe some includes missing? | 10:10 |
*** mk2soldier has joined #sailfishos | 10:10 | |
Andy80 | fk_lx: I don't know... the fact is that the syntax has changed from sailfishapplication and sailfishapp | 10:11 |
Andy80 | different methods also | 10:11 |
Andy80 | if you give me a minute I can push the branch | 10:11 |
*** psedlak has joined #sailfishos | 10:12 | |
Andy80 | fk_lx: ok, I've pushed it here https://github.com/andreagrandi/sailsoma/tree/newtemplate | 10:14 |
suy | Sviox: that works for me. And I copied from others. It has to work. Are you doing something different? | 10:14 |
*** nwoki_ has joined #sailfishos | 10:14 | |
Andy80 | 'going to grab some coffee... | 10:15 |
suy | Andy80: can you paste the errors? | 10:15 |
Andy80 | yes | 10:15 |
*** itbaron has joined #sailfishos | 10:16 | |
suy | In main, I think you lack the setSource call | 10:16 |
Sviox | suy: does it work if you simply create helloworld and put that condition in there? Or does it require something to get it working? | 10:16 |
suy | view->setSource(SailfishApp::pathTo("qml/foobar.qml")); | 10:17 |
Andy80 | suy: here are the errors http://pastebin.com/i5a7SkUM | 10:17 |
Andy80 | suy: yes I removed because it was not comiling anyway... | 10:17 |
*** nwoki has quit IRC | 10:18 | |
suy | Sviox: but why are you using the condition for? I'm using it to set DEFINES+=Q_OS_SAILFISH, for example. Or for choosing different qml files. | 10:18 |
suy | Andy80: error: invalid use of incomplete type 'struct QQmlContext' <<-- that :) | 10:19 |
suy | Andy80: you removed it in the commit :) | 10:19 |
*** faenil has joined #sailfishos | 10:20 | |
Andy80 | suy: am I missing an include? | 10:20 |
suy | Andy80: yes, you removed #include <QQmlContext>, for example | 10:20 |
Sviox | suy: I'm trying to add a way to #ifdef code so I can support Harmattan, Sailfish and desktop with single code base. | 10:20 |
Sviox | And also, in .pro file to add correct files per platform | 10:20 |
Andy80 | suy: right. Ok, now it compiles but I'm still getting tons of warnings. Let me commit one moment.... | 10:22 |
suy | Sviox: that's what I'm doing too. But I don't get why you have something like "not a recognized test function", since packagesExist is standard qmake. | 10:22 |
suy | Sviox: oh, I think I got it... a typo. :P | 10:22 |
jake9xx | MSameer: referring to your q; yes | 10:22 |
suy | Sviox: is packagesExist, not packagesExists :) | 10:22 |
Andy80 | suy: do you notice any missing things in .pro file? Because as you can see http://pastebin.com/8frGrN9b it now compiles but I get many warnings | 10:25 |
suy | Andy80: in your last commit you lack a QApplication :) | 10:26 |
suy | SailfishApp::application(int, char *[]) to get the QGuiApplication * | 10:26 |
Andy80 | suy: yes but.... | 10:27 |
suy | every Qt app (well, almost) needs a QCoreApplication, or a subclass of it | 10:27 |
Andy80 | I had this QScopedPointer<QGuiApplication> app(Sailfish::createApplication(argc, argv)); | 10:27 |
suy | correct | 10:27 |
Andy80 | yes but there is something I don't understand | 10:27 |
Andy80 | suy: the example application I created had this: return SailfishApp::main(argc, argv); | 10:28 |
Andy80 | I don't understand what the main does | 10:28 |
*** qqK has joined #sailfishos | 10:28 | |
Andy80 | suy: because if you have the app you just call return app->exec(); | 10:28 |
Andy80 | suy: while I'm calling show() because the comment said // To display the view, call "show()" (will show fullscreen on device). | 10:29 |
Andy80 | I'm confused | 10:29 |
suy | Yes, that initial template was quite... naive. I don't like it at all. It's for making a main() trivial if you only want to load a QML, which is not very usefull outside HelloWorld. | 10:29 |
*** onurati has joined #sailfishos | 10:29 | |
suy | A more real world example is here: https://github.com/communi/communi-sailfish/blob/master/src/main.cpp | 10:29 |
Andy80 | suy: let me see if I'm able to fix my main.cpp.... | 10:30 |
suy | Normally, in Qt, you declare a QApplication on the stack. But I don't know why, for Sailfish, they want you to call SailfishApp::application(argc, argv), which returns a pointer. | 10:31 |
suy | So you need to wrap it in a QScopedPointer to guard you from memory leaks. (assuming they use dynamic memory, which I don't know) | 10:32 |
Andy80 | suy: just pushed the new main.cpp | 10:32 |
suy | Andy80: seems right now. | 10:33 |
*** mk2soldier has quit IRC | 10:34 | |
Andy80 | suy: yes.. I'm just getting those errors in Makefile | 10:34 |
Andy80 | sorry... warning | 10:34 |
Andy80 | warnings not errors | 10:34 |
*** arcean has joined #sailfishos | 10:34 | |
suy | I get warnings on the rpmbuild too. If the application itself compiles, and works, and generates no warnings at runtime, ignore for now. | 10:35 |
suy | Is more an issue for packaging, and in that I can't help you, since I've never done it yet. | 10:36 |
Andy80 | suy: it compiles and run on the device. I've only tried the deploy as binary. I will try the deploy as rpm package now... | 10:37 |
*** mk2soldier has joined #sailfishos | 10:41 | |
*** triggerhappy has quit IRC | 10:42 | |
Andy80 | uhm... the deployment with rpm doesn't work infact, I'm getting this File not found: /home/deploy/installroot/usr/share/harbour-sailsoma | 10:45 |
Andy80 | probably I'm missing something in the .pro | 10:45 |
Andy80 | I tried to port everything from the .pri but it had some stuff that I can't find in other projects | 10:46 |
*** freedomrun has joined #sailfishos | 10:52 | |
*** Pat_o has quit IRC | 10:59 | |
coderus | Sviox: isnt it packageExists and not packagesExists? | 11:02 |
*** arcean has quit IRC | 11:02 | |
suy | Yep, that's what I said... too late. I think I told him wrong the first time he asked. Sorry about that | 11:04 |
*** TW1920_ has joined #sailfishos | 11:05 | |
*** TW1920 has quit IRC | 11:05 | |
*** arcean has joined #sailfishos | 11:07 | |
coderus | Andy80: you prting harmattan qmlapplicationviewer to sailfiish? | 11:08 |
*** khertan has joined #sailfishos | 11:08 | |
Andy80 | coderus: uhm.... not exactly. I started from a pure SailfishOS project (even if created with an old SDK template) and I added .c and .qml and ported them... | 11:09 |
Sviox | suy: Oh, nice catch :) | 11:09 |
Andy80 | I'm getting this error when I create the rpm package http://pastebin.com/rJi80yAq and here is my .pro https://github.com/andreagrandi/sailsoma/blob/newtemplate/harbour-sailsoma.pro any idea how to fix it? | 11:10 |
*** TW1920_ has quit IRC | 11:11 | |
*** TW1920 has joined #sailfishos | 11:12 | |
coderus | show your yaml/spec first | 11:12 |
coderus | remove qml and quick from QT += | 11:13 |
coderus | btw, are you on last 1312? | 11:14 |
Andy80 | coderus: the yaml is here https://github.com/andreagrandi/sailsoma/blob/newtemplate/rpm/harbour-sailsoma.yaml | 11:15 |
Andy80 | coderus: yes, I'm | 11:15 |
Andy80 | coderus: but as I told you I created the initial project with the first release of the SDK and now I want to port it to the latest template and get rid of that sailfishapplication folder.... | 11:15 |
coderus | do clean, remove all makefiles, do clean build | 11:16 |
*** TW1920 has quit IRC | 11:17 | |
Sviox | I'm still trying to figure out the connections between .pro. yaml and .spec files (Debian system seems so much more convinient..). For example, if I simply want to add an icon file to the project, what should I do? | 11:17 |
Andy80 | coderus: can I remove all the build-* folder ? Because it's not cleaned at all with Clean All | 11:18 |
*** TW1920 has joined #sailfishos | 11:18 | |
*** paju has left #sailfishos | 11:19 | |
coderus | Sviox: first add it to pro file as usual | 11:19 |
coderus | yaml/spec just saying which files to include in which project | 11:19 |
*** Tumex_ has quit IRC | 11:20 | |
*** Eztran has joined #sailfishos | 11:20 | |
coderus | its lite package.files in debian | 11:20 |
*** Tumex_ has joined #sailfishos | 11:20 | |
coderus | you can have multiple packages in spec and separate files of one project to different packages | 11:20 |
coderus | thats it | 11:20 |
coderus | Andy80: sure | 11:20 |
*** paju has joined #sailfishos | 11:20 | |
Andy80 | coderus: done everything you said, same error again: File not found: /home/deploy/installroot/usr/share/harbour-sailsoma | 11:21 |
suy | Sviox: As coderus said, the .pro file is the buildsystem. The yaml/spec are for bulding the package only. It's 2 phases. | 11:21 |
Sviox | Can I still use the INSTALLS keyword and create my own group of files with certain install path? Will rpm build take those in? | 11:21 |
*** TW1920_ has joined #sailfishos | 11:22 | |
*** crnd has quit IRC | 11:22 | |
*** Vostok has quit IRC | 11:22 | |
*** Juice__ has quit IRC | 11:22 | |
*** crnd has joined #sailfishos | 11:22 | |
Sviox | I guess my confision comes from some files and locations in the Sailfish template being determined in the yaml/spec file while I'm used to only specify the INSTALLS on pro file and let debian packaging take care of including the correct files.. | 11:23 |
*** Vostok has joined #sailfishos | 11:23 | |
*** SieniMaagi has quit IRC | 11:23 | |
*** SieniMaagi has joined #sailfishos | 11:24 | |
Sviox | For example, the [appname].png default icon isn't defined in the template hello world .pro file at all, which seems wrong. | 11:24 |
*** TW1920 has quit IRC | 11:25 | |
*** iekku has quit IRC | 11:25 | |
*** iekku has joined #sailfishos | 11:26 | |
*** Vostok has quit IRC | 11:27 | |
*** Bysmyyr has quit IRC | 11:27 | |
*** JvD_ has quit IRC | 11:28 | |
*** Vostok has joined #sailfishos | 11:28 | |
*** Juice_ has joined #sailfishos | 11:28 | |
*** Bysmyyr has joined #sailfishos | 11:28 | |
*** JvD_ has joined #sailfishos | 11:30 | |
Sviox | Also, the .yaml file contains %{_datadir}/icons/hicolor/86x86/apps/%{name}.png under files. That refers only to target path. If I had my icon under icons folder instead of root folder, the build would fail because of this. How do I determine the source file relative path? | 11:32 |
Andy80 | one thing is sure: packaging and fixing templates and .pro errors should not take more time than actually coding the app :( | 11:32 |
Sviox | Indeed | 11:33 |
Sviox | I thought I had reached a solid understanding with the build system when I coded for Harmattan but this template and rpm packaging is really confusing ;) | 11:34 |
Andy80 | another weak point is the totally lack of documentation | 11:37 |
Andy80 | at least in QtCreator nothing is included | 11:37 |
Andy80 | one has to digg around on github and look other people sources and guess things | 11:37 |
Sviox | Lol, just what I'm doing now :) | 11:39 |
*** tomyri has quit IRC | 11:40 | |
suy | Andy80: qmake documentation is included | 11:40 |
*** spider-mario has joined #sailfishos | 11:40 | |
suy | what is not included is docs on the SailfishApp thing | 11:40 |
suy | The header is the only documentation. | 11:40 |
*** tomyri has joined #sailfishos | 11:41 | |
*** Vostok has quit IRC | 11:41 | |
Sviox | What on earth.. doesn't .yaml license fiels allow multi-line text? Building package failed with long(ish) multi-line text but passed when I removed all but first line | 11:42 |
*** freedomrun has quit IRC | 11:42 | |
*** tabasko_ has quit IRC | 11:43 | |
*** Bysmyyr has quit IRC | 11:44 | |
*** eeko has quit IRC | 11:44 | |
*** crnd has quit IRC | 11:45 | |
*** suosaask1 has quit IRC | 11:45 | |
*** Sage_ has quit IRC | 11:45 | |
*** Latexi95 has quit IRC | 11:45 | |
*** Pantti has quit IRC | 11:45 | |
*** SieniMaagi has quit IRC | 11:46 | |
*** niko_s has quit IRC | 11:46 | |
*** SieniMaagi has joined #sailfishos | 11:47 | |
Sviox | Hmm, looks like I can use the INSTALLS on .pro file | 11:48 |
*** Vostok has joined #sailfishos | 11:48 | |
Sviox | Makes things a lot easier | 11:48 |
*** cardinal has joined #sailfishos | 11:48 | |
*** tabasko has joined #sailfishos | 11:49 | |
*** ericcc has quit IRC | 11:50 | |
*** Bysmyyr has joined #sailfishos | 11:50 | |
*** cardinal is now known as hcarrega | 11:50 | |
*** faenil_ has joined #sailfishos | 11:51 | |
*** eeko has joined #sailfishos | 11:51 | |
Andy80 | it looks like I've fixed my problem.. it was a mix of .yaml and .pro settings... | 11:51 |
Andy80 | now I've to properly test on the device | 11:51 |
*** suosaaski has joined #sailfishos | 11:52 | |
*** faenil has quit IRC | 11:52 | |
*** Sage_ has joined #sailfishos | 11:53 | |
Andy80 | it look like it works :) | 11:53 |
Andy80 | having lunch now, see you later | 11:53 |
*** chaofeng has joined #sailfishos | 11:56 | |
*** crnd has joined #sailfishos | 11:57 | |
*** freedomrun has joined #sailfishos | 11:59 | |
*** Pantti has joined #sailfishos | 12:02 | |
*** chaofeng has quit IRC | 12:02 | |
*** chaofeng has joined #sailfishos | 12:03 | |
*** macben has joined #sailfishos | 12:03 | |
*** Andy80 has quit IRC | 12:04 | |
coderus | Sviox: you SHOULD use INSTALLS, othervise it will not be included in package ;) | 12:05 |
*** zhost has joined #sailfishos | 12:06 | |
*** _miqu_ has quit IRC | 12:06 | |
*** jjanvier has joined #sailfishos | 12:07 | |
*** macben has quit IRC | 12:08 | |
*** spider-mario has quit IRC | 12:08 | |
*** Andy80 has joined #sailfishos | 12:09 | |
*** PeterPark has quit IRC | 12:12 | |
*** niko_s has joined #sailfishos | 12:13 | |
Andy80 | why, even if I have added the URL: section on my .yaml file, it's not parsed by QtC? https://github.com/andreagrandi/sailsoma/blob/newtemplate/rpm/harbour-sailsoma.yaml | 12:18 |
*** raven24^{off} is now known as raven24 | 12:26 | |
*** dhbiker has quit IRC | 12:27 | |
*** dhbiker has joined #sailfishos | 12:31 | |
*** RoKenn has joined #sailfishos | 12:38 | |
Andy80 | argh.... weird packaging/deploy problem... | 12:40 |
Andy80 | I've completly removed my app from my device, uninstalling it. Then I deploy it again using rpm build. It's deployed etc.... BUT when I open the About, the version is 0.3.1 even if my source says 0.3.2 | 12:40 |
Andy80 | I don't understand where it gets that old file from :( | 12:41 |
Andy80 | I fear that probably I'm not deploying the qml files correctly and that my binary is using the old ones | 12:43 |
*** zhxt has joined #sailfishos | 12:45 | |
coderus | Released Mitakuuluu v0.1-18 with translations support. https://openrepos.net/content/coderus/mitakuuluu | 12:46 |
*** a3Dman has quit IRC | 12:46 | |
*** faenil has joined #sailfishos | 12:48 | |
*** faenil_ has quit IRC | 12:48 | |
*** flanag has joined #sailfishos | 12:49 | |
Andy80 | uffffffff :( | 12:53 |
Andy80 | I'm getting crazy with these damn .yaml and .pro :( | 12:53 |
Andy80 | I did think it was fixed and it's not | 12:53 |
*** edgar2 has joined #sailfishos | 13:03 | |
*** chaofeng has quit IRC | 13:06 | |
*** Trizt has quit IRC | 13:06 | |
*** freedomrun has quit IRC | 13:07 | |
*** Trizt has joined #sailfishos | 13:08 | |
*** stephg has joined #sailfishos | 13:08 | |
*** Trizt has quit IRC | 13:10 | |
*** Nirkus has quit IRC | 13:11 | |
*** Eztran has quit IRC | 13:11 | |
*** Trizt has joined #sailfishos | 13:12 | |
*** kaari has quit IRC | 13:18 | |
Morpog_ | coderus, translations don't get used | 13:22 |
Morpog_ | Yes, I Quit Mitäkuuluu after setting German :D | 13:23 |
thesignal | hi, i have added my application weeks ago. it has been accepted twice in the harbour, but it's still not showing up in the jolla store. i also wrote a email to dev-care 5 days ago, but haven't recived any answer. I think it might still be the package naming which prevents my app from showing up in the store, who does a correct name look like? my package name is: harbour-ohm-1.0.1-1.armv7hl.rpm | 13:26 |
*** Tuilu_ has joined #sailfishos | 13:27 | |
Morpog_ | if it fails, they tell you why | 13:27 |
thesignal | it doesn't fail Morpog_, it also says "PUBLISHED", it's already accepted | 13:28 |
Morpog_ | then, it should pop up in store soon I guess | 13:28 |
thesignal | it's published since over a week | 13:28 |
thesignal | and it was already approved one month ago and didn't show up | 13:29 |
Morpog_ | strange | 13:29 |
thesignal | so i changed the package name and put it again to QA | 13:29 |
Morpog_ | try to contact developer care | 13:29 |
thesignal | i did already | 13:29 |
thesignal | maybe they'll answer next week | 13:30 |
thesignal | but it's really annoying | 13:30 |
*** Tuilu has quit IRC | 13:30 | |
Morpog_ | they had less personal due to holidays till 7th | 13:30 |
thesignal | yeah i know | 13:31 |
*** artemma has joined #sailfishos | 13:31 | |
*** leinir has quit IRC | 13:31 | |
*** clickety has quit IRC | 13:31 | |
*** leinir has joined #sailfishos | 13:31 | |
*** leinir has quit IRC | 13:31 | |
*** leinir has joined #sailfishos | 13:31 | |
*** Tuilu has joined #sailfishos | 13:32 | |
*** Tuilu_ has quit IRC | 13:32 | |
*** Zotan has joined #sailfishos | 13:32 | |
*** Zotan has quit IRC | 13:33 | |
*** clickety has joined #sailfishos | 13:33 | |
*** macben has joined #sailfishos | 13:34 | |
*** Zotan has joined #sailfishos | 13:35 | |
*** khertan has quit IRC | 13:36 | |
*** Kabouik has joined #sailfishos | 13:36 | |
*** RoKenn has quit IRC | 13:38 | |
*** macben has quit IRC | 13:39 | |
*** Andy80 has quit IRC | 13:40 | |
*** jjanvier has quit IRC | 13:41 | |
Sviox | coderus: should I also add application binary to INSTALLS (i.e. target)? Because that seems to go into the rpm without any apparent command on the project file. | 13:45 |
jpnurmi | Sviox: shouldn't be necessary if you have CONFIG += sailfishapp in your .pro file | 13:51 |
*** Andy80 has joined #sailfishos | 13:52 | |
*** faenil has quit IRC | 13:57 | |
*** ericcc has joined #sailfishos | 14:00 | |
suy | Is there any convenience function in QML/JS to format text? Doing text: name + " (" + type + ")" is not pretty :) | 14:09 |
suy | I've found for formatting dates only. | 14:09 |
suy | Ah, String is extended to support .arg(), nice. | 14:10 |
*** Morpog_Jolla has joined #sailfishos | 14:11 | |
*** edgar2 has quit IRC | 14:11 | |
*** phaeron has quit IRC | 14:12 | |
*** hoelzro has quit IRC | 14:12 | |
*** hoelzro has joined #sailfishos | 14:13 | |
coderus | My apologiez. Mitakuuluu v0.1-19 should fix localizations. | 14:14 |
*** wickwire has joined #sailfishos | 14:14 | |
coderus | suy: you can also use qsTr("Something %1 happened!").arg(checkIfGood(something) ? qsTr("good") : qsTr("bad")) | 14:16 |
suy | coderus: yes. I've been coding lazily, and I haven't wrapped user strings in qsTr() yet. :) But that would return the String for free. | 14:17 |
suy | Most of my strings aren't translatable anyway | 14:18 |
Sviox | Is id based localization also supported by qml? | 14:18 |
MSameer | qsTrId() is there IIRC | 14:18 |
*** phaeron has joined #sailfishos | 14:19 | |
MSameer | Sviox: qsTrId is available | 14:19 |
MSameer | http://qt-project.org/doc/qt-5.0/qtquick/qtquick-internationalization.html | 14:19 |
*** khertan has joined #sailfishos | 14:20 | |
*** a3Dman has joined #sailfishos | 14:23 | |
jake9xx | MSameer: the issue you referred y'day is related to ssh keys and their config in Mer SDK VM - lbt ought to know about it too. | 14:23 |
MSameer | jake9xx: someone was asking. I just pinged you. I don't remember who asked :( | 14:24 |
MSameer | jake9xx: but thanks for following up | 14:24 |
*** faenil has joined #sailfishos | 14:25 | |
*** faenil has quit IRC | 14:26 | |
*** edgar2 has joined #sailfishos | 14:29 | |
*** a3Dman has quit IRC | 14:30 | |
*** a3Dman has joined #sailfishos | 14:30 | |
Sviox | MSameer: thanks | 14:32 |
Sviox | Btw, where should I put by application files? On Harmattan, /opt/[packagename] was preferred what about on Sailfish? | 14:33 |
*** macben has joined #sailfishos | 14:35 | |
*** zhxt has quit IRC | 14:39 | |
tango_ | /usr/share/{appname}/ | 14:39 |
*** macben has quit IRC | 14:39 | |
suy | Sviox: check the faq: https://harbour.jolla.com/faq | 14:40 |
*** arcean has quit IRC | 14:40 | |
suy | (in case you want to comply with harbour, I assumed) | 14:40 |
*** wickwire has quit IRC | 14:41 | |
*** Goran_ has joined #sailfishos | 14:46 | |
Goran_ | are sailfish apps arm architecture binaries? Or some bytecode? | 14:46 |
fk_lx | native sailfish apps are usually arm binaries | 14:46 |
fk_lx | but you could have Python script for example | 14:47 |
Goran_ | thx | 14:48 |
fk_lx | Goran_: for apps development see sailfishos.org | 14:49 |
*** Goran_ has quit IRC | 14:52 | |
*** John24 has joined #sailfishos | 14:53 | |
John24 | hello guys :) | 14:54 |
John24 | would anyone happen to know how to pass variables between QML files? I got firstpage.qml as the main user interace and secondpage.qml as the page in which user enter connection data 'ip, port, password, usrname' and I want them to be passed back to firstpage.qml | 14:55 |
John24 | how would I do it? I searched on google but I couldn't find anything really useful | 14:55 |
suy | John24: through properties. | 14:55 |
suy | something like pageStack.addPage("secondpage.qml", {foo: bar}) | 14:56 |
*** Andy80 has quit IRC | 14:56 | |
*** jjarven has quit IRC | 14:56 | |
*** Frye has quit IRC | 14:57 | |
John24 | i see i assume {foo: bar}) is foo the variable name and bar is the value? | 14:57 |
khertan | but linking to python aren"t allowed for Harbour (currently) | 14:58 |
suy | John24: yes. See the docs for PageStack, for example. | 14:58 |
*** faenil has joined #sailfishos | 14:58 | |
John24 | why thank you kind sir I shall read about PageStack now! | 14:59 |
*** magegu has joined #sailfishos | 15:00 | |
*** wickwire has joined #sailfishos | 15:00 | |
*** BeholdMyGlory has joined #sailfishos | 15:03 | |
*** Frye has joined #sailfishos | 15:06 | |
*** wickwire has quit IRC | 15:06 | |
*** Sarvi has joined #sailfishos | 15:06 | |
*** wickwire has joined #sailfishos | 15:08 | |
*** magegu has quit IRC | 15:09 | |
*** Frye has quit IRC | 15:10 | |
*** mohjive has joined #sailfishos | 15:10 | |
John24 | suy thank you it all works now, a user can choose an ip and port and so on :) | 15:12 |
John24 | I got another question, how do we show messages to users? | 15:12 |
John24 | I mean like message popups | 15:13 |
MSameer | banners you mean? | 15:13 |
MSameer | that component does not exist | 15:13 |
John24 | yes I think so | 15:13 |
MSameer | i am sure others know how but I personally don't know | 15:13 |
John24 | so how is the sailfishOS is using it | 15:13 |
John24 | it can't be system exclusive | 15:13 |
*** nicu has quit IRC | 15:13 | |
MSameer | i think there is a way via libmlite but I don't know | 15:15 |
John24 | thanks I'll need to look into it | 15:15 |
*** jjarven has joined #sailfishos | 15:15 | |
Sviox | It seems like the FAQ is disallowing usage of libarchive even though it is available on the emulator and has a stable API. Does this really mean my app wouldn't get accepted because of the dependency? Also, what should I use instead of libarchive? | 15:17 |
proyvind | direct apis to compressors/archivers? | 15:17 |
proyvind | udnno | 15:17 |
proyvind | my wild guess | 15:17 |
mohjive | hello | 15:17 |
mohjive | tried to build an imported project, cutespotify, but I get this "Package libresourceqt5 not found" - isn't lib resource installed with the sdk? | 15:18 |
*** stephg_ has joined #sailfishos | 15:19 | |
*** stephg_ has quit IRC | 15:19 | |
*** stephg has quit IRC | 15:20 | |
*** stephg has joined #sailfishos | 15:20 | |
*** a3Dman has quit IRC | 15:20 | |
*** a3Dman has joined #sailfishos | 15:21 | |
*** a3Dman has joined #sailfishos | 15:21 | |
*** s1gk1ll has quit IRC | 15:23 | |
*** Tumex_ has quit IRC | 15:26 | |
*** s1gk1ll has joined #sailfishos | 15:30 | |
John24 | having issues with pagestack | 15:34 |
John24 | if I use push it all works well but it obviously add a page to the stack which I don't want, so i tried to use pop but I get errors | 15:35 |
*** Tumex_ has joined #sailfishos | 15:35 | |
John24 | my call: pageStack.pop(Qt.resolvedUrl("FirstPage.qml"), {ip: tfIP.text, port: tfPORT.text, username: tfUSR.text, password: tfPASS.text}) | 15:35 |
John24 | error: Error: Cannot pop to invalid target page which is not present on the stack | 15:35 |
jpnurmi | John24: what do you want to do? a wild guess... perhaps replace() does what you want? | 15:36 |
John24 | on the first page i use dfefault pagestack call with pulley menu | 15:37 |
John24 | PullDownMenu { MenuItem { text: "Connect" onClicked: pageStack.push(Qt.resolvedUrl("SecondPage.qml")) } } | 15:37 |
John24 | so second page is placed on the stack | 15:37 |
John24 | I assume that once your done with second page you use pop to remove it | 15:37 |
Tumeez | Wnglish language iis mysterious boxes in MitäKuuluu settings? | 15:37 |
Tumeez | English* | 15:38 |
John24 | replace only replaces the current stack wich is secondpage.qmp but does not return to firstpage | 15:39 |
John24 | which is weird | 15:39 |
jpnurmi | John24: if you want to go back to the first page, yes, pop() would do that. but the first page is there already in the stack so you shouldn't pass Qt.resolvedUrl(...) | 15:39 |
John24 | oh didn't know that, so just leave my properties? | 15:40 |
suy | John24: just pop(), without parameters. Read the docs ;) | 15:40 |
jpnurmi | just pageStack.pop() will remove the top most page from the stack | 15:40 |
John24 | well I want to send parameters from second page to first page | 15:41 |
suy | That's a different issue. Use something like myFirstPage.someProperty=someValue, and then pop() | 15:42 |
jpnurmi | the second page almost sounds like a dialog then? you could use Dialog and implement the onAccepted handler | 15:42 |
John24 | i'll show you now guys :) give me a second | 15:43 |
*** a3Dman has quit IRC | 15:43 | |
*** a3Dman has joined #sailfishos | 15:43 | |
*** arcean has joined #sailfishos | 15:44 | |
Morpog_ | coderus, I just updated german translation to fix a few things like too long translated strings. Would be great if next update could include it. | 15:44 |
John24 | page one : http://i.imgur.com/TW7DMDZ.png | 15:45 |
John24 | page two : http://i.imgur.com/IyzGQsQ.png | 15:45 |
Morpog_ | client :D | 15:46 |
*** s1gk1ll_ has joined #sailfishos | 15:47 | |
John24 | so you guys think i am doing it wrong by having a second page for connection settings? | 15:47 |
*** DarkSim has joined #sailfishos | 15:48 | |
Morpog_ | no, looks fine | 15:48 |
*** Andy80 has joined #sailfishos | 15:48 | |
*** s1gk1ll has quit IRC | 15:49 | |
Andy80 | jpnurmi: ping | 15:49 |
*** victor1234 has joined #sailfishos | 15:50 | |
John24 | ahh just using pageStack.pop() gives: ReferenceError: FirstPage is not defined | 15:50 |
jpnurmi | John24: i'd make the second page a dialog. if the user changes his mind, s/he can cancel connecting | 15:50 |
*** wickwire has quit IRC | 15:51 | |
jpnurmi | something like "Component { id: myDialog; MyDialog { onAccepted: ... } }" and "pageStack.push(myDialog)" on the first page. MyDialog provides the necessary properties to get all connection parameters | 15:51 |
jpnurmi | Andy80: pong | 15:51 |
*** amonk has quit IRC | 15:52 | |
Sviox | Why does this "desktop-file-install" command keep getting back to .spec file? It fails on me with "No such file or directory" at the moment. How should the dekstop file be defined to it? | 15:53 |
*** olofk has quit IRC | 16:00 | |
*** olofk has joined #sailfishos | 16:00 | |
Sviox | Anyone? | 16:01 |
*** s1gk1ll has joined #sailfishos | 16:02 | |
*** s1gk1ll_ has quit IRC | 16:03 | |
John24 | is there any other way to pass variables withouth using pagestack? | 16:04 |
*** piee has joined #sailfishos | 16:04 | |
Sviox | from where to where? | 16:05 |
John24 | SecondPage.qml to FirstPage.qml | 16:05 |
John24 | uset types in a value in SecondPage.qml I want that value then passed and overdide variable in FirstPage.qml | 16:06 |
John24 | *user | 16:06 |
John24 | FirstPage.ip = tfIP.text does not work | 16:06 |
*** macben has joined #sailfishos | 16:07 | |
John24 | in firstpage.qml I got property var ip : "" | 16:07 |
*** Morpog_Mobile has quit IRC | 16:09 | |
*** arcean has quit IRC | 16:09 | |
*** super_hirsute has quit IRC | 16:09 | |
*** macben has quit IRC | 16:11 | |
Sviox | I would store any data to a QObject derived object added to declarative context | 16:12 |
John24 | Sviox that just shot past me, I am quite new and still learning | 16:14 |
Sviox | After adding the context, you can just myContext.setSomeVariables(x,y,z) | 16:14 |
Sviox | Me too :) | 16:14 |
John24 | as in QtObject { id: attributes property string name property int size property variant attributes } | 16:16 |
*** arcean has joined #sailfishos | 16:17 | |
Sviox | Umm, no. I mean, try to create C++ QObject based storage. There might be an easier way, but I'm also quite new to QML. | 16:17 |
John24 | mixing C++ with QML is bit too much for me atm, I am trying to get used to QML before mixing the both | 16:18 |
*** wickwire has joined #sailfishos | 16:18 | |
Sviox | So your not coming from C++/Qt background? | 16:19 |
Sviox | If that's the case, then there must be easier approach with pure QML. I'm all C++/Qt and not so much into QML ;) | 16:19 |
coderus | Morpog_: xure, i will pull translations for every update :) | 16:21 |
John24 | No firs week using Qt creator and all | 16:21 |
John24 | but I think I found the solution with pagestack Jolla added aditional fucntionality not listed by Qt docs: https://sailfishos.org/sailfish-silica/qml-sailfishsilica-pagestack.html#pushAttached-method | 16:22 |
John24 | one of them is bound to have what I want | 16:22 |
*** khertan has quit IRC | 16:23 | |
*** AlmAck has joined #sailfishos | 16:25 | |
Andy80 | I want to start adding a changelog to my app... is there any template I can follow? I mean... is there any particular convention like the name of the file (CHANGELOG / ChangeLog / chengelog.txt ?!) or the format inside? | 16:25 |
*** sudanix has joined #sailfishos | 16:26 | |
John24 | https://together.jolla.com/question/9598/allow-app-changelogs-in-jolla-storeharbour/ | 16:27 |
Andy80 | John24: yes.... a good list of "we should do...we should write..." but no solutions :D | 16:29 |
Andy80 | a bit anarchic situation :P | 16:29 |
Sviox | Would someone please tell me how to get rid of packaging error "Error on file "/home/deploy/installroot/usr/share/applications/*.desktop": No such file or directory" given by desktop-file-install. I'm about to throw my computer out of the window here as the next solution. This just broke down - it worked a short while ago - and I have no idea what's causing this. | 16:29 |
artemma | Sviox: you can ssh to Mer build machine and see if the *.desktop is actually deployed where packaging expects it to be | 16:30 |
artemma | but it's quite obvious that it doesn't | 16:30 |
artemma | so it's either deployed to wrong place or not deployed at all | 16:31 |
artemma | I'd check INSTALLS in your .pro | 16:31 |
jpnurmi | Sviox: have you been adding harbour-prefixes and that broke it? | 16:31 |
artemma | and also part of INSTALLS that's generated by sailfishapp.prf from qt libs | 16:31 |
*** master_of_master has joined #sailfishos | 16:32 | |
*** Morpog_Mobile has joined #sailfishos | 16:32 | |
Sviox | It is on the INSTALLS, but I'm not sure if (according to compile log) it's actually installed.. | 16:33 |
Sviox | artemma: How can I check that? | 16:33 |
artemma | Sviox: I would still ssh to mer machine first just in case | 16:34 |
Andy80 | Sviox: I can tell you that after having changed all my sources, .pro, .yaml to follow the "expected" template, I don't even need the INSTALL section anymore | 16:34 |
celeron55 | John24: you can refer to the previous page on the stack (the page on the "left side") by pageStack.previousPage() | 16:34 |
Andy80 | .desktop included | 16:34 |
artemma | to see if something wrong named is deployed somewhere around | 16:34 |
*** s1gk1ll_ has joined #sailfishos | 16:34 | |
celeron55 | if you have Page{property string foo: "bar"} on the first page, you can do pageStack.previousPage().foo = "baz" on the new page | 16:35 |
artemma | Sviox: search for ssh at https://sailfishos.org/develop-faq.html | 16:35 |
*** s1gk1ll has quit IRC | 16:35 | |
Sviox | How can I SSH the MER machine? It says I need public key instead of accepting username and password.. I'm using windows. | 16:35 |
*** master_o1_master has quit IRC | 16:35 | |
Sviox | The emulator side is easy to connect to (as nemo user) | 16:36 |
*** jjanvier has joined #sailfishos | 16:36 | |
artemma | Sviox: search for ssh at https://sailfishos.org/develop-faq.html | 16:37 |
*** macben has joined #sailfishos | 16:38 | |
Sviox | Andy80: Yes, I'm aware. I Started with the template, but eventually moved app code to a sub project where the desktop file is also located. | 16:38 |
*** a3Dman has quit IRC | 16:38 | |
*** wickwire has quit IRC | 16:38 | |
*** a3Dman has joined #sailfishos | 16:39 | |
artemma | Sviox: you should have started with HelloWorld Pro wizard for proper naming and project structure ;P | 16:39 |
Sviox | And as I said, it worked fine just a few hours ago.. Not sure what I did to break it.. | 16:39 |
artemma | (created by me) | 16:39 |
Sviox | artemma: I did! | 16:39 |
Andy80 | Sviox: I fought the template and the template won \m/ | 16:39 |
Sviox | :) | 16:39 |
Andy80 | :D | 16:39 |
artemma | Sviox: I am not 100% sure that build cleans all the old stuff in mer machine. It should, but maybe that particular .desktop stayed.. | 16:40 |
Sviox | The default structure just isn't for me because I need multiple binaries, lot's of extra files and ability to build for Harmattan and desktop. | 16:40 |
*** macben has quit IRC | 16:42 | |
*** a3Dman has quit IRC | 16:43 | |
*** a3Dman has joined #sailfishos | 16:43 | |
*** _miqu_ has joined #sailfishos | 16:44 | |
John24 | seems like I won't be able to pass variables between qml pages as pop does not allow properties | 16:45 |
John24 | is there any other way to pass variables between qml files? | 16:45 |
Sviox | artemma: That's a very likely scenario that the "old files" was left on Mer and my previous deployment worked by luck. | 16:45 |
artemma | Sviox: well, there are only a couple of steps you need to examine anyway | 16:46 |
artemma | check what gets to Mer and what's generated by INSTALLS | 16:46 |
*** wickwire has joined #sailfishos | 16:46 | |
artemma | Sviox: as a quick trial you can add your .desktop to INSTALLS manually (it should be picked up by sailfishapp.prf scripts, but just for trial add it manually) | 16:47 |
Sviox | I did | 16:47 |
Andy80 | Sviox: the old files problem happened also to me... I noticed that the new QML were not deployed because I had changed the About and I was seeing the old one | 16:48 |
Sviox | I mean, I've been trying that now. | 16:48 |
Sviox | --> Dinner. Maybe I'll catch some new ideas. | 16:50 |
*** raa70 has quit IRC | 16:50 | |
*** Gelb has joined #sailfishos | 16:52 | |
*** _miqu_ has quit IRC | 16:52 | |
Gelb | hi. can i run android apps in the sailfish os emulator? i would like to see how/if my android app runs on sailfish os. | 16:53 |
artemma | Sviox: sorry, but there really is just two (okay maybe three) steps to verify :) Check files in Mer machine, check what INSTALLS generate (you can see in makefile) | 16:53 |
Morpog_ | no you can't | 16:53 |
*** RoKenn has joined #sailfishos | 16:53 | |
Gelb | okay, so i just have to hope that it works... ;-( | 16:53 |
Gelb | thanks. | 16:54 |
leinir | Gelb: Well, you can always send it to some people - or in case you've got it on the amazon store, most people with a device would be able to test :) | 16:54 |
*** arcean_ has joined #sailfishos | 16:54 | |
Gelb | leinir: amazon store? i thought the device is shipped with that yandex store. i uploaded it there. | 16:55 |
leinir | it ships with yandex, but the amazon store works just fine as well, just need to download it :) | 16:55 |
leinir | But yeah, if it's already on yandex too, then you should be good :) | 16:55 |
Gelb | i see, good. my app is called "EveryWiki", if anyone is interested in testing. | 16:56 |
artemma | Anybody who knows something about LGPL here? I want to reuse a few files from lipstick code (LGPL) while keeping my code closed. I will use it as a library-like way (so LGPL should be fine), but not exactly as a library, just as few source code files. Any thoughts? | 16:56 |
leinir | artemma: Thoughts - if it's linked into the same binary, then no, that isn't fine | 16:57 |
artemma | leinir: I've heard of this point of view, but the only profound discussion on a topic I was able to locate underlines several times that license says nothing about linking. | 16:57 |
leinir | artemma: if it is a separate .so, then it /would/ be ok, as long as everything you do to that lipstick code is public and also lgpl... ianal, but that's what i understand :) | 16:57 |
*** arcean has quit IRC | 16:58 | |
artemma | sure, my modifications to LGPL code should be public, I don't want to disclose the rest of the code only | 16:58 |
leinir | artemma: ok, philosophical and direct - if the end user is able to rebuild with those files changed, then you are legally allowed to do it | 16:58 |
krig | artemma: it has to be relinkable, so just including some source files is not okay.. they have to be a separate library | 16:58 |
leinir | what krig said | 16:58 |
artemma | okay.. so it needs to be somehow packaged in a reusable way.. | 16:59 |
leinir | Technically speaking, if you make the object files available, then you are legally ok... but then you're also being a male appendage ;) | 16:59 |
artemma | I don't mind sharing my changes to LGPL code at all - I am basing on that work after all. I don't want to have to disclose the rest of the code | 17:00 |
leinir | (basically it comes under the heading don't be a dick - legally it'd be ok, but you're making it enormously difficult for the end user to do what they should legally be able to do) | 17:00 |
krig | i'm not a lawyer, but i don't think making object files available is enough sadly, the final binary has to be relinkable | 17:00 |
* artemma hopes one day somebody actually does generate a working example with own library linked in a harbour-acceptable way. It's sort of weird to have limitations in harbour FAQ without a single example of how to follow them | 17:00 | |
artemma | that would solve my issue perfectly, I'd just package LGPL bits into a stand alone lib | 17:01 |
krig | artemma: agreed, same thing with example apps that follow the specs and use the features of the phone.. would be very helpful. | 17:01 |
celeron55 | John24: did you see what i answered? | 17:02 |
John24 | sorry just came back to the page was reading Qt forums I will check now | 17:03 |
John24 | ok trying it now celeron55 | 17:06 |
smokex | why not just include some headers so the object files can be used with precompiled binaries | 17:07 |
smokex | as precompiled binaries | 17:07 |
artemma | Go vote for getting examples on adding libraries to your project - https://together.jolla.com/question/10713/create-the-example-of-including-your-own-library-and-standard-qt-module-in-a-harbour-compatible-way/ | 17:08 |
artemma | if it gets enough votes, somebody will want to become famous and create some. Hopefully | 17:08 |
Andy80 | just voted | 17:08 |
*** arcean_ has quit IRC | 17:08 | |
Andy80 | documentation and examples, in general, must be improved, but I suspect they're perfectly aware of this, they just don't have enough people to work on these things or they had other priorities until now | 17:10 |
*** arcean has joined #sailfishos | 17:11 | |
John24 | @celeron55 I could kiss you right now :D works like a charm | 17:12 |
*** dhbiker has quit IRC | 17:13 | |
*** b0bben has joined #sailfishos | 17:15 | |
Sviox | Okay, I got on with the dekstop file - it wasn't installed because of duplicate field (blind me...). But now the same problem exists with QML files.. | 17:15 |
artemma | Sviox: duplicate field? | 17:16 |
*** dhbiker has joined #sailfishos | 17:18 | |
Sviox | yes, in .desktop. Never would have thought that would have had any effect on anything... | 17:18 |
*** dhbiker has quit IRC | 17:18 | |
Sviox | I had copied X-Nemo-Application-Type from the faq (with other fields) without realizing it was already in the template generated file. | 17:18 |
artemma | strange.. .desktop contents should be procesed at runtime only | 17:18 |
Sviox | Indeed! | 17:20 |
*** dhbiker has joined #sailfishos | 17:22 | |
Sviox | It gives this output after the "install -m ..." ones on the log: "/home/deploy/installroot/usr/share/applications/[appname].desktop: error: file contains multiple keys named "X-Nemo-Application-Type" in group "Desktop Entry"" | 17:22 |
Sviox | Easy to miss since it's not highlighted in any way and the error is not at the beginning of the line. But that's the reason why desktop-file-install failes a bit later. | 17:24 |
*** cargocult has joined #sailfishos | 17:24 | |
artemma | ah, so it's RPM installation that detected wrong .desktop format | 17:25 |
Sviox | Yes | 17:27 |
*** phaeron has quit IRC | 17:27 | |
Sviox | Now everything else workd fine but RPM creation says "error: File not found: /home/deploy/installroot/usr/share/X" where X is the name of my subproject. | 17:33 |
Sviox | Has anyone actually managed to deploy content using Qt subdirs template? | 17:34 |
smokex | I prefer statically linking | 17:34 |
artemma | Sviox: you told that you checked HW Pro template. It has exactly that ;) | 17:36 |
artemma | and app is in harbour | 17:36 |
Sviox | HW *PRO* template? What's that? | 17:36 |
artemma | Sviox: your .yaml/.spec scripts probably mention these non-existent files | 17:36 |
artemma | HelloWorld pro | 17:36 |
artemma | https://github.com/amarchen/helloworld-pro-sailfish | 17:37 |
*** stephg has quit IRC | 17:37 | |
*** Morpog_Jolla has quit IRC | 17:37 | |
Sviox | artemma: seems like the .yaml file DID have reference to the the subproject.. nice | 17:39 |
*** b0bben has quit IRC | 17:39 | |
*** ericcc has quit IRC | 17:40 | |
*** phaeron has joined #sailfishos | 17:40 | |
Sviox | Triupm! Mer 0, Sviox 1. Now the package is created and deployed successfully. | 17:40 |
Sviox | Triumph more like.. | 17:40 |
artemma | Sviox: congrats! (y) | 17:40 |
artemma | what's the app about? | 17:40 |
Sviox | Trying to bring http://store.ovi.com/content/302071 into Sailfish world | 17:41 |
*** Morpog_Jolla has joined #sailfishos | 17:41 | |
smokex | oh nice | 17:44 |
Sviox | Building Harmattan version was a lot easier with 3 years of doing it's platform utilities as my day job giving a good idea on how things work :P | 17:45 |
artemma | Sviox: good luck with it! | 17:47 |
*** mk2soldier has quit IRC | 17:48 | |
Sviox | I did the MeeGo version with zero lines of QML so that's the number 1 reason giving me headaches at the moment. Webkit API of the QML webview is just so very limited. | 17:49 |
*** matoking has joined #sailfishos | 17:50 | |
smokex | isn't Qt currently replacing webkit on their dev branch? | 17:51 |
*** hardcodes has joined #sailfishos | 17:51 | |
Sviox | Yes, they are | 17:51 |
*** Andy80 has quit IRC | 17:51 | |
Sviox | And it would be interesting to hear if Sailfish will be moving to the new version and also what kind of APIs that have.. | 17:52 |
smokex | It will be half way through this year before 5.3 is released probably | 17:52 |
*** mohjive has quit IRC | 17:54 | |
*** b0bben has joined #sailfishos | 17:56 | |
*** spider-mario has joined #sailfishos | 17:57 | |
*** piee has quit IRC | 18:00 | |
*** Andy80 has joined #sailfishos | 18:02 | |
*** phaeron has quit IRC | 18:04 | |
*** piee has joined #sailfishos | 18:08 | |
*** macben has joined #sailfishos | 18:09 | |
*** wickwire has quit IRC | 18:09 | |
*** stephg has joined #sailfishos | 18:09 | |
*** freedomrun has joined #sailfishos | 18:09 | |
*** macben has quit IRC | 18:14 | |
*** b0bben has quit IRC | 18:14 | |
suy | I soooo want Sailfish to support 5.2 ASAP. Even simple things like the documentation has really nice improvements. I spent 15 minutes wondering if QQuickItem is a QObject. It is, but the 5.1 docs don't say so. Nor they show any hint about it. No connect(), objectName(), etc. | 18:19 |
valdur55 | Damn.. i changed bunch of stuff and nothing really changed | 18:20 |
*** victor1234 has quit IRC | 18:28 | |
*** mfulz has joined #sailfishos | 18:29 | |
*** wickwire has joined #sailfishos | 18:36 | |
*** Pat_o has joined #sailfishos | 18:37 | |
*** John24 has quit IRC | 18:38 | |
*** Gelb has left #sailfishos | 18:38 | |
w00t | suy: I have to ask.. but where exactly were you looking? (http://qt-project.org/doc/qt-5.1/qtquick/qquickitem.html - right near the top: "Inherits: QObject and QQmlParserStatus.") | 18:48 |
w00t | and class inheritance has been at the same place (the top of the class docs) for.. more or less as long as I can remember :p | 18:49 |
*** raa70 has joined #sailfishos | 18:49 | |
*** hardcodes has quit IRC | 18:49 | |
jpnurmi | anyone up for taking a couple of screenshots for me? | 18:57 |
*** Pat_o has quit IRC | 18:58 | |
*** furikku has quit IRC | 19:00 | |
suy | w00t: not in the shipped docs :-( | 19:00 |
*** RoKenn has quit IRC | 19:00 | |
artemma | jpnurmi: I can do screenshots | 19:00 |
jpnurmi | artemma: https://github.com/jpnurmi/MeeTeeVee/tree/sailfish - i can also send an rpm if you prefer? | 19:00 |
*** Morpog_Mobile has quit IRC | 19:00 | |
artemma | rpm is better | 19:01 |
jpnurmi | ok, one sec | 19:01 |
artemma | actually the ideal option is bit.ly link or similar :) | 19:01 |
*** a3Dman has quit IRC | 19:01 | |
artemma | i type it into device browser | 19:01 |
*** a3Dman has joined #sailfishos | 19:02 | |
jpnurmi | artemma: http://jpnurmi.kapsi.fi/meeteevee.rpm thanks in advance :) | 19:03 |
*** a3Dman has quit IRC | 19:03 | |
*** macben has joined #sailfishos | 19:04 | |
artemma | jpnurmi: trying | 19:04 |
*** kvt has joined #sailfishos | 19:06 | |
*** a3Dman has joined #sailfishos | 19:07 | |
*** a3Dman has quit IRC | 19:08 | |
*** a3Dman has joined #sailfishos | 19:09 | |
suy | w00t: http://i.imgur.com/9RpQfwk.png I looked it several times. :) | 19:10 |
w00t | suy: ah, well, i don't use creator :p | 19:10 |
*** phaeron has joined #sailfishos | 19:13 | |
suy | w00t: Damn I hate^Wenvy you. Some of you should really post some mention on how you do it. BEcause I really use Vim for writing the code. But I have not realized how to do the rest: compiling and deploying in the VMs. I only use Creator for the docs and the build&run. | 19:13 |
artemma | jpnurmi: | 19:13 |
artemma | jpnurmi: https://dl.dropboxusercontent.com/u/19482748/MeeTeeVee/20140105210618.png | 19:13 |
suy | I've read of at least 3 people not using creator (at all?). And the SDK hides a bit too much sometimes. | 19:13 |
artemma | https://dl.dropboxusercontent.com/u/19482748/MeeTeeVee/20140105210633.png | 19:13 |
artemma | https://dl.dropboxusercontent.com/u/19482748/MeeTeeVee/20140105210644.png | 19:14 |
artemma | https://dl.dropboxusercontent.com/u/19482748/MeeTeeVee/20140105210718.png | 19:14 |
*** mohjive has joined #sailfishos | 19:14 | |
jpnurmi | artemma: thanks! | 19:14 |
artemma | jpnurmi: you are welcome. Good luck with the app! | 19:15 |
*** b0bben has joined #sailfishos | 19:15 | |
*** piee has quit IRC | 19:16 | |
*** piee has joined #sailfishos | 19:16 | |
jpnurmi | artemma: hehe it's just a quick port of some old little harmattan app. i want to see how the harbour submission process goes :) | 19:16 |
*** b0bben has quit IRC | 19:18 | |
Elleo | suy: ssh in to the mersdk vm cd to your project directory and run "mb2 -t SailfishOS-armv7hl build" to build an rpm, or run "sb2 -t SailfishOS-armv7hl" within the mersdk vm to enter the scratchbox environment and do stuff on the command line however you like | 19:19 |
Elleo | suy: you may also want to edit .scratchbox2/config and set DEFAULT_TARGET=SailfishOS-armv7hl so you don't have to set the target with the "-t SailfishOS-armv7hl" bit for commands | 19:19 |
Elleo | suy: see https://sailfishos.org/develop-faq.html for instructions on sshing in to the mersdk if you haven't already | 19:20 |
Elleo | in the "How do I login to the emulator or build engine" section | 19:20 |
suy | Elleo: excellent. Seems I have something to learn :) | 19:21 |
suy | Mmm, and deploying to the other VM? Is automated too by mb2? | 19:23 |
Elleo | ah, if you're building for the VM then you don't want the target to be the armv7hl one | 19:24 |
Elleo | you'll want SailfishOS-i486-x86 instead | 19:25 |
Elleo | dunno about deploying, I know mb2 has a deploy option but it requires a devices.xml somewhere or something, which I don't really know anything about | 19:25 |
Elleo | I just tend to build for the device and scp stuff over | 19:26 |
Elleo | (of course you could scp stuff to the emulator just as easily) | 19:26 |
suy | Elleo: ok. Seems Creator does some rsync. I will investigate through that. :) | 19:26 |
suy | Elleo: thank you very much! | 19:27 |
*** Morpog_Mobile has joined #sailfishos | 19:27 | |
Elleo | there is a devices.xml setup in the Sailfish SDK directory in vmshare, not sure how you get mb2 to notice it though | 19:27 |
*** mk2soldier has joined #sailfishos | 19:27 | |
Elleo | ah actually it might already be reading that | 19:28 |
Elleo | suy: mb2 --device "SailfishOS Emulator" deploy --rsync | 19:28 |
Elleo | there's also an option for using zypper with --zypper or pkcon with --pkcon | 19:29 |
*** pp__ has joined #sailfishos | 19:29 | |
suy | Elleo: awesome \o/ Thank you again | 19:29 |
Elleo | I guess editing devices.xml to add an entry for your phone will then allow you to do the same to a real device too | 19:29 |
Elleo | no problem :) | 19:29 |
*** Morpog_Mobile has quit IRC | 19:30 | |
*** matoking_ has joined #sailfishos | 19:30 | |
*** mps has quit IRC | 19:30 | |
*** bara has quit IRC | 19:30 | |
*** bara1 has joined #sailfishos | 19:30 | |
*** mk2soldier has quit IRC | 19:30 | |
*** pp_ has quit IRC | 19:31 | |
*** wirew0rm_ has quit IRC | 19:31 | |
*** mfulz has quit IRC | 19:31 | |
*** matoking has quit IRC | 19:31 | |
*** edgars has quit IRC | 19:31 | |
*** walokra has quit IRC | 19:31 | |
*** ILEoo_ has joined #sailfishos | 19:31 | |
*** kostola_ has joined #sailfishos | 19:31 | |
*** edgars has joined #sailfishos | 19:31 | |
*** lpotter has joined #sailfishos | 19:32 | |
artemma | Is there some easy way to filter SilicaListView in QML | 19:34 |
* artemma kind'a hesitates filtering model in C++ when I just want to make a quick search among some 50-250 strings | 19:35 | |
*** wirew0rm has joined #sailfishos | 19:35 | |
*** walokra has joined #sailfishos | 19:35 | |
*** kkszysiu_ has joined #sailfishos | 19:35 | |
artemma | or actually: what would be a proper way for filtering list elements on input like in People app? | 19:36 |
suy | artemma: In QML, easily, I don't know. Never heard. In C++ is a matter of creating your model as a proxy model to the real one. Is easy, though. | 19:37 |
artemma | suy: I used to do similar in QML level in the past, but that was somewhat clumsy: basically I was recreating filtered/transformed model every time original changed | 19:37 |
*** mps has joined #sailfishos | 19:37 | |
*** sequantz has joined #sailfishos | 19:38 | |
artemma | okay, maybe it's time to learn about C++ filtered models then.. | 19:38 |
* artemma hoped that by QtQuick 2.0 time there is something pure QML for filtering not super-huge lists | 19:38 | |
*** kostola has quit IRC | 19:40 | |
*** ljp has quit IRC | 19:40 | |
*** ILEoo has quit IRC | 19:40 | |
*** 7CBAANTI6 has joined #sailfishos | 19:40 | |
*** kkszysiu has quit IRC | 19:40 | |
*** phaeron has quit IRC | 19:42 | |
*** sequantz__ has joined #sailfishos | 19:43 | |
*** ILEoo_ is now known as ILEoo | 19:43 | |
*** phaeron has joined #sailfishos | 19:44 | |
*** piee_ has joined #sailfishos | 19:45 | |
*** matoking__ has joined #sailfishos | 19:46 | |
*** kostola has joined #sailfishos | 19:46 | |
*** mpu has joined #sailfishos | 19:47 | |
*** ahiemstra has joined #sailfishos | 19:48 | |
Hartzi | hey, how I can center a text that is inside a label? | 19:48 |
*** a3Dman_ has joined #sailfishos | 19:49 | |
*** mfulz has joined #sailfishos | 19:49 | |
jpnurmi | Hartzi: horizontalAlignment: Text.AlignHCenter; verticalAlignment: Text.AlignVCenter | 19:49 |
*** seq has joined #sailfishos | 19:49 | |
*** wickwire has quit IRC | 19:50 | |
*** edgars_ has joined #sailfishos | 19:50 | |
Hartzi | jpnurmi: hmm I already tried that but let's see what was wrong last time | 19:50 |
*** AndChat|631721 has joined #sailfishos | 19:50 | |
*** edgars has quit IRC | 19:52 | |
*** a3Dman has quit IRC | 19:52 | |
*** spider-mario has quit IRC | 19:52 | |
*** sequantz has quit IRC | 19:53 | |
*** mps has quit IRC | 19:53 | |
*** kostola_ has quit IRC | 19:53 | |
*** matoking_ has quit IRC | 19:53 | |
*** piee has quit IRC | 19:53 | |
*** freedomrun has quit IRC | 19:53 | |
*** hoelzro has quit IRC | 19:53 | |
*** Trizt has quit IRC | 19:53 | |
*** ahiemstra_ has quit IRC | 19:53 | |
*** rm_work|away has quit IRC | 19:53 | |
*** piee__ has joined #sailfishos | 19:53 | |
jpnurmi | notice that it will automatically grow to fit the content if it doesn't have a size specified | 19:54 |
*** master_o1_master has joined #sailfishos | 19:54 | |
*** spider-mario has joined #sailfishos | 19:56 | |
*** Nirkus has joined #sailfishos | 19:56 | |
*** Nirkus has quit IRC | 19:56 | |
*** Nirkus has joined #sailfishos | 19:56 | |
*** piee_ has quit IRC | 19:56 | |
*** sequantz__ has quit IRC | 19:56 | |
*** boud has quit IRC | 19:57 | |
*** Morpog_Jolla has quit IRC | 19:57 | |
*** master_of_master has quit IRC | 19:57 | |
*** walokra has quit IRC | 19:57 | |
*** rashm2k has joined #sailfishos | 19:59 | |
*** seq is now known as sequantz | 20:00 | |
*** walokra has joined #sailfishos | 20:00 | |
*** raven24- has joined #sailfishos | 20:01 | |
*** ryokale_ has joined #sailfishos | 20:01 | |
*** amppa_ has joined #sailfishos | 20:01 | |
*** piee__ has quit IRC | 20:01 | |
*** Svioxi has joined #sailfishos | 20:01 | |
*** freedomrun has joined #sailfishos | 20:02 | |
*** boud has joined #sailfishos | 20:02 | |
*** kkszysiu has joined #sailfishos | 20:02 | |
*** arcean_ has joined #sailfishos | 20:02 | |
*** part has quit IRC | 20:02 | |
*** nibbler has quit IRC | 20:02 | |
*** kengu_ has joined #sailfishos | 20:03 | |
*** wirew0rm_ has joined #sailfishos | 20:03 | |
*** leinir has quit IRC | 20:03 | |
*** Master-P1sseli has joined #sailfishos | 20:03 | |
*** synchris_ has joined #sailfishos | 20:04 | |
*** synchris_ has quit IRC | 20:04 | |
*** synchris_ has joined #sailfishos | 20:04 | |
*** otto__ has joined #sailfishos | 20:04 | |
*** n0rman_ has joined #sailfishos | 20:05 | |
*** Bloob2 has joined #sailfishos | 20:05 | |
*** grejppi_ has joined #sailfishos | 20:05 | |
*** jjarven_ has joined #sailfishos | 20:06 | |
*** wickwire has joined #sailfishos | 20:07 | |
*** s1gk1ll has joined #sailfishos | 20:07 | |
*** faenil_ has joined #sailfishos | 20:07 | |
*** paju has quit IRC | 20:07 | |
*** he1kki_ has joined #sailfishos | 20:08 | |
Hartzi | jpnurmi: okai it seems to work now but vertical aligment is too low. It's not at center of the page | 20:08 |
*** kkszysiu_ has quit IRC | 20:08 | |
*** ryokale has quit IRC | 20:08 | |
*** he1kki has quit IRC | 20:08 | |
*** raven24 has quit IRC | 20:08 | |
*** zuh has quit IRC | 20:08 | |
*** amppa has quit IRC | 20:08 | |
*** s1gk1ll_ has quit IRC | 20:08 | |
*** Sviox has quit IRC | 20:08 | |
*** Andy80 has quit IRC | 20:08 | |
*** kengu has quit IRC | 20:08 | |
*** wirew0rm has quit IRC | 20:08 | |
*** synchris has quit IRC | 20:08 | |
*** arcean has quit IRC | 20:08 | |
*** ponky has quit IRC | 20:08 | |
*** cnuke has quit IRC | 20:08 | |
*** Master-Passeli has quit IRC | 20:08 | |
*** jjarven has quit IRC | 20:08 | |
*** faenil has quit IRC | 20:08 | |
*** edgar2 has quit IRC | 20:08 | |
*** onurati has quit IRC | 20:08 | |
*** miksuh has quit IRC | 20:08 | |
*** n0rman has quit IRC | 20:08 | |
*** grejppi has quit IRC | 20:08 | |
*** otto_ has quit IRC | 20:08 | |
*** wentknweqt_ has quit IRC | 20:08 | |
*** rashm2k has quit IRC | 20:08 | |
*** onurati has joined #sailfishos | 20:08 | |
*** edgar2 has joined #sailfishos | 20:08 | |
*** wentknweqt has joined #sailfishos | 20:08 | |
*** piee has joined #sailfishos | 20:09 | |
artemma | jpnurmi: you seem to know about qvariant_cast I am trying to cast an object returned by model to my custom class and for some reason it calls copy constructor. Why? I'd like to get a pointer, not a copy | 20:09 |
*** part has joined #sailfishos | 20:10 | |
*** paju has joined #sailfishos | 20:10 | |
*** nibbler has joined #sailfishos | 20:11 | |
*** raven24 has joined #sailfishos | 20:11 | |
*** walokra^ has joined #sailfishos | 20:12 | |
*** wickwire has quit IRC | 20:13 | |
*** Bloob has quit IRC | 20:13 | |
*** ponky_ has joined #sailfishos | 20:13 | |
*** Bloob has joined #sailfishos | 20:13 | |
*** entil has left #sailfishos | 20:15 | |
*** cnuke has joined #sailfishos | 20:15 | |
*** b0bben has joined #sailfishos | 20:15 | |
*** miksuh has joined #sailfishos | 20:16 | |
jpnurmi | artemma: did you do qvariant_cast<T>() by accident, instead of qvariant_cast<T*>()? | 20:16 |
artemma | ah! pointer, indeed! | 20:16 |
artemma | trying | 20:17 |
*** wickwire has joined #sailfishos | 20:17 | |
artemma | jpnurmi: works! Thanks@ | 20:17 |
artemma | ! | 20:17 |
*** Sviox has joined #sailfishos | 20:18 | |
*** Bloob2 has quit IRC | 20:18 | |
*** kengu_ has quit IRC | 20:18 | |
*** arcean_ has quit IRC | 20:18 | |
*** raven24- has quit IRC | 20:18 | |
*** walokra has quit IRC | 20:18 | |
*** tortoisedoc has joined #sailfishos | 20:19 | |
*** b0bben has quit IRC | 20:20 | |
*** viq has quit IRC | 20:21 | |
artemma | or actually it doesn't. It compiles but once I add const LauncherItem* li = vLaunchItem.value<LauncherItem*>(); there are no further lines in console. like it crashes on access attempt | 20:21 |
*** kengu has joined #sailfishos | 20:21 | |
artemma | hmm, if code never used setData (it inserts objects to uderlying List), maybe I shouldn't use data() for fetching objects either | 20:22 |
*** zuh has joined #sailfishos | 20:22 | |
*** flux has quit IRC | 20:22 | |
*** macben_ has joined #sailfishos | 20:23 | |
artemma | no, data() is actually implemented and returns QVariant::fromValue(objPointer); | 20:23 |
*** flux has joined #sailfishos | 20:23 | |
*** walokra has joined #sailfishos | 20:24 | |
artemma | but that objPointer is pointer to QObject, maybe I need to cast it to my type first | 20:24 |
*** veimis has quit IRC | 20:24 | |
*** paju_ has joined #sailfishos | 20:24 | |
*** wirew0rm has joined #sailfishos | 20:25 | |
*** phako_ has joined #sailfishos | 20:25 | |
*** phaeron has quit IRC | 20:25 | |
*** Svioxi has quit IRC | 20:25 | |
*** coderus_ has joined #sailfishos | 20:25 | |
*** nwoki has joined #sailfishos | 20:25 | |
*** nwoki has quit IRC | 20:25 | |
*** nwoki has joined #sailfishos | 20:25 | |
*** ahiemstra_ has joined #sailfishos | 20:25 | |
*** raa70 has quit IRC | 20:26 | |
*** walokra^ has quit IRC | 20:26 | |
*** edgars has joined #sailfishos | 20:26 | |
*** wentknweqt has quit IRC | 20:26 | |
*** wirew0rm_ has quit IRC | 20:26 | |
*** ryokale_ has quit IRC | 20:26 | |
*** macben has quit IRC | 20:26 | |
*** Tumex_ has quit IRC | 20:26 | |
*** niko_s has quit IRC | 20:26 | |
*** phako has quit IRC | 20:26 | |
*** aslani has quit IRC | 20:26 | |
*** atlaz has quit IRC | 20:26 | |
*** Acce has quit IRC | 20:26 | |
*** tohtoris has quit IRC | 20:26 | |
*** Hartzi has quit IRC | 20:26 | |
*** hene- has quit IRC | 20:26 | |
*** paju has quit IRC | 20:26 | |
*** AndChat|631721 has quit IRC | 20:26 | |
*** edgars_ has quit IRC | 20:26 | |
*** ahiemstra has quit IRC | 20:26 | |
*** lpotter has quit IRC | 20:26 | |
*** pp__ has quit IRC | 20:26 | |
*** sudanix has quit IRC | 20:26 | |
*** tomyri has quit IRC | 20:26 | |
*** nwoki_ has quit IRC | 20:26 | |
*** qwazix has quit IRC | 20:26 | |
*** pyksy has quit IRC | 20:26 | |
*** coderus has quit IRC | 20:26 | |
*** diegoyam has quit IRC | 20:26 | |
*** Jonni has quit IRC | 20:26 | |
*** Firnwath has quit IRC | 20:26 | |
*** whisperi has quit IRC | 20:26 | |
*** skvark has quit IRC | 20:26 | |
*** sharpneli has quit IRC | 20:26 | |
*** Kharn has quit IRC | 20:26 | |
*** Sarvi has quit IRC | 20:26 | |
*** locusf has quit IRC | 20:26 | |
*** ztane has quit IRC | 20:26 | |
*** Pantti has quit IRC | 20:26 | |
*** iekku has quit IRC | 20:26 | |
*** tme has quit IRC | 20:26 | |
*** kvt has quit IRC | 20:26 | |
*** sudanix_ has joined #sailfishos | 20:26 | |
*** locusf_ has joined #sailfishos | 20:26 | |
*** skvark has joined #sailfishos | 20:26 | |
*** Jonni has joined #sailfishos | 20:26 | |
*** ztane has joined #sailfishos | 20:26 | |
*** Pantti has joined #sailfishos | 20:26 | |
*** raa70 has joined #sailfishos | 20:26 | |
*** wentknweqt_ has joined #sailfishos | 20:26 | |
*** leinir has joined #sailfishos | 20:27 | |
*** ced117 has quit IRC | 20:27 | |
*** kor has quit IRC | 20:28 | |
*** dafox has joined #sailfishos | 20:28 | |
*** mpu has quit IRC | 20:28 | |
*** Bloob has quit IRC | 20:29 | |
*** ponky_ has quit IRC | 20:29 | |
*** flux has quit IRC | 20:30 | |
*** nwoki has quit IRC | 20:30 | |
*** cxl000 has quit IRC | 20:30 | |
*** wickwire has quit IRC | 20:30 | |
*** ponky has joined #sailfishos | 20:31 | |
*** qwazix has joined #sailfishos | 20:31 | |
*** veimis has joined #sailfishos | 20:31 | |
*** nwoki has joined #sailfishos | 20:31 | |
*** nwoki has quit IRC | 20:31 | |
*** nwoki has joined #sailfishos | 20:31 | |
*** kengu has quit IRC | 20:31 | |
*** Stormaaja has quit IRC | 20:31 | |
*** iekku has joined #sailfishos | 20:32 | |
*** kengu has joined #sailfishos | 20:32 | |
*** Stormaaja has joined #sailfishos | 20:32 | |
*** Waitee has quit IRC | 20:32 | |
*** Waitee has joined #sailfishos | 20:33 | |
artemma | ah, my filtered model was just trying to do filtering before source model elements were available. Interesting.. | 20:34 |
*** kor has joined #sailfishos | 20:34 | |
*** flux has joined #sailfishos | 20:34 | |
*** ryokale has joined #sailfishos | 20:34 | |
artemma | now how come source model already knew its size, but was not able to deliver individiual items | 20:34 |
*** tomyri has joined #sailfishos | 20:34 | |
*** yunta_ has joined #sailfishos | 20:35 | |
*** Pantti has quit IRC | 20:35 | |
*** ztane has quit IRC | 20:35 | |
*** raa70 has quit IRC | 20:35 | |
*** Jonni has quit IRC | 20:35 | |
*** skvark has quit IRC | 20:35 | |
*** datakurre has quit IRC | 20:35 | |
*** yunta has quit IRC | 20:36 | |
*** Tuilu has quit IRC | 20:36 | |
*** Sage_ has quit IRC | 20:36 | |
*** suosaaski has quit IRC | 20:36 | |
*** fk_lx has quit IRC | 20:36 | |
*** krnlyng has quit IRC | 20:36 | |
*** Ekee has quit IRC | 20:36 | |
*** Sidde has quit IRC | 20:36 | |
*** sirslask has quit IRC | 20:36 | |
*** rlindsgaard has quit IRC | 20:36 | |
*** pr0xie has quit IRC | 20:36 | |
*** ryukafalz has quit IRC | 20:36 | |
*** nahkiss has quit IRC | 20:36 | |
*** Tegu_ has quit IRC | 20:36 | |
*** ballock has quit IRC | 20:36 | |
*** sababa has quit IRC | 20:36 | |
*** trench has quit IRC | 20:36 | |
*** sledges has quit IRC | 20:36 | |
*** MMx has quit IRC | 20:36 | |
*** Elleo has quit IRC | 20:36 | |
*** mord has quit IRC | 20:36 | |
*** yunta_ is now known as yunta | 20:36 | |
*** ljp has joined #sailfishos | 20:36 | |
*** diegoyam_ has joined #sailfishos | 20:36 | |
*** diegoyam_ has quit IRC | 20:36 | |
*** diegoyam_ has joined #sailfishos | 20:36 | |
*** Bloob2 has joined #sailfishos | 20:36 | |
*** a3Dman_ has quit IRC | 20:36 | |
*** Pat_o has joined #sailfishos | 20:38 | |
artemma | it's a pity debugger doesn't work in SDK for me | 20:38 |
*** pp_ has joined #sailfishos | 20:38 | |
*** a3Dman has joined #sailfishos | 20:38 | |
*** Tuilu has joined #sailfishos | 20:38 | |
*** Sage_ has joined #sailfishos | 20:38 | |
*** suosaaski has joined #sailfishos | 20:38 | |
*** fk_lx has joined #sailfishos | 20:38 | |
*** krnlyng has joined #sailfishos | 20:38 | |
*** Ekee has joined #sailfishos | 20:38 | |
*** Sidde has joined #sailfishos | 20:38 | |
*** sirslask has joined #sailfishos | 20:38 | |
*** rlindsgaard has joined #sailfishos | 20:38 | |
*** pr0xie has joined #sailfishos | 20:38 | |
*** ryukafalz has joined #sailfishos | 20:38 | |
*** nahkiss has joined #sailfishos | 20:38 | |
*** Tegu_ has joined #sailfishos | 20:38 | |
*** ballock has joined #sailfishos | 20:38 | |
*** sababa has joined #sailfishos | 20:38 | |
*** trench has joined #sailfishos | 20:38 | |
*** sledges has joined #sailfishos | 20:38 | |
*** MMx has joined #sailfishos | 20:38 | |
*** Elleo has joined #sailfishos | 20:38 | |
*** mord has joined #sailfishos | 20:38 | |
jpnurmi | artemma: is the source model loading items asynchronously? | 20:38 |
*** a3Dman has quit IRC | 20:39 | |
*** a3Dman has joined #sailfishos | 20:39 | |
artemma | jpnurmi: yet. I am cloning lipstick launcher model | 20:39 |
artemma | launcher items model | 20:39 |
*** jjanvier has quit IRC | 20:39 | |
artemma | got tired that i can't find app in 3 launcher pages, so creating quick launcher | 20:39 |
artemma | yep* | 20:40 |
*** opt1mus has quit IRC | 20:40 | |
artemma | no, I am missing something basic. Logs show that data() returns QVariant::fromValue(obj); for valid LauncherItems | 20:41 |
*** mps has joined #sailfishos | 20:41 | |
artemma | yet QVariant on the other side is invalid | 20:41 |
artemma | yeah, it's a pity I can't step in in debugger | 20:43 |
*** cxl000 has joined #sailfishos | 20:43 | |
artemma | maybe indeed filterAcceptsRow asks for items before they are somehow "fully added" | 20:43 |
jpnurmi | obj is QObject* or LauncherItem*? | 20:43 |
*** mk2soldier has joined #sailfishos | 20:44 | |
artemma | QObject*, but it's LauncherItem* in fact | 20:44 |
*** Pat_o has quit IRC | 20:44 | |
jpnurmi | qvariant_cast is not as smart as qobject_cast - you probably can't ask for a different type that was stored in the variant | 20:45 |
artemma | Logs tell that order is as follows: 1) adding elems as insertItem(_list->count(), item); 2) filterAcceptsRow gets invalid Qvariants 3) source model's data() is called returnign correct variant | 20:45 |
jpnurmi | even if LauncherItem* is a QObject*, they are different types for QVariant | 20:45 |
artemma | how come filterAcceptsRow prints logs before data() | 20:46 |
artemma | jpnurmi: QVariant tells it's invalid already before casting | 20:46 |
artemma | so it's not a conversion issue, but somehow improper model use | 20:46 |
*** b0bben has joined #sailfishos | 20:47 | |
jpnurmi | i'm not familiar with the launcher model, but you said it loads items asynchronously so perhaps the filter model asks for data before it was loaded? it should be fine as long as the source model informs that the data changed when it has been loaded | 20:48 |
bara1 | how can i install qtsensors on the emulator? i get "QtSensors" is not installed when i try this example http://qt-project.org/doc/qt-5.1/qtsensors/qmlmodule-qtsensors5-qtsensors-5-0.html | 20:48 |
artemma | jpnurmi: that's what I suspect, still confused because it looks like element is added already. Maybe it's somehow not added fully enough | 20:48 |
*** winfriedd has joined #sailfishos | 20:50 | |
*** atlaz has joined #sailfishos | 20:50 | |
*** Pantti has joined #sailfishos | 20:50 | |
*** Acce has joined #sailfishos | 20:50 | |
*** niko_s has joined #sailfishos | 20:50 | |
*** whisperi has joined #sailfishos | 20:50 | |
*** tohtoris has joined #sailfishos | 20:50 | |
*** Jonni_ has joined #sailfishos | 20:50 | |
*** Hartzi has joined #sailfishos | 20:50 | |
*** aslani has joined #sailfishos | 20:50 | |
*** hene- has joined #sailfishos | 20:52 | |
artemma | funny, if I ask for data() right after adding item (from adding item code, everything's fine). Maybe filterAcceptsRow is supplied invalid ModelIndex object somehow | 20:52 |
*** Hartzi has quit IRC | 20:53 | |
*** niko_s has quit IRC | 20:53 | |
*** niko_s has joined #sailfishos | 20:53 | |
*** Firnwath has joined #sailfishos | 20:53 | |
*** pyksy has joined #sailfishos | 20:55 | |
*** Jonni_ has quit IRC | 20:55 | |
*** aslani has quit IRC | 20:55 | |
*** kvt has joined #sailfishos | 20:55 | |
*** Jonni has joined #sailfishos | 20:55 | |
*** tme has joined #sailfishos | 20:55 | |
*** aslani has joined #sailfishos | 20:55 | |
*** datakurre has joined #sailfishos | 20:55 | |
*** Hartzi has joined #sailfishos | 20:55 | |
*** Kharn has joined #sailfishos | 20:55 | |
*** Elleo has quit IRC | 20:56 | |
*** skvark has joined #sailfishos | 20:56 | |
*** ztane has joined #sailfishos | 20:56 | |
*** louisdk has joined #sailfishos | 20:56 | |
artemma | okay, it looks like I misunderstood sourceParent completely. Apparently it refers to some kind of.. parent object (for tree models?). I was trying to use it as source item locator | 20:57 |
jpnurmi | artemma: the model index passed to filterAcceptsRow() is the _parent_ so it's an invalid index for any top level item that doesn't have a parent | 20:57 |
*** atlaz has quit IRC | 20:57 | |
artemma | :) | 20:57 |
*** Elleo has joined #sailfishos | 20:57 | |
*** atlaz has joined #sailfishos | 20:57 | |
*** sharpneli has joined #sailfishos | 20:58 | |
*** edgar2 has quit IRC | 20:59 | |
*** raa70 has joined #sailfishos | 20:59 | |
*** Tumex_ has joined #sailfishos | 20:59 | |
*** sequantz has quit IRC | 21:00 | |
artemma | jpnurmi: thanks for the help. Everything works now. I can filter on whatever I want just fine | 21:02 |
*** bara1 is now known as bara | 21:03 | |
jpnurmi | artemma: np :) | 21:03 |
*** b0bben has quit IRC | 21:04 | |
*** ztane has quit IRC | 21:06 | |
*** ztane has joined #sailfishos | 21:07 | |
*** piee has quit IRC | 21:09 | |
*** jjarven_ has quit IRC | 21:10 | |
*** datakurre has quit IRC | 21:11 | |
*** datakurre has joined #sailfishos | 21:12 | |
*** Kharn has quit IRC | 21:13 | |
*** piee has joined #sailfishos | 21:13 | |
*** a3Dman has quit IRC | 21:14 | |
*** Kharn has joined #sailfishos | 21:14 | |
*** cargocult has quit IRC | 21:15 | |
*** cvp has joined #sailfishos | 21:19 | |
*** Kharn has quit IRC | 21:20 | |
*** Kharn has joined #sailfishos | 21:20 | |
*** itbaron has quit IRC | 21:23 | |
*** jjarven_ has joined #sailfishos | 21:24 | |
*** Kharn has quit IRC | 21:26 | |
*** Kharn has joined #sailfishos | 21:27 | |
*** Sviox has quit IRC | 21:28 | |
*** tango_ has quit IRC | 21:30 | |
*** macben_ has quit IRC | 21:33 | |
*** macben_ has joined #sailfishos | 21:33 | |
*** Kharn has quit IRC | 21:33 | |
*** Kharn has joined #sailfishos | 21:34 | |
*** raa70 has quit IRC | 21:36 | |
*** raa70 has joined #sailfishos | 21:37 | |
*** tango_ has joined #sailfishos | 21:39 | |
*** Kharn has quit IRC | 21:39 | |
*** Kharn has joined #sailfishos | 21:40 | |
*** khertan has joined #sailfishos | 21:44 | |
suy | I noticed this: "Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component" // Why is suboptimal? Isn't the component only for delaying the load on demand? And for the first page is always loaded anyway, isn't it? | 21:44 |
khertan | Ahoy ! | 21:44 |
*** Morpog_Jolla has joined #sailfishos | 21:45 | |
*** macben_ has quit IRC | 21:46 | |
*** macben has joined #sailfishos | 21:46 | |
jpnurmi | suy: the initial page doesn't necessarily have to remain alive. it's a valid use case to replace() the initial page | 21:56 |
*** Morpog_Jolla has quit IRC | 21:57 | |
*** macben has quit IRC | 21:57 | |
*** macben has joined #sailfishos | 21:58 | |
suy | jpnurmi: OK, that makes sense. But still, the warning could be a "maybe", I think. | 21:58 |
*** cxl000 has quit IRC | 22:04 | |
*** piee has quit IRC | 22:04 | |
*** mohjive has quit IRC | 22:05 | |
*** sudanix_ has quit IRC | 22:05 | |
zbenjamin | coderus_: ping | 22:07 |
*** piee has joined #sailfishos | 22:09 | |
*** macben has quit IRC | 22:14 | |
*** cvp has quit IRC | 22:19 | |
*** matoking__ has quit IRC | 22:19 | |
*** flanag has quit IRC | 22:20 | |
*** spider-mario has quit IRC | 22:22 | |
*** Morpog_Mobile has joined #sailfishos | 22:30 | |
*** Morpog_Jolla has joined #sailfishos | 22:31 | |
*** mk2soldier has quit IRC | 22:35 | |
ottulo | anyone wanna file a bug report for mitäkuuluu for me? I don't feel like making an account just for that... | 22:39 |
ottulo | and I checked, it's not in open nor closed issues atm | 22:39 |
*** tortoisedoc has quit IRC | 22:40 | |
ottulo | or if you get it from here coderus_: when a new message notification appears while typing a message, the message is split on a new line | 22:40 |
ottulo | odd... it doesn't seem to do that all the time | 22:44 |
ottulo | asked a friend to send messages while I type :D | 22:44 |
ottulo | also, I have selected enter as the send-button, so I couldn't have typed in a line break by accident | 22:45 |
*** Andy80 has joined #sailfishos | 22:47 | |
*** opt1mus has joined #sailfishos | 22:58 | |
Tumeez | http://www.youtube.com/watch?v=AB-5F8aLc24 | 22:59 |
ln- | Tumeez: off-topic | 22:59 |
Tumeez | Sorry :( | 22:59 |
Tumeez | I'm happy! | 22:59 |
*** b0bben has joined #sailfishos | 23:04 | |
*** stephg has quit IRC | 23:07 | |
*** jjanvier has joined #sailfishos | 23:08 | |
*** winfriedd has quit IRC | 23:10 | |
*** mk2soldier has joined #sailfishos | 23:10 | |
*** macben has joined #sailfishos | 23:11 | |
*** qqK has quit IRC | 23:22 | |
*** faenil_ has quit IRC | 23:25 | |
*** amccarthy has joined #sailfishos | 23:27 | |
*** pcfe has quit IRC | 23:28 | |
*** piee has quit IRC | 23:32 | |
*** mk2soldier has quit IRC | 23:42 | |
*** edgar2 has joined #sailfishos | 23:49 | |
*** b0bben has quit IRC | 23:54 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!