/srv/irclogs.ubuntu.com/2014/01/27/#ubuntu-app-devel.txt

qwebirc231403I just start using autopilot. I encounter this error, "import mock\n ImportError: No module named mock". Any people know how to solve it?02:18
ahayzenqwebirc231403, u'll need to install the package python-mock02:31
qwebirc231403ahayzen: fixed. Thanks. Now I have this error "from ubuntuuitoolkit import emulators as toolkit_emulators\n ImportError: No module named ubuntuuitoolkit"02:39
ahayzenqwebirc231403, try installing ubuntu-ui-toolkit-autopilot02:42
qwebirc231403ahayzen: It works, thank you02:47
ahayzenqwebirc231403, no problem02:47
dholbachgood morning08:23
=== oSoMoN_ is now known as oSoMoN
dpmmorning mzanetti o/ the reminders app is already in the store and looking better every day, thanks! :) I've tested the latest branches and filed a bunch of bugs09:00
JamesTaitGood morning all; happy Bubble Wrap Appreciation Day! :-D  http://www.virtual-bubblewrap.com/popnow.shtml09:20
mzanettidpm: o/10:10
mzanettidpm: regarding this comment: https://code.launchpad.net/~mzanetti/reminders-app/change-edit-page/+merge/203139/comments/47418110:10
mzanettidpm: I've seen this too. haven't really investigated as I' quite sure it's not in my code. but it seems that the scrolled offset is not taken into account10:11
mzanettidpm: like: if there isn't anything scrolled, everything is fine. but as soon as you scroll down a bit, setting the cursor position breaks10:12
mzanettiand I think exactly the offset for how much you scrolled10:12
dpmmzanetti, yeah, I figured out it wasn't in the app's code. Yes, that seems plausible, right now it's really not possible to do edits because of this, though. I shall report it as an SDK bug10:13
dpma UITK bug, rather10:13
mzanettidpm: cool, thanks.10:13
=== alblasch is now known as ablasche
=== ablasche is now known as ablasche_
=== ablasche_ is now known as ablasche
=== MacSlow is now known as MacSlow|lunch
=== _salem is now known as salem_
WebbyITHey mzanetti :)12:00
mzanettiWebbyIT: o/12:00
WebbyITmzanetti, I'm here to help you with reminders-app, if you are ok :-) But I don't know C++...12:01
mzanettiWebbyIT: yeah, I've been talking to dpm.12:01
mzanettiWebbyIT: I was thinking if you could perhaps start with creating the RTF formatting panel12:02
WebbyITmzanetti, ok, I'll start to work on this asap!12:02
mzanettiWebbyIT: that is, if you use latest trunk and edit a note, you'll see a panel at the bottom for importing pictures and do RTF formatting12:02
mzanettiWebbyIT: when pressing the rtf button, I think the panel should transform into another panel giving controls for bold, italic, color etc12:03
dpmWebbyIT, so if you're interested in participating, in the meantime I'll add you to the team if you're ok with that12:03
WebbyITmzanetti, cool, yeah!12:03
WebbyITdpm, yes, sure12:03
mzanettiWebbyIT: I'm not entirely sure yet how to do the actual editing. you could have a look if its possible to edit the stuff in the TextArea directly12:03
WebbyITmzanetti, ok, I'll investigate then I'll update you12:04
WebbyITmzanetti, meanwhile, I tried to fix a bug: https://code.launchpad.net/~rpadovani/reminders-app/127310212:04
mzanettiWebbyIT: we could do it in c++ easily, however, that would require to reload the content which would cause it to be repositioned etc12:04
mzanettiso if possible we should edit the content in qml directly12:04
dpmWebbyIT, nice!12:04
mzanettiapproved12:05
dpm\o/12:06
dpmWebbyIT, you'll also find links to the design wireframes in https://wiki.ubuntu.com/Touch/CoreApps/Reminders12:06
WebbyITdpm, saved, thanks12:06
WebbyITLaunch time, I'll return this evening, thanks for indications guys!12:06
mzanettiWebbyIT: yeah, its the "Note composer/Format menu" picture in the wireframe12:07
mzanettisee you later then12:07
=== MacSlow|lunch is now known as MacSlow
=== salem_ is now known as _salem
=== _salem is now known as salem_
ybonSeems like both my desktop (Saucy) and my mobile (Trusty devel) are shipping Qt 5.0.2, any idea when/if SDK will go on Qt5.2?12:50
=== gatox is now known as gatox_bbl
popeyybon: Mirv may be able to answer that12:58
Mirvybon: as soon as it works perfectly. Unity8 already runs with it, and Qt 5.2 is being tested via a PPA https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-beta213:00
Mirvthe problem is that we want it to run as good as Qt 5.0.2 before switching, and there bugs to be fixed (https://bugs.launchpad.net/bugs/+bugs?field.tag=qt5.2) and yet to be filed. hopefully however we're on track to reach the goal soon, as it's now finally possible to test it both on desktop and device to an extent.13:01
popeythanks Mirv13:01
ybonthanks Mirv :)13:02
ybonso we are close to13:02
* ybon tempted to upgrade manually13:02
ybonbut, well, no, if I use 5.2 things in my app, others testers will no be able to use the app13:03
Mirvybon: it will make your phone almost unusable because the last I checked this morning was that app launching didn't really work :) on desktop it's somewhat safer.13:03
popeylooking at those 59 bugs, I wouldn't upgrade ☻13:03
Mirvybon: yeah I recommend against trying before it's actually launched and delivered via SDK13:03
ybonyep, sounds reasonable :)13:03
ybonpopey: so it seems to me that there is no way to support wheel/dblclick/keyboard on map until 5.2 :(13:04
ybonI may we wrong because it's hard to follow the Qt changelog13:04
ybonI may be* wrong13:04
popeyoh, interesting13:04
popeythe other option might be an overlayed slider or zoom in/out buttons overlayed?13:04
ybonyes, but it breaks the "space to content" principle ;)13:05
popeytrue13:05
ybonI've tried to get better info on #qt-mobility, but seems quite dead over there13:06
ybonThe status as understood by me is that we need this commit to be able to mix touch and mouse events: https://qt.gitorious.org/qt/qtlocation/commit/29af7e577e34089f781322351043de39c025e01e13:08
mzanettidpm: https://code.launchpad.net/~mzanetti/reminders-app/cleanup/+merge/20331713:08
ybonbut again, Qt is huge, and I'm playing kind of a puzzle at the moment13:08
ybonso I may I've missed the point13:09
dpmmzanetti, running ./run_on_ubuntu_touch.sh now...13:12
dpmmzanetti, what's -DCLICK_MODE=1 in L97?13:14
mzanettidpm: sergio's changes to cmake require us to call cmake with that now13:14
mzanettidpm: basically it just changes all the install paths from system to some local dir13:14
dpmok13:15
mzanettidpm: also it generates the .json files for click packaging13:15
mzanettiif you want to know more, check CMakeLists.txt and search for if(CLICK_MODE)13:15
dpmok13:17
dpmmzanetti, I've approved it, but not top-approved as it might be worth having Sergio having a quick look at it13:17
mzanettidpm: yeah, I added him to the reviewers13:17
dpmcool13:18
=== salem_ is now known as _salem
marcuswqml, hmm?13:36
popeymarcusw: hello13:44
=== gatox_bbl is now known as gatox
marcuswpopey: morning13:53
marcuswI was just going to ask why QML is involved here, since ubuntu is classically gtk-based13:53
popeymarcusw: we switched to qt for ubuntu touch13:55
marcuswoh13:56
marcuswhow about that13:56
popeyindeed13:56
popeyworking out quite well ☻13:56
marcuswhow do you handle the qml-is-slow-as-shit problem?13:57
popeyheh, we also support c++.. opengl..13:57
marcuswqmlscene load times weren't an issue?13:57
popeyand we report and track performance issues13:57
popeyyeah, that's been a problem on the radar13:57
marcuswqmlscene slowness almost killed our platform here13:58
marcuswit's a billion-dollar product for us, kind of a big deal13:58
marcuswwe ended up having this one qt guy rewrite it to not be slow13:59
marcuswlol13:59
mzanettifginther: hi. you around yet?13:59
marcuswunfortunately management isn't very enthusiastic about publishing it14:00
fginthermzanetti, I'm here14:00
popeyI think we're looking at alternative ways to launch.14:00
mzanettifginther: the reminders-app has been renamed to reminders (and with it the AP test suite)14:01
mzanettifginther: could you please change the job to execute "autopilot run reminders"14:01
mzanettiinstead of reminders_app14:01
fginthermzanetti, sure14:05
fginthermzanetti, did the bzr trunk branch change?14:06
mzanettifginther: no, not yet14:09
mzanettifginther: so far only the code inside14:09
mzanettidpm: do we change that? ^14:09
dpmmzanetti, yeah, makes sense, but I'd double-check with fginther on the timing to do the change on Jenkins. Francis, shall we approve the branch doing the rename and then change the Jenkins job or is there a cleaner way for the transition?14:11
fgintherdpm, I was mostly curious if more changes were coming. If there is an MP ready with the autopilot rename ready, lets go ahead and land that, then you can let me know the branch is renamed14:13
mzanettifginther: https://code.launchpad.net/~mzanetti/reminders-app/cleanup/+merge/20331714:15
dpmfginther, another question: would it be possible to trigger Jenkins for https://code.launchpad.net/~ted/ubuntu-calendar-app/url-dispatcher/+merge/201543 ? It seems it never ran for that MP14:17
fgintherdpm, one moment14:21
dpmfginther, np, thanks!. Also, I'm cleaning up the pending branches for calendar. I've got this one from you: https://code.launchpad.net/~fginther/ubuntu-calendar-app/remove-build-deps/+merge/192579 - as per oSoMoN's comment's do I mark it as rejected, or do you need those dependencies removed for any reason?14:27
=== zoopster_ is now known as zoopster
fgintherdpm, it was old and I can't remember what I was trying to do, I've removed it14:32
dpmok, thanks14:32
dpmpopey, do you know what this branch is trying to address? https://code.launchpad.net/~pkunal-parmar/ubuntu-calendar-app/MonthHighlightFix/+merge/20127914:32
dpmI'm not sure what I should be looking at14:33
* popey looks14:33
fgintherdpm, ted's MP is running now, he's probably not a member of the calendar team14:34
dpmfginther, ah, no, he isn't. What do we do in those cases to get Jenkins running?14:34
fgintherdpm, someone has to manually run the jobs through the jenkins UI or add him to one of the touch app teams14:36
dpmok, no worries. If you don't mind, it sounds doable to ping you when we get external contributions.14:37
popeydpm: http://imgur.com/jLf40iM14:37
popeynote the difference in the size of the white highlight, it's too big on the right window14:38
popeytakes up all the 27 part plus the 20 part above14:38
dpmah, well spotted, thanks popey14:38
popeyi reported it during a meeting but didnt file a bug, kunal fixed it clearly ☻14:39
dpmcool14:48
popeydpm: any merges you want me to take a look at?14:49
dpmpopey, I'm looking at the ones I can do, but perhaps some bug triaging would be helpful: some of the Fix Committed ones need to be checked out to see if they're Fix Released and a bunch of others need to be triaged and need Importance setting14:50
popeylets cover them in our call in 1014:50
davmor2popey: could you look at merging dino dna with that of toad and make dinosaurs for us?14:51
dpmok14:51
popeydavmor2: again, in english?14:51
davmor2popey: think Jurassic Park :)  <popey> dpm: any merges you want me to take a look at?  not so much fun when you have to explain it though :)14:52
popeydavmor2: http://tumbleweed.popey.com/14:54
davmor2popey: you need to add the sadtrombone.com button to that just to make it perfect ;)14:54
popey15:01
ybonJust reading the email about app running in background: does I understand well that they are forbidden by design?15:01
Elleoybon: yeah, pretty much, you might want to have a read through this thread for some discussion on it, although I'm not sure if there's been anything more recent: https://lists.launchpad.net/ubuntu-phone/msg04736.html15:03
ybonThat's sound strange to me, but I may be out of the point15:04
ybonthanks for the link :)15:04
Elleoybon: yeah, I think the general concern is to avoid poorly written apps hogging battery life when they're not in use15:05
Elleobut it does cause some issues for certain apps (like cutespotify) that need to be running in the background to work normally15:05
ybonyes, I thin I do understand why it's done like this15:07
ybonbut as exposed in the email you pointed to me, there are some use cases where this will be a blocker15:08
ybonReady the thread further15:09
ybonreading*15:09
davmor2ybon: it maybe that there is a helper that will allow background operation of apps it's just not implemented currently15:13
ybondavmor2: good to know, thanks15:14
ybonfor reference, a use case i have in mind is a GPS tracker15:15
ybonI know it's something I will need in the toolbox of a OSMer using UT15:15
Elleoybon: in the short term for personal use you can simply disable powerd ("adb shell stop powerd") which will stop the phone going to sleep, so as long as the tracker is in the foreground it'll be running15:16
Elleothat's obviously far from ideal though15:16
ybonthanks good to know15:17
ybonbut yeah, not really end user friendly ;)15:17
ybonah, the GPS tracker was already highlighted as a use case in the follow up of the thread :)15:18
fginthermzanetti, I ran your reminders app MP and there was a test failure.  Look like some internal import of reminders_app15:20
mzanettifginther: that might be, yeah. I'll fix it. one sec15:27
mzanettifginther: pushed15:27
=== oSoMoN_ is now known as oSoMoN
=== charles_ is now known as charles
=== _salem is now known as salem_
=== salem_ is now known as _salem
balloonsoSoMoN, got a moment to look at a bug? https://bugs.launchpad.net/ubuntu-calendar-app/+bug/127172616:29
ubot2`Launchpad bug 1271726 in Ubuntu Calendar App "In Week tab labels displayed in HeaderDateComponent differ from date with localization other than English locale" [High,Triaged]16:29
oSoMoNballoons, not now, but I’ll put it on my list16:30
=== _salem is now known as salem_
balloonsIt's kind of confusing to read, I'd suggest to have a look at the screenshots. Essentially the date displayed vs the date stored in the object is different16:30
balloonsin several places throughout the app.. stemming from a monday start of week locale16:30
WebbyITmzanetti, o/16:53
=== gatox_ultra is now known as gatox
=== bfiller is now known as bfiller_afk
mzanettiWebbyIT: hi17:50
WebbyITmzanetti, fast question: are you on 14.04? 'cause I've some problems with some icons, I'm on 13.10...17:51
mzanettiWebbyIT: yeah, 14.04 here. what's the issue? the icon properties in the toolbaricons?17:52
WebbyITmzanetti, yap, I sobstitute them with another just to develope, I have to remember to change again before push17:52
mzanettiWebbyIT: there is a ppa which gives you the latest uitk17:52
mzanettidpm: do you remember which one?17:53
WebbyITI have ubuntu-sdk-team-ppa-saucy.list, ubuntu-touch-coreapps-drivers-daily-saucy.list and  unity-team-ppa-saucy.list17:54
dpmmzanetti, WebbyIT, I'd recommend only installing from the stable PPA. I've had bad experiences with breakage and dependencies when trying the bleeding edge SDK ppa17:54
WebbyITunfortunately I have problems with my nvidia card, so I prefer to stay on stable version of Ubuntu17:55
popey+117:55
mzanettithis ppa should only update the touch components. but fair enough... I guess we can revert those icons to the old api17:56
mzanettiWebbyIT: feel free to propose a branch that makes it work with 13.1017:56
WebbyITmzanetti, don't worries, I have no problem, I change with some random icons17:56
nik90mihir:18:05
nik90hey18:05
=== bfiller_afk is now known as bfiller
mzanettifginther: all green btw. https://code.launchpad.net/~mzanetti/reminders-app/cleanup/+merge/20331718:15
mzanettithank you!18:15
dpmnik90, we updated the day for the clock hack day in the wiki18:15
dpmlet us know if it works for you: https://wiki.ubuntu.com/Touch/CoreApps/HackDays18:16
nik90dpm: don't be mad, but my exam was actually today so I dont mind tomorrow or the day after18:16
nik90sry18:16
dpmnik90, ah well, no worries, I hope that it went well :)18:16
nik90dpm: yeah it went well :)18:17
dpmgood to hear18:17
dpmWebbyIT, what's exactly the problem with icons? Are they not showing up in the desktop?18:17
WebbyITdpm, yes, exactly, I have some errors like18:18
WebbyITfile:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Themes/Ambiance/ToolbarButtonStyle.qml:33:9: QML QQuickImage: Failed to get image from provider: image://theme/edit18:18
dpmWebbyIT, mzanetti, in those cases where the desktop theme doesn't have the icon, I think an alternative can be specified, e.g. iconSource: "image://theme/delete,edit-delete-symbolic"18:21
om26erboiko, ping18:26
boikoom26er: pong18:26
om26erboiko, can you review this https://code.launchpad.net/~om26er/dialer-app/support_testability/+merge/20339118:26
om26erone liner18:26
boikoom26er: yes, sure, I just wonder when this is going to be moved from QApplication to QCoreApplication in Qt itself :-S18:26
boikoom26er: messaging-app will need the same fix18:27
om26erboiko, here: https://code.launchpad.net/~om26er/messaging-app/fix_introspection/+merge/203392 :p18:27
boikoom26er: ah, nice! I can review that one too, if you want18:27
om26erboiko, yes, that one is for you too18:28
om26er;)18:28
om26erwill need to add that to camera app as well18:28
boikoom26er: and address-book-app?18:29
om26erboiko, seems it already has it18:29
boikoom26er: great!18:29
om26erboiko, the "HistoryDelegate" in the messaging app needs a "moving" property when its being expanded. how simple is that going to be to add ?18:31
om26er10x better than sleep(1)18:31
boikoom26er: I guess it is simple, but maybe an animating property would be better (this might cover future cases of animation)18:31
om26erboiko, I might need to see some examples to be able to try to implement it (and learning)18:33
boikoom26er: let me check the code, just a sec18:34
labsinpopey, others, So I try to launch an app with qml plugins. It's working on the dektop in confinement with just placing the libs in ./lib/<arch> but it seems to not be working on the phone18:58
popeylabsin: trying to test it manually here18:59
labsinI then tried a wrapper script that exports LD_LIBRARY_DIR and adds the -I option to qmlscene (qmlscene -I lib/<arch>) and that works on the desktop18:59
popeylabsin: is your library built against qt4?19:03
labsinpopey, no19:03
labsinI don't think so..19:04
popeylabsin: try not using a shell script but use Exec=qmlscene... and specify the qml file before the -I lib/foo19:05
popeyi have a feeling the sequence is important19:05
popeyqmlscene ./music-app.qml --file=%f -I ./plugins19:05
popeye.g. thats how the music app does it19:05
popeyhmm, but we don't have the arch specific directory in the music app19:06
labsinpopey, It only has ARM19:06
popeyyeah19:06
popeycan you build a click which only has arm?19:06
popeywith no arch directory?19:06
labsinpopey, I used the proposed layout in the ubuntu-touch maillist19:07
popeyah19:07
labsinmusic app probably needs to change for fat packaging19:07
labsinpopey, I used the shell to set the linkers path because I also have a dynamic lib19:08
labsinpopey, another try http://ubuntuone.com/2ECSspw1A5N1RwKdcTh1BM19:14
popeyok19:14
popeylabsin: it starts19:19
popeylabsin: http://popey.com/~alan/phablet/device-2014-01-27-191927.png19:19
labsinpopey, does the second tab display anything?19:20
popeyyes ☻19:20
popeylabsin: http://popey.com/~alan/phablet/device-2014-01-27-192040.png19:20
labsinpopey, It still needs a ROM (you sould get it from your own calc, but i'll give you mine :D)19:21
popeyhaha ☻19:21
labsinhttp://ubuntuone.com/38ngJNIRg4koudql71iwUZ19:21
popeythis is way better than searching for MAME ROMS19:21
popeywhere do I put that?19:21
labsin.local/share/com.ubuntu.developer.labsin.tilem/19:22
popeyok, it finds it19:23
popeyhttp://popey.com/~alan/phablet/device-2014-01-27-192315.png19:23
popeyand explodes when I click it19:23
labsinpopey, thought so :)19:23
popeyUnable to load ROM file "/home/phablet/.local/share/com.ubuntu.developer.labsin.tilem/ti84se.rom": Permission denied19:24
popeyoh19:24
* popey fixes19:24
labsinpopey, ow?19:24
popeyi used adb push as root19:24
popeyok, better now it's owned by phablet19:24
labsinpopey, ahhh (didn't expect that)19:24
labsincalc screen should go white19:25
popeyhttp://popey.com/~alan/phablet/device-2014-01-27-192459.png19:25
popeyit does19:25
labsinand then put it on19:25
labsin(left bottom)19:25
popeyhmm19:25
popeynot responding to that19:25
labsinpopey, could you get the log?19:26
popeyya19:26
labsintnx19:26
popeylabsin: /19:27
popeybah19:27
popeyhttp://paste.ubuntu.com/6827938/19:27
popey(pressed it a few times)19:28
popeyi need to make food, responses may slow a bit, but ping me if you need anything19:28
labsinok thanx19:29
samertmhey all19:50
samertmif I were to work on this cal app bug, where would I start? https://bugs.launchpad.net/ubuntu-calendar-app/+bug/127262519:51
ubot2`Launchpad bug 1272625 in Ubuntu Calendar App "In the Day view of the app the bottom of the 11 PM hour is cut off" [Undecided,New]19:51
Mihir_samertm: hey19:57
Mihir_samertm: are you trying first time ?19:57
samertmMihir_: yeah19:57
samertmI'm here for the hack day haha19:58
Mihir_samertm: did you set up everything correctly ?19:58
samertmI believe so, I have it running in qt creator19:58
Mihir_samertm: make sure you are able to run application and then try to follow the step20:00
samertmMihir_: I can recreate the bug. I'm trying to figure out how scrolling works :P20:01
samertmare you saying I should step through the application w/ the debugger??20:01
samertm?* only one question mark20:02
Mihir_Scrolling will work with your mouse wheel20:02
Mihir_as well20:02
Mihir_samertm: there must be problem with some size20:03
Mihir_try to look in Dayview file20:04
samertmMihir_: alright, thanks for the tip :)20:05
samertmwhat are the path views?20:05
samertmlike, PathView or PathViewBase20:05
samertmare they the main scrolling areas of the app?20:05
samertmMihir_: I think I've found the culprit... let me do some more testing20:08
Mihir_samertm: when you look from the root file, it will make call to many other classes20:08
labsinpopey, ok maybe this is better: http://ubuntuone.com/2ECSspw1A5N1RwKdcTh1BM20:09
samertmMihir_: in DayView.qml, under PathViewBase, height is probably set to the wrong value20:09
popeylabsin: you broke it file:///opt/click.ubuntu.com/com.ubuntu.developer.labsin.tilem/0.1/TilEm.qml:5 module "Utils" is not installed20:14
labsinpopey, damn. Thought the -I wasn't needed (because it complains in the log)20:15
popeylabsin: maybe now it's time to setup the emulator ☻20:15
labsinpopey, Yes, I know. It's running for half an hour now and still a black screen20:15
popeyyeah, takes a while20:15
samertmMihir_: through trial and error, the height variable needs to be set to "column.height - viewHeader.height - dayHeader.height - 28" instead of "column.height - viewHeader.height - dayHeader.height"20:16
samertm:P20:16
labsinit seems to work once, I'll try creating it again20:16
samertmso that leaves the question, what header/item are we not taking into account that has a height of 28?20:16
samertm(btw, the bug also exists on WeekView20:17
samertm)20:17
Mihir_samertm: okay20:33
Mihir_samertm: once you are done push it and other will review your MR and will give you the feedback20:33
Mihir_:)20:33
samertmMihir_: thanks! so what are the headers and where can I find them?20:34
samertmb/c I measured the bar that says "SUN MON TUE..." at 26 pixels20:35
samertmhmmm... the Day and Week views have different cut off points20:40
samertmbut they're both wrong20:40
WebbyITmzanetti, I started to work on RTF for reminders-app, but via QML I have a problem: if I try to insert some formatting tag (e.g. <b>) if there is no text in the tags, then it is insterted. Mhh, I think I'm not explained well, please see this example: http://paste.ubuntu.com/6828371/ last example is my idea to "hacks" the situation20:48
WebbyITmzanetti, what do you think?20:48
mzanettiWebbyIT: yeah, the cursorposition doesn't match the actual position in the html20:49
mzanettiWebbyIT: in C++ I walk through the whole xml and count plaintext characters.20:50
mzanettibut not sure if thats an option to do in qml20:50
mzanettiI could offer you some helper from C++ though20:50
WebbyITmzanetti, but problem is not cursorPosition, problem is that if I try to insert <b></b>  doesn't work, but <b>a</b> yes20:50
WebbyITIf C++ can override this behavior, good, I think I have to study C++ :-P20:52
WebbyITotherwise, insert some example text is the best idea I have20:52
mzanettiah, I see20:52
mzanettilet me think for a minute20:52
mzanettiso there are 2 cases actually.20:53
mzanettione if the user has selected some text and clicks the <b> button20:53
WebbyITand I have not implement this yet, but it's not a problem20:53
mzanettiand the other if nothing is selected but the user wants to enable bold mode for the following characters20:53
mzanettiso I think case 1 is not a problem here20:53
mzanettifor case 2 I'd say we have to set a flag, boldEnabled: true20:54
mzanettiand then when the next char is coming in, make that bold20:54
mzanettibut yeah... otherwise you could just insert them in c++20:55
mzanettiif that turns out to be easier (which I would think)20:55
* WebbyIT looks the web for a C++ guide20:56
mzanetticheck out enmldocument.cpp20:56
mzanettithere's the attachimage20:56
mzanettiits not that hard actually20:56
mzanettiyou have the QXmlStreamReader and QXmlStreamWriter20:56
mzanettiit walks through the whole tree and copies over the tags20:57
mzanettifrom the reader to the writer20:57
mzanettiand at the given position just insterts the tags20:57
WebbyITmzanetti, ok, thanks, I'll try to look at it, I'll ping you if I need an help!20:58
mzanettiWebbyIT: there's one more caveat tho20:58
mzanettiif we call something from c++ we need to read the text from the textedit and set it again20:58
mzanettiwhich means the view would scroll to top20:59
mzanettior even flicker maybe20:59
mzanettiwe need to get around that. perhaps remembering the position and scrolling back. at least evaluate if that would be an option20:59
WebbyITseems a challenge :-) I like it!21:00
samertmhmm.... viewHeader.height is 38, and dayHeader.height is 64, but I can't find any elements that are those heights in pixels w/ gimp21:03
samertmhmm..... root.height is 552 for WeekView, but 564 for the DayView21:06
samertmMihir_: any thoughts?21:08
samertmnewbie question: where do root objects inherit their height from?21:14
samertmb/c in DayView, root.height is 564, and in WeekView, root.height is 55221:15
samertmwhen I would expect them to be the same21:15
WebbyITmzanetti, mhh, I think I need help on logic implementation: I was able to do a C++ function that is invoked when I press bold button (my first C++ code ever) but I have a problem: if I add only <b> then all the text until the end of text22:14
WebbyITIf i use writer.writeStartElement("b");22:15
WebbyIT                writer.writeEndElement();22:15
WebbyITnothing is write22:15
WebbyITI don't know how to put text between start and end tag22:15
mzanettiwriter.writeCharacters() to write text22:15
WebbyITyes, but there is no text yet :)22:16
mzanettiactually... I just realize...22:16
mzanettiif we insert the tags in there, and then update the ui again, the textedit will optimize them away again :/22:16
mzanettidammit. sorry I didn't think of it before22:17
WebbyITNP, I learn a lot of thing tonight, maybe it's the start of my study of C++ :)22:17
mzanettiyay22:17
mzanettiit wasn't that hard, was it?22:17
WebbyITNo, it wasn't, I look at your code and I have no problem22:18
mzanettiI try to keep it as readable as possible22:18
WebbyITyou do a good job, with some grep and sublime I find everything I need :)22:19
mzanettithanks..22:19
mzanettiso yeah. I think we need to do some more here22:19
mzanettiremembering positions and whatnot22:19
mzanettiand modifying the inserted text depending on those flags22:19
WebbyITMhh, I have an idea maybe, but I'll use QML :-P22:20
mzanettiyup. whatever you think its best. I think you know all the corner cases and possibilities now. you choose the weapons22:29
samertmDatsundere: hey22:36
samertmdpm: how much do you know about the calendar app?22:38
dpmhi samertm, it depends what you want to know :) What are you trying to find out about calendar?22:38
samertmdpm: I'm trying to figure out how the heights for the different views get set22:39
samertmfor bug https://bugs.launchpad.net/ubuntu-calendar-app/+bug/127262522:39
ubot2`Launchpad bug 1272625 in Ubuntu Calendar App "In the Day view of the app the bottom of the 11 PM hour is cut off" [Undecided,New]22:39
samertmfor instance, the height of WeekView is 552 and the height of DayView (and all the other views) is 56422:40
samertmand I'm trying to figure out what's causing the difference22:40
samertmI'm brand new to qml :P22:41
dpmsamertm, I'm afraid I don't know off the top of my head, I'd have to look at the code, but the best thing might be to send an e-mail to this mailing list -> https://launchpad.net/~ubuntu-touch-coreapps22:41
dpmIf you ask there, the developers will be happy to answer the question22:41
samertmdpm: alright, thanks!22:42
=== salem_ is now known as _salem
=== balloons is now known as Guest72010

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