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

=== Mirv_ is now known as Mirv
mardyKaleo: hi! How do I tell cmake to use a certain version of Qt?06:35
mzanettiKaleo: Hey. What icons should I be able to use with the Icon item? There are 2 packages: ubuntu-mobile and ubuntu-mobile-icons. however, for example the "location" icon from ubuntu-mobile-icons can't be found by an Icon {}.07:56
=== chriadam is now known as chriadam|away
dpmgood morning all08:38
bl4deGuys, I've an idea (I've a dream ;) ). I'd like to write a Qt opensource SublimeText editor, 100% compatible with the original plugin packages, with same characteristics etc, but there is too much work for only me. I've not experience for creating a brand new editor widget for qt, so I want to create a team. Who can help me?08:41
timpzsombi: you have comments on https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/ima-in-window/+merge/16556708:41
zsombitimp: could you explain what you mean in the second part of this? https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/ima-in-window/+merge/165567/comments/36719708:49
timpzsombi: sorry my copying&pasting made it unclear08:50
timpzsombi: I meant that the if-else can go after the while loop08:51
zsombitimp: sure08:55
zsombitimp: this is bad: https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/ima-in-window/+merge/165567/comments/36721308:59
zsombitimp: if popup is a string, and caller is null/undefined, then we cannot fetch the rootItem anymore08:59
timpzsombi: that's what I was saying :)09:00
timpzsombi: perhaps you have to pass popupComponent to rootItem() ?09:01
zsombitimp: no, you said perhaps I should use popupComponent there09:01
zsombitimp: and who's the parentItem of popupComponent there?09:01
zsombitimp: "popupComponent = Qt.createComponent(popup);"09:02
timpso, no parent?09:02
zsombitimp: yep, no parent there09:02
timpzsombi: in that case, rootObject is returned?09:03
zsombitimp: nope09:03
zsombitimp: and even if iot would be, it would be invalid when a Popover is opened in a Window09:03
zsombitimp: however PopupBase.show() may solve th eissue...09:04
zsombitimp: well, it cannot :(09:06
timpzsombi: webbrowser, ubuntu-filemanager use it with a url09:07
zsombitimp: yeah... so then those would need to specify a parent... we need to extend the open() API with a parent... or we must document that the caller must be given if the popup is a string09:08
zsombitimp: which affects opening the Dialogs09:09
timpI prefer the API  like this, perhaps we can assign a default parent09:09
timpdidn't we assign rootObject in those cases?09:09
zsombitimp: hold on: "Sheets do not need callers to be specified, however when using non-modal Sheets or   Dialogs, it is worth to set the caller when opening Sheets to avoid leaving orphan   sheets on the screen."09:09
timpcaller is not the parent, but the Item (like button in a toolbar) that the popover will have a pointer to.09:10
zsombitimp: what's the default parent? how do you detect whether the Dialog/Popover is opened in a Window?09:10
zsombitimp: yes, but I need a component I can use a reference to fetch the actual root item09:10
zsombis/a/as09:10
zsombitimp: I need the caller only to be able to get the current rootItem relative to an existing item. That's it09:12
timpok09:14
zsombitimp: I can get the extra QQuickWindows (Window) from QGuiApplication::topLevelWindows(), but only after the window gets shown. And that is too late. And I don't even know which one is the active one, QGuiApplication::focusWindow() gives me 0 :(09:15
timpso there is a problem when popup is a url, and caller is null09:15
timpnull/undefined09:15
zsombitimp: yes..09:16
zsombitimp: so we need to mandate the use of caller in those cases.09:16
zsombitimp: which with a good explanation may be good09:16
zsombis/good/acceptable09:17
timpyes09:17
timpso, if you have an app with multiple windows, then you need the caller to determine in which window the popup should open?09:18
zsombitimp: yep09:18
timp(in case the popup is defined by a url so the parent is not known)09:18
timps/parent is not known/it has no parent09:19
zsombiright09:19
timpsounds good09:19
timphmm09:19
timpwe could document it like this, but still work if no caller is given by using the rootObject?09:20
timpzsombi: ^09:20
zsombitimp: we are about to deprecate the rootObject(), however we could keep it in this case...09:21
zsombitimp: I'd say we should simply fail opening Sheets/Dialogs when caller is not specified!09:28
zsombitimp: and popup is a url09:28
timpzsombi: you don't need the rootObject() function, but you can assign m_rootView->rootObject() as you do inside rootItem()09:28
timpzsombi: I disagree. Most applications will have only one window, so it is clear where to show the sheet/dialog09:29
zsombitimp: you mean when the given object is null?09:29
timpeven without a caller09:29
zsombitimp: don't forget that most probablu Sheet and Dialog will become a Window once we reach desktop!09:29
zsombitimp: perhaps we should even do it right now09:30
timpI don't know if it will become a window09:31
timpdialog darkens the current window and centers inside that09:31
zsombitimp: well, let's see once we reach there :)09:31
timpI haven't seen designs for desktop yet, so let's focus on other devices now :)09:31
zsombitimp: so you suggest that we should return the rootObject if the given object is null?09:32
timpzsombi: in rootItem()? I didn't think of that yet, I was just thinking of solutions for the popups09:36
timpzsombi: but rootItem() to return rootObject if the parameter is null may be a solution :)09:36
zsombi(12:28:51 PM) timp: zsombi: you don't need the rootObject() function, but you can assign m_rootView->rootObject() as you do inside rootItem()09:36
timpuhm09:37
timpyes you are right, I wasn't realizing that QuickUtils and popupUtils were in different files, so you would need something like that09:37
zsombitimp: I can only do this inside rootItem() when object is null09:37
zsombi:)09:37
timpeven though both files do something completely different, and one is cpp and the other js.. I missed it :)09:38
timpit is still a bit tricky09:40
zsombiwhy? what?09:40
timpif you pass an Item that is not null, but has null as a parent, what will happen?09:40
timpor null as one of the parents (not necessarily the direct parent)09:40
timpmaybe it is a bit far-fetched09:41
zsombitimp: well, the assumption is that you reached the topmost item09:41
* timp checking what happens if you push a url to a pagestack09:45
timpok that's fine. All the objects created have their parent set :)09:47
timpzsombi: so what's the plan? popupComponent.createObject(QuickUtils.rootItem(caller)) seems good for me if rootItem returns rootObject for an undefined caller09:49
zsombitimp all comments addressed, check the MR again09:49
timpah you are ahead of me :)09:49
zsombi;)09:49
* timp will check09:49
zsombitimp: I'm in hurry to get back to layouts before I forget all I had in my mind ;)09:50
timpok09:50
timpzsombi: changes look good. did you test it?09:56
timpbrb09:56
zsombitimp: not on the device, but ran all the test cases I have... lemme run a quick test on tablet09:57
timpgreat, thanks09:58
=== bl4de_ is now known as bl4de
dpmkalikiana, nice work with getting the online docs in shape!10:28
kalikianadpm, I updated the branch, could you locally run a 'qmake; make docs' and see how it looks?10:31
dpmsure, on it10:31
kalikianathanks10:32
dpmkalikiana, actually, which branch, the one with the config or the one with the navigation?10:32
dpmah, I see it, the config one10:33
dpmkalikiana, generated docs look good, but I got a few warnings: http://pastebin.ubuntu.com/5706410/10:37
kalikianadpm, I'd prefer a new bug for the warnings10:38
kalikianaif you don't mind filing one10:38
kalikianaI don't *think* I caused them, rather the broken setup made it hard to reliably see errors10:39
dpmkalikiana, I don't mind at all if it's indeed a bug, but we should probably wait until the branch lands to report it, so that it applies to trunk, I guess10:40
kalikianadpm, it already applies to trunk, I just verified it10:44
kalikianait's only hard to see due to the build system mess10:45
dpmkalikiana, ok, bug 118456710:47
ubot2Launchpad bug 1184567 in Ubuntu UI Toolkit "Documentation generation warnings" [Undecided,New] https://launchpad.net/bugs/118456710:47
kalikianathanks10:48
kalikianaKaleo, standup11:05
kalikianaMirv, ^^11:05
timpzsombi: happroved11:15
Mirvone more thing. was it so that ubuntu-ui-toolkit-doc was wanted to be installed as part of ubuntu-sdk? I think so, I just didn't write it from UDS notes although I think it was discussed there11:16
zsombitimp: awesome!!!!!11:16
zsombitimp: thx11:16
Mirvbzoltan1: see question above ^11:17
bzoltan1Mirv: when?11:18
Mirvbzoltan1: 2mins ago, thet -doc question :)11:19
MirvI just want to confirm it's so, before proposing all that change to the meta packages11:19
bzoltan1Mirv: ahh... from you11:19
Mirvor whether the plan was that documentation is fully on the web instead11:19
bzoltan1Mirv: Yes, the -doc package should be installed with the SDK11:20
bzoltan1Mirv: that package plugs in the docs to the QtC11:20
Mirvyes it does, that's why it sounded like the right thing to do11:21
Mirvtahnks11:21
=== mzanetti is now known as mzanetti|lunch
Kaleomzanetti|lunch: both icon packages are installed on the device??12:20
Kaleomardy: sorry I don't know, what's your use case?12:21
Kaleokalikiana: top approve? https://code.launchpad.net/~fboucault/ubuntu-ui-toolkit/qml_app_arguments/+merge/16462212:23
Kaleo:)12:24
kalikianaKaleo, you're still on 'Needs Fixing' that's why I didn't12:24
Kaleokalikiana: it's ready12:24
kalikianaKaleo, bear with me, my mindreader is in repair ;-)12:25
kalikiana(approved)12:26
Kaleocheers12:26
Kaleobzoltan1: yo12:31
bzoltan1Kaleo: good day sire12:32
om26errenato_, Hi!12:49
om26errenato_, is there a way to start the mediaplayer in landscape mode? like a command line parameter ? (on devices)12:50
Mirvbzoltan1: please approve https://code.launchpad.net/~timo-jyrinki/ubuntu-seeds/ubuntu-touch.add-ui-toolkit-docs/+merge/16587512:53
Mirvbzoltan1: via comment, there's no automerger or such, but to get a note at the request12:53
renato_om26er, unfortunately not12:53
Mirvthanks :)12:54
bzoltan1Mirv: with pleasure12:54
om26errenato_, there are a few autopilot tests that fail on phones because they try to click on the seek bar but it seems seek bar is only visible on phones in landscape12:54
=== mzanetti|lunch is now known as mzanetti
mzanettiKaleo: no, they are conflicting12:59
Mirvbzoltan1: as a bit related issue, another merge request is pending an actual saucy archive upload of ui-toolkit, which hopefully will happen this week. https://code.launchpad.net/~timo-jyrinki/ubuntu-seeds/ubuntu-touch.remove-qt5default/+merge/16529113:00
Mirvbzoltan1: that's what would cause the non-dev packages to be removed from (saucy) device images finally13:00
bzoltan1Mirv: cool13:01
Kaleomzanetti: so which one is on the device?13:01
mzanettiKaleo: per default its the ubuntu-mobile13:02
Kaleoom26er: sounds like the autopilot test should only be run if the width is greater than something13:02
Kaleomzanetti: it should be ubuntu-mobile-icons13:03
mzanettiKaleo: thats what I thought, and installed it manually. I tried to use some of them yesterday but it failed.... Icon { name: "location" } should work if ubuntu-mobile-icons is installed, right?13:03
mzanetti(ofc additionally a width+height set)13:04
Kaleomzanetti: it sohuld yes13:04
Kaleomzanetti: does it work on your desktop?13:04
mzanettiKaleo: tbh I only tried on the desktop. so no, it doesn't13:04
Kaleomzanetti: you doing that for the shell?13:05
mzanettiKaleo: no. one of my apps13:05
Kaleomzanetti: ok13:05
Kaleomzanetti: loading the svg with Image {} works?13:05
mzanettiKaleo: nope13:05
Kaleomzanetti: do you have qt svg installed?13:06
* mzanetti checks13:06
mzanettiKaleo:  *** 5.0.2-2ubuntu1~raring1~test1 013:06
Kaleomzanetti: works here13:09
mzanettihmpf...13:09
Kaleohttp://pastebin.ubuntu.com/5706743/13:09
Kaleo  Installé : 5.0.2-2ubuntu1~raring1~test113:10
mzanettiKaleo: http://paste.ubuntu.com/13:11
Kaleomzanetti: nice url :)13:11
mzanettihttp://pastebin.ubuntu.com/5706743/13:11
mzanettihuh?13:11
Kaleomzanetti: that's mine :)13:11
mzanettistop confusing me :D13:11
mzanettihttp://paste.ubuntu.com/5706750/13:11
mzanettihere we go13:11
Kaleomzanetti: yes but hang on13:12
Kaleoif http://pastebin.ubuntu.com/5706743/ does not work then we have a bigger issue13:12
Kaleo(for me it works)13:12
mzanettiKaleo: thats interesting: http://pastebin.ubuntu.com/5706754/13:13
mzanettiKaleo: seems because my qml files are in a qrc13:13
Kaleomzanetti: don't do that :)13:13
mzanettiKaleo: well... porting an app that does it like this already. usually I try not to do that13:14
mzanettiKaleo: still... why would that matter when resolving image paths?13:14
Kaleomzanetti: ok, mystery solved :)13:14
Kaleomzanetti: sorry, mystery not solved13:14
bzoltan1Mirv: The Quantal tests of the packages and the IDE is started now.. finally13:16
mzanettiKaleo: seems to be an issue in our custom image provider, right?13:17
Kaleomzanetti: ah interesting13:18
Kaleomzanetti: there are unit tests for qrc support but maybe not that case13:18
kalikianajppiiroinen, any idea when jenkins is gonna be back online?13:18
mzanettiI don't exactly know how it works, but the fact that we can add @GU stuff to filenames makes me believe we have patched or overridden the default image provider13:18
Kaleomzanetti: if you don't import Ubuntu.Components 0.1?13:18
* mzanetti tries13:18
Kaleomzanetti: and please tell me if http://pastebin.ubuntu.com/5706743/ works?13:19
bzoltan1Mirv: I do not know if that is Q/P specific issue, but on both test rounds I had to manually kill and start the adb server in order to make the QtC recognize the Nexus on the USB13:24
mzanettiKaleo: it does work when executed standalone (i.e. not in a qrc file).13:24
mzanettiKaleo: if the file is ina qrc, the image needs to be adressed with file:///full/path/foobar.svg13:25
mzanettiKaleo: so seems its always looking in the current scope if not URI scheme is given13:26
mzanettimystery solved13:28
MacSlowok13:28
mzanettiKaleo: want me to file a bug or you'll just fix it or file the bug yourself?13:28
Kaleomzanetti: it depends you did not answer either of my 2 questions13:35
Kaleo15:18 < Kaleo> mzanetti: if you don't import Ubuntu.Components 0.1?13:36
Kaleo15:19 < Kaleo> mzanetti: and please tell me if http://pastebin.ubuntu.com/5706743/ works?13:36
mzanetti[15:24] <mzanetti> Kaleo: it does work when executed standalone (i.e. not in a qrc file).13:36
mzanetti[15:25] <mzanetti> Kaleo: if the file is ina qrc, the image needs to be adressed with file:///full/path/foobar.svg13:36
mzanetti[15:26] <mzanetti> Kaleo: so seems its always looking in the current scope if not URI scheme is given13:37
mzanetti[15:28] <mzanetti> Kaleo: want me to file a bug or you'll just fix it or file the bug yourself?13:37
Kaleomzanetti: that does not say if you are importing or not ubuntu compônents13:37
mzanettiKaleo: I'm not13:37
Kaleomzanetti: nor if you try that pastebin13:37
Kaleotried*13:37
mzanettiKaleo: that result is with your pastebin, yes13:37
Kaleomzanetti: good13:37
Kaleomzanetti: so it's a bug in Qt13:38
Kaleomzanetti: nothing to do with us13:38
mzanettiKaleo: if executing your paste in qmlscene it works, if executing from the other project from within a qrc, it doesn't13:38
Kaleomzanetti: understood13:38
Kaleomzanetti: it's unrelated to Ubuntu13:38
mzanettiKaleo: I'd say its not a bug in Qt per se... its more a convenience feature I'd say13:38
Kaleomzanetti: right13:38
Kaleomzanetti: so what's the bug?13:38
Kaleomzanetti: in Icon?13:38
Kaleomzanetti: right13:38
mzanettiKaleo: I think inside the Icon {} you should always prefix the path with file://13:39
Kaleomzanetti: please file the bug :)13:39
Kaleomzanetti: thanks for digging13:39
mzanettiKaleo: ok.13:39
mzanettiKaleo: https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/118461113:47
ubot2Ubuntu bug 1184611 in Ubuntu UI Toolkit "[Icon] image path is not correctly resolved if used from within a qrc file" [Undecided,New]13:47
Kaleomzanetti: thanks13:50
kalikianajppiiroinen, I guess jenkins is still down… I don't see if it's doing anything or just sitting there https://jenkins.qa.ubuntu.com/job/ubuntu-ui-toolkit-raring-armhf-ci/13:51
mzanettikalikiana: btw. it'd be awesome if Button could use the same name as Icon to refer to themed icons ;)14:01
mzanettierr... Kaleo ^14:01
=== francisco is now known as Guest85729
guschrenato_: can you do a review (only removed files)? https://code.launchpad.net/~schwann/gallery-app/gallery-remove-old-unused-files/+merge/16588714:18
MacSlowzsombi, looks like QML Text-element is lacking the needed capability... so it's not a bug of the SDK's Label-element.14:34
zsombiMacSlow: as I thought so...14:35
MacSlowzsombi, I can only get text to "elide" on the left, if just one line of text is displayed14:35
MacSlowSaviq, ^14:36
Kaleomzanetti: agreed14:37
zsombiMacSlow: I suggest you to ask on #qt-qml, but this most likely is a bug14:38
MacSlowzsombi, ok14:39
guschanyone up for a review? https://code.launchpad.net/~schwann/gallery-app/gallery-remove-old-unused-files/+merge/16588714:47
=== greyback is now known as greyback|food
guschanyone up for a review? https://code.launchpad.net/~schwann/gallery-app/gallery-remove-old-unused-files/+merge/16588715:08
guschoSoMoN: nerochiaro ^15:08
oSoMoNgusch: I’ll take it15:09
guschoSoMoN: thx15:09
oSoMoNKaleo: is the "Ubuntu Application Developer Story Catchup" hangout up today?15:30
KaleooSoMoN: yes15:31
KaleooSoMoN: every Monday15:31
oSoMoNok, joining then15:32
=== greyback|food is now known as greyback
tonyohello18:30
=== francisco is now known as Guest35949
=== ajmitch_ is now known as ajmitch

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