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