[00:30] is there a way to get the current time on the device? [00:31] in qml or c++ [00:47] ahayzen: around? [00:48] ahoneybun, partially :) whats up? [00:48] is there a way to show or hide with c++? [00:48] if the user selects 1 I want only A to show [00:48] or 2 only B show [00:48] ..in what context? like comboboxes or something? [00:49] OptionSelector [00:50] I should share some info about this: I'm making a Timezone app to show the time in different places in the world [00:50] so they select 1 in a option selector then you want it to show A in? .. another optional selector or a label or? [00:51] I would also look at https://code.launchpad.net/ubuntu-clock-app as that gets the current time etc [00:54] picking USA will show New York, Denvar [00:54] UK - London [00:55] ok you probably like want multiple models... or you could use the SortFilterModel to filter by its parent [00:57] ahoneybun, so first OptionSelector with [USA, UK]...then the second OptionSelector with [{country: USA, city: New York}, {country: UK, city: London}] which then has a filter.property on country which is set to the value of the selected item in the first OptionSelector [00:57] ahoneybun, brb [00:58] ok [01:07] might be better with a search function [01:07] make a ListModel and the SortFilterModel === aaron__ is now known as ahoneybun [02:14] ahoneybun, yeah search could be useful but i like the filtering by country [02:14] ahoneybun, look at the weather-app as well, as that has a city searching thing [02:15] ahayzen: I'm thinking making a sole app might be a bad idea since the Clock app has it [02:16] ahoneybun, yeah :/ unless you could do some edgy graphic showing the light/dark parts of the globe [02:17] that would be cool [02:17] but not sure since I can't even get this to work so far [02:17] ahoneybun, that sortof thing http://www.maclife.com/files/imagecache/futureus_imagegallery_fullsize/gallery/app2blueplanet.jpg [02:18] I was thinking of using different images [02:18] like if you select usa it would turn white and the rest are black or dark [02:19] ahayzen: this is what I have so far http://pastebin.ubuntu.com/11053994/ [02:19] ahoneybun, this was the world clock on my old sony ericsson that showed the timezones on a globe thing that was really cool http://semasterz.com/uploads/posts/2009-04/1241051470_world-clock.jpg [02:20] highlighing the area [02:21] ah that would be cool [02:21] and what you've done with the OptionSelectors looks like it works :) [02:21] I mean I;m pretty such QML has the power [02:21] not to sure it does [02:21] nothing pops down to select a city [02:22] oh you need to set the filter. ....err value or something let me check.. [02:22] I've been checking here: https://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Components.SortFilterModel/ [02:23] filter.property: "country" ? [02:23] filter.pattern: needs to be the value of the selected item in the first one [02:24] oh and you model needs changing hang on let me prototype something [02:24] weird that I don't have ListItems 1.2 [02:24] or 1.1 [02:24] I mean, I just have 1.0 [02:30] ahayzen: your talking like this: http://imgsdown.1mobile.com/group1/M00/37/E3/S340LlOinNGAHCJLAAkmlVA_7nM816.png [02:30] ahoneybun, try this http://pastebin.ubuntu.com/11054179/ [02:31] ahoneybun, yeah hehe :) but that would be hard ;) [02:32] works! [02:32] but I need to understand why it worked [02:33] hehe [02:33] what are delegate? [02:33] that is the component that is used for each item...it had to be defined on the second as we need to tell it to only show the city not the country [02:36] delegate: OptionSelectorDelegate { text: city; } so that is says just show city's [02:36] *saying to [02:38] yup...like i could have done text: country ..but then each one would have just shown the same country :) [02:38] now how would one get the current time in their timezone? [02:39] so that component is used to generate each option for each of hte LstItems [02:39] erm look at how clock does it? [02:39] kinda looks like it grabs it from a local setting [02:39] u1db or something [02:40] when nik is about he is probably best to ask :) anyway i'm gonna go to sleep, ahoneybun have fun o/ [02:40] night thanks as always [02:41] no problem :) [05:45] Hi, I'm tring to make a native music player for ubuntu phone, but it seems that nether gstreamer nor qmultimedia works on it. I can't play any music file on ~/Music folder. Should I import music file to my app data storage by content hub api? [05:48] hello, I'm here? [06:59] Hi, anyone here? === chihchun_afk is now known as chihchun [08:22] is there a way to get components 1.2 on utopic? [11:01] Is there any possibility to use the Ubuntu QML components in an app that I also want to be able to run on Windows using cmake or qmake? === Celtor is now known as vitimiti === Celtor is now known as vitimiti === aaron__ is now known as ahoneybun === Celtor is now known as vitimiti === Celtor is now known as vitimiti [16:35] nik90: around> [16:36] ahoneybun: hey [16:36] how does the clock app get the current time? [16:36] using new Date() javascript call and in some places using qt c++ apis [16:37] oh [16:37] why? [16:37] I'm making a Timezone app and I need the current time in my zone [16:38] we had a issue in the past where using new Date() was problematic with timezone changes..so we needed to use the qt c++ api.. [16:38] ahoneybun: ah..for that you definitely need to use our c++ plugin TimeZone [16:38] Is there any possibility to use the Ubuntu QML components in an app that I also want to be able to run on Windows using cmake or qmake? [16:38] that we're using for the world clocks feature [16:38] * ahoneybun looks at source [16:39] vitimiti: That depends on if the Ubuntu SDK is buildable on Windows [16:39] I see [16:39] I'll have to try that, thank you [16:39] ahoneybun: https://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/files/head:/backend/modules/Timezone/ [16:40] this might be a bit over my head [16:40] ahoneybun: you definitely won't need the whole thing..since that plugin appends it into a list model and stuff [16:40] ahoneybun: all you need is QTimeZone..check out the official qt docs [16:40] vitimiti: Even if there is no direct plan to port the UI Toolkit to Windows I know that it is not impossible. I have seen it on OSX already :) [16:40] yea I see [16:40] bzoltan, nice, I must try this as soon as I'm back home [16:41] bzoltan: on OSX? Pretty cool [16:41] nik90: http://doc.qt.io/qt-5/qtimezone.html? [16:41] nik90: we do not really have difficult dependencies anymore [16:41] ahoneybun: yes [16:42] ok cool [16:42] bzoltan: true..that's very encouraging and vital to get unity8 and its app running on other distros [16:43] nik90: #include this goes at the top right? [16:43] * bzoltan check out the unity8 deps [16:43] That would basically allow me to only use the Ubuntu components for all of my apps, which would be great [16:43] ahoneybun: yes [16:46] gives me errors about it [16:47] g2g anyway [16:51] popey, http://i.imgur.com/qgBcHS4.png [16:52] it's quite ugly though... problem is that most notes don't have a picture === Celtor is now known as vitimiti === vitimiti is now known as Celtor === Celtor is now known as vitimiti === Celtor is now known as vitimiti [19:00] mzanetti: ooh! [19:45] Hi folks.. [19:46] Where is the Ubuntu SDK Bug Tracker, I can only seem to find Ubuntu SDK Tutorials on launchpad [19:47] sick_rimmit: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit [19:47] sick_rimmit: official project is at https://launchpad.net/ubuntu-ui-toolkit [19:47] nik90: Brilliant, thank you [19:48] yw === aaron is now known as ahoneybun === Celtor is now known as vitimiti === aaron is now known as ahoneybun === Celtor is now known as vitimiti