/srv/irclogs.ubuntu.com/2013/05/30/#ubuntu-app-devel.txt

=== hunger is now known as hunger_
=== hunger_ is now known as hunger
Mirvhello04:01
Mirvzsombi: morning!05:33
zsombiMirv: ahoj :)05:33
timpis anyone familiar with qplatformmenu?06:45
timpzsombi: you perhaps?06:45
dpmgood morning everyone06:56
timpdpm: hello06:57
timpdpm: I want to finish the MR to enable lp translations for the uitk today.06:57
timpdpm: https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/translations/+merge/16630706:57
dpmmorning timp06:57
* dpm looks at it06:57
timpdpm: you said that I needed to add an additional keywords=tr:1,2 there. does that mean to have two times --keywords?06:57
timpdpm: I couldn't find what the :1,2 does06:57
dpmtimp, yeah, exactly as you did it (2 times keyword). What it does is to extract the plural forms. Otherwise things like i18n.tr('%1 thing', '%1 things', something).arg(something) would be ignored. Let me see if I can find06:59
dpmsome documentation07:01
dpmtimp, the first 1 instructs gettext to extract the first plural form, and the 2 to extract the 2nd plural form: http://www.gnu.org/software/gettext/manual/html_node/Default-Keywords.html07:02
dpmand http://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html07:02
timpdpm: ok, thanks07:04
timpdpm: it is not fully clear to me what launchpad will take over from the packaging07:05
timpdpm: do I still need to put .mo files in the correct places with 'make install' ?07:05
dpmbrb07:05
dpmtimp, I hope this answers the questions on packaging: https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/translations/+merge/166307/comments/36886407:32
timpdpm: thanks. checking it now07:35
oSoMoNzsombi: when you have a moment, could you please have a look at https://code.launchpad.net/~osomon/ubuntu-ui-toolkit/TextField-inputMethodHints/+merge/166297 ?07:50
zsombi(09:45:44 AM) timp: zsombi: you perhaps? - not really... was long time ago :)08:12
zsombioSoMoN: yes, I'll take it immediately08:12
oSoMoNzsombi: thanks08:13
zsombitimp: oSoMoN has added the new API to the CHANGES file, but we haven't agreed to alter CHANGES file for new API...08:18
oSoMoNzsombi: I wasn’t sure whether that was needed, I can remove it08:19
zsombitimp: oSoMoN: for me both ways is OK till v1.0, after that we most likely want to have the new things documented too...08:20
zsombioSoMoN: let's remove it for now...08:20
oSoMoNok08:20
oSoMoNzsombi: ah, I didn’t know there was a CHANGES.syntax file, now it makes sense, I removed the ADDED line08:23
zsombioSoMoN: happroved08:24
zsombioSoMoN: thanks!!!!08:24
oSoMoNthanks for the review08:25
zsombioSoMoN: any extra property you need that is not yet forwarded in TextField, feel free to contribute... otherwise it will be revisited only after beta released08:25
oSoMoNzsombi: ok, will keep it in mind, and will contribute if the need arises08:26
dpmhey all, does anyone have any pointers on how to port this snippet of code to Qt 5? http://pastebin.ubuntu.com/5716009/08:32
zsombidpm: it's not QQUickItem that should be used, but QQuickPaintedItem09:18
zsombidpm: that one provides paint() functionality with QPainter09:18
dpmzsombi, thanks. Any suggestions on how to do the conversion/cast from the Image (QQuickImage) I'm getting  as imageObj to a QQuickPaintedItem ? Lines 20, 27 on the snippet at http://pastebin.ubuntu.com/5716009/ ?09:25
dpmLet's say C++ and pure Qt is not my strength, sorry if I'm asking something obvious09:26
zsombidpm: that code cannot be "ported" 1:1, it needs some extra work... casting to QQuickImage also reqires you to include QtQuick privates, which is pretty shaky...09:33
dpmzsombi, I don't mind it not being ported 1:1. Essentially, I just need to get hold of an Image passed in from QML to be passed to C++, is there no easy way to do it?09:34
dpmI can probably load the image from the file system, but I thought it'd be cleaner to pass the image to the function09:35
zsombidpm: not without including QtQuick privates :(09:35
zsombidpm: the image you pass it's a QQuickItem after all...09:36
dpmbummer :(09:36
dpmzsombi, so essentially this was possible in Qt 4 and it's no longer possible in Qt 5?09:37
zsombidpm: those were different daze :)09:37
zsombidpm: let me check the QQuickImage...09:38
dpmthanks :)09:38
zsombidpm: well, you can get the QImage from QQuickImage (there's an image() method returning it back), but for that you need to include <QtQuick/private/qquickimage_p.h> and add QT += quick-private to your .pro file :(09:41
zsombidpm: qtquick suffered major rewrite, sorry.09:42
dpmzsombi, thanks for your help, that will bring me further. Of the two options, would you suggest to go the quick-private way, or just pass in the path to the image in the file system and load that?09:44
zsombidpm: depends on what you need. Qt does not promise privates API compatibility, so if you'd want to save yourself from continuous portability problems, you better go for the path (QUrl) solution, and forget the privates09:45
dpmok, I'll try that, thanks zsombi09:48
zsombidpm: yr welcome!09:48
=== chriadam is now known as chriadam|away
timpbzoltan: I added a po/ directory to ubuntu-ui-toolkit, and inside in the .pro file I added an install target that copies translation files11:32
timpbzoltan: so are they then automatically installed when I 'make install' in ubuntu-ui-toolkit source root?11:32
timpdpm: I updated https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/translations/+merge/16630711:36
timpbzoltan: ^ could you also review?11:37
dpmtimp, cool, looking...11:49
dpmtimp, I guess as part of calling 'make install' during package build the installation is already taken care of and no packaging changes are needed? ^11:55
dpmI mean the installation from the .mo files11:56
timpdpm: I don't know, that's why I asked bzoltan111:56
dpmok, no worries11:57
dpmtimp, ah sorry, I hadn't seen your question to Zoltan above11:57
dpmtimp, ok, reviewed and added a comment12:02
dpmzsombi, on that question about passing images from QML to C++ earlier on: if on the QML side I pass an Image.source to extractQImage, what's the best way to declare the imageObj argument in the function? As QObject, QUrl... ? http://pastebin.ubuntu.com/5716009/12:05
timpdpm: thanks12:06
dpmhey SDK folks, could any of you answer this app developer's question on theming? -> http://askubuntu.com/questions/282766/how-to-use-theming-in-qml-for-ubuntu-phone12:26
zsombi(03:26:22 PM) dpm: hey SDK folks, could any of you answer this app developer's question on theming? -> http://askubuntu.com/questions/282766/how-to-use-theming-in-qml-for-ubuntu-phone - taking that, it's mine ;)13:11
dpmzsombi, excellent, thanks! I've got one from earlier on, I'm not sure if you saw it: <dpm> zsombi, on that question about passing images from QML to C++ earlier on: if on the QML side I pass an Image.source to extractQImage, what's the best way to declare the imageObj argument in the function? As QObject, QUrl... ? http://pastebin.ubuntu.com/5716009/13:12
zsombidpm: haven't seen it, raring tricked me and I had to restart, perhaps it was then...13:13
zsombidp; however, I guess I also wrote that you should pass a QUrl13:14
dpmzsombi, I'll try that then, thanks13:29
=== netcurli_ is now known as netcurli
* zsombi eod, c u tomorrow15:09
=== greyback is now known as greyback|food
oSoMoNkenvandine: what package do I need to install for the following to resolve correctly in QML: import Ubuntu.OnlineAccounts 0.117:09
oSoMoNkenvandine: nevermind, I found it: qtdeclarative5-accounts-plugin17:14
oSoMoNkenvandine: FYI, the gallery app is broken because it’s missing this dep, I’ll fix it17:14
=== greyback|food is now known as greyback
kenvandineoSoMoN, oh... thanks!17:21
oSoMoNkenvandine: would you mind approving https://code.launchpad.net/~osomon/gallery-app/missing-uoa-dep/+merge/166552 ?17:25
kenvandinesure17:25
kenvandineoSoMoN, done17:26
oSoMoNthanks17:26
mgwNot sure if this is the best channel…. I'm trying to figure out why a write on a non-blocking fifo is taking 100+ ms.17:39
=== greyback is now known as greyback|away
=== greyback|away is now known as greyback
=== greyback is now known as greyback|away
Logical___Hello everyone, I am new here and ubuntu at all.... I am interested in the app making for the new Ubuntu os for smartphones. My question is what language do I need to know to make apps22:40
Logical___Hello everyone, I am new here and ubuntu at all.... I am interested in the app making for the new Ubuntu os for smartphones. My question is what language do I need to know to make apps22:43
netcurliLogical___: QML, Javascript (and maybe C++/Qt)22:45

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!