=== hunger is now known as hunger_ | ||
=== hunger_ is now known as hunger | ||
Mirv | hello | 04:01 |
---|---|---|
Mirv | zsombi: morning! | 05:33 |
zsombi | Mirv: ahoj :) | 05:33 |
timp | is anyone familiar with qplatformmenu? | 06:45 |
timp | zsombi: you perhaps? | 06:45 |
dpm | good morning everyone | 06:56 |
timp | dpm: hello | 06:57 |
timp | dpm: I want to finish the MR to enable lp translations for the uitk today. | 06:57 |
timp | dpm: https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/translations/+merge/166307 | 06:57 |
dpm | morning timp | 06:57 |
* dpm looks at it | 06:57 | |
timp | dpm: you said that I needed to add an additional keywords=tr:1,2 there. does that mean to have two times --keywords? | 06:57 |
timp | dpm: I couldn't find what the :1,2 does | 06:57 |
dpm | timp, 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 find | 06:59 |
dpm | some documentation | 07:01 |
dpm | timp, 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.html | 07:02 |
dpm | and http://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html | 07:02 |
timp | dpm: ok, thanks | 07:04 |
timp | dpm: it is not fully clear to me what launchpad will take over from the packaging | 07:05 |
timp | dpm: do I still need to put .mo files in the correct places with 'make install' ? | 07:05 |
dpm | brb | 07:05 |
dpm | timp, I hope this answers the questions on packaging: https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/translations/+merge/166307/comments/368864 | 07:32 |
timp | dpm: thanks. checking it now | 07:35 |
oSoMoN | zsombi: 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 |
zsombi | oSoMoN: yes, I'll take it immediately | 08:12 |
oSoMoN | zsombi: thanks | 08:13 |
zsombi | timp: oSoMoN has added the new API to the CHANGES file, but we haven't agreed to alter CHANGES file for new API... | 08:18 |
oSoMoN | zsombi: I wasn’t sure whether that was needed, I can remove it | 08:19 |
zsombi | timp: 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 |
zsombi | oSoMoN: let's remove it for now... | 08:20 |
oSoMoN | ok | 08:20 |
oSoMoN | zsombi: ah, I didn’t know there was a CHANGES.syntax file, now it makes sense, I removed the ADDED line | 08:23 |
zsombi | oSoMoN: happroved | 08:24 |
zsombi | oSoMoN: thanks!!!! | 08:24 |
oSoMoN | thanks for the review | 08:25 |
zsombi | oSoMoN: any extra property you need that is not yet forwarded in TextField, feel free to contribute... otherwise it will be revisited only after beta released | 08:25 |
oSoMoN | zsombi: ok, will keep it in mind, and will contribute if the need arises | 08:26 |
dpm | hey all, does anyone have any pointers on how to port this snippet of code to Qt 5? http://pastebin.ubuntu.com/5716009/ | 08:32 |
zsombi | dpm: it's not QQUickItem that should be used, but QQuickPaintedItem | 09:18 |
zsombi | dpm: that one provides paint() functionality with QPainter | 09:18 |
dpm | zsombi, 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 |
dpm | Let's say C++ and pure Qt is not my strength, sorry if I'm asking something obvious | 09:26 |
zsombi | dpm: 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 |
dpm | zsombi, 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 |
dpm | I can probably load the image from the file system, but I thought it'd be cleaner to pass the image to the function | 09:35 |
zsombi | dpm: not without including QtQuick privates :( | 09:35 |
zsombi | dpm: the image you pass it's a QQuickItem after all... | 09:36 |
dpm | bummer :( | 09:36 |
dpm | zsombi, so essentially this was possible in Qt 4 and it's no longer possible in Qt 5? | 09:37 |
zsombi | dpm: those were different daze :) | 09:37 |
zsombi | dpm: let me check the QQuickImage... | 09:38 |
dpm | thanks :) | 09:38 |
zsombi | dpm: 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 |
zsombi | dpm: qtquick suffered major rewrite, sorry. | 09:42 |
dpm | zsombi, 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 |
zsombi | dpm: 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 privates | 09:45 |
dpm | ok, I'll try that, thanks zsombi | 09:48 |
zsombi | dpm: yr welcome! | 09:48 |
=== chriadam is now known as chriadam|away | ||
timp | bzoltan: I added a po/ directory to ubuntu-ui-toolkit, and inside in the .pro file I added an install target that copies translation files | 11:32 |
timp | bzoltan: so are they then automatically installed when I 'make install' in ubuntu-ui-toolkit source root? | 11:32 |
timp | dpm: I updated https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/translations/+merge/166307 | 11:36 |
timp | bzoltan: ^ could you also review? | 11:37 |
dpm | timp, cool, looking... | 11:49 |
dpm | timp, 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 |
dpm | I mean the installation from the .mo files | 11:56 |
timp | dpm: I don't know, that's why I asked bzoltan1 | 11:56 |
dpm | ok, no worries | 11:57 |
dpm | timp, ah sorry, I hadn't seen your question to Zoltan above | 11:57 |
dpm | timp, ok, reviewed and added a comment | 12:02 |
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/ | 12:05 |
timp | dpm: thanks | 12:06 |
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 | 12: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 |
dpm | zsombi, 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 |
zsombi | dpm: haven't seen it, raring tricked me and I had to restart, perhaps it was then... | 13:13 |
zsombi | dp; however, I guess I also wrote that you should pass a QUrl | 13:14 |
dpm | zsombi, I'll try that then, thanks | 13:29 |
=== netcurli_ is now known as netcurli | ||
* zsombi eod, c u tomorrow | 15:09 | |
=== greyback is now known as greyback|food | ||
oSoMoN | kenvandine: what package do I need to install for the following to resolve correctly in QML: import Ubuntu.OnlineAccounts 0.1 | 17:09 |
oSoMoN | kenvandine: nevermind, I found it: qtdeclarative5-accounts-plugin | 17:14 |
oSoMoN | kenvandine: FYI, the gallery app is broken because it’s missing this dep, I’ll fix it | 17:14 |
=== greyback|food is now known as greyback | ||
kenvandine | oSoMoN, oh... thanks! | 17:21 |
oSoMoN | kenvandine: would you mind approving https://code.launchpad.net/~osomon/gallery-app/missing-uoa-dep/+merge/166552 ? | 17:25 |
kenvandine | sure | 17:25 |
kenvandine | oSoMoN, done | 17:26 |
oSoMoN | thanks | 17:26 |
mgw | Not 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 apps | 22: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 apps | 22:43 |
netcurli | Logical___: QML, Javascript (and maybe C++/Qt) | 22:45 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!