IRC log of #maemo-devel for Thursday, 2010-07-01

*** radegand has joined #maemo-devel00:01
*** edisson has quit IRC00:02
*** BluesLee has quit IRC00:03
*** VDVsx has quit IRC00:05
*** fiferboy has quit IRC00:13
*** rlinfati has quit IRC00:16
*** SpeedEvil has quit IRC00:33
*** kW has quit IRC00:34
*** onen|openBmap has quit IRC00:39
*** SpeedEvil has joined #maemo-devel00:42
*** mindfaq has quit IRC00:49
*** JPohlmann has quit IRC01:05
*** DocScrutinizer51 has quit IRC01:06
*** aboyer has quit IRC01:06
*** T7g has quit IRC01:06
*** kevsim has quit IRC01:06
*** DocScrutinizer51 has joined #maemo-devel01:08
*** aboyer has joined #maemo-devel01:08
*** T7g has joined #maemo-devel01:08
*** kevsim has joined #maemo-devel01:08
*** _0x471 has quit IRC01:18
*** minglis has joined #maemo-devel01:29
*** kW_ has joined #maemo-devel01:43
*** csaavedra has quit IRC02:00
*** kW_ has quit IRC02:06
*** SpeedEvil has quit IRC02:09
*** radegand has quit IRC02:10
*** _Lucretia_ has quit IRC02:21
*** SpeedEvil has joined #maemo-devel02:23
*** SpeedEvil has joined #maemo-devel02:24
*** _Lucretia_ has joined #maemo-devel02:28
*** SpeedEvil has quit IRC02:30
*** SpeedEvil has joined #maemo-devel02:44
*** minglis has quit IRC03:15
*** rcampbell_ has joined #maemo-devel03:15
*** shinkamui has joined #maemo-devel04:28
*** kamui__ has quit IRC04:33
*** azakai has quit IRC05:14
*** lbt has quit IRC05:43
*** lbt has joined #maemo-devel05:43
*** einval has quit IRC06:02
*** einval has joined #maemo-devel06:03
*** rcampbell_ has quit IRC06:22
*** rcampbell_ has joined #maemo-devel06:23
*** dotblank has joined #maemo-devel06:31
dotblankIm having a problem using qt creator debugging apps on the n90006:32
dotblankit seems for the desktop target it is always trying to link libqtdbus07:02
dotblank/home/eli/NokiaQtSDK/QtCreator/lib/qtcreator/libQtDBus.so.4:: error: undefined reference to `QListData::detach(int)'07:02
dotblankmy qt is in path so why would it try to link against one in qt creater07:02
dotblankwait nvm my library path was wrong07:04
dotblankw00t_, you have a moment?07:22
*** DocScrutinizer has quit IRC07:31
*** DocScrutinizer has joined #maemo-devel07:31
*** Acedip has joined #maemo-devel08:12
*** Acedip has quit IRC09:44
*** ppenz has joined #maemo-devel09:45
*** swc|666 has quit IRC09:57
*** mirr0r has quit IRC10:03
*** eitama__ has joined #maemo-devel10:03
*** dazo_afk has quit IRC10:03
*** eitama_ has quit IRC10:03
*** eitama_ has joined #maemo-devel10:04
*** dazo_afk has joined #maemo-devel10:04
*** 5EXAA1T03 has joined #maemo-devel10:04
*** 5EXAA1T03 has quit IRC10:05
*** pillar has quit IRC10:06
*** pillar has joined #maemo-devel10:07
*** eitama__ has quit IRC10:08
*** dazo_afk is now known as dazo10:12
*** Acedip has joined #maemo-devel10:22
*** Acedip has quit IRC10:32
*** kW_ has joined #maemo-devel10:40
*** Acedip has joined #maemo-devel10:44
*** kW_ has quit IRC10:49
*** kW_ has joined #maemo-devel10:50
*** kW_ has quit IRC10:53
*** kW_ has joined #maemo-devel10:53
*** kW_ has quit IRC11:06
*** dazo_ has joined #maemo-devel11:14
*** dazo is now known as Guest2462011:14
*** dazo_ is now known as dazo11:15
*** kW_ has joined #maemo-devel11:20
*** Guest24620 has left #maemo-devel11:22
*** mirr0r has joined #maemo-devel11:26
*** kW_ has quit IRC11:36
*** achipa has joined #maemo-devel12:01
*** csaavedra has joined #maemo-devel12:09
*** Acedip has quit IRC12:10
*** kW_ has joined #maemo-devel12:32
w00t_dotblank: sup13:26
*** Venemo has joined #maemo-devel13:33
*** lizardo has joined #maemo-devel13:40
*** eitama_ has quit IRC13:56
*** eitama_ has joined #maemo-devel13:57
*** Venemo1 has joined #maemo-devel14:23
*** Venemo has quit IRC14:26
*** eitama_ has quit IRC14:36
*** apoi has quit IRC15:14
*** apoi has joined #maemo-devel15:22
*** Venemo has joined #maemo-devel15:36
*** SpeedEvil has quit IRC15:37
*** Venemo1 has quit IRC15:37
*** apoi has quit IRC15:38
*** apoi has joined #maemo-devel15:43
*** Acedip has joined #maemo-devel15:45
*** achipa has quit IRC15:52
*** Venemo has quit IRC16:04
*** achipa has joined #maemo-devel16:13
*** edisson has joined #maemo-devel16:24
*** kamui__ has joined #maemo-devel16:28
*** shinkamui has quit IRC16:33
*** Acedip has quit IRC16:49
*** mirr0r has quit IRC16:53
*** mirr0r has joined #maemo-devel16:54
*** lardman has joined #maemo-devel16:55
lardmanlcuk: you about?16:56
lardmandoes your company do any work on the contacts app?16:56
lcukyeah for a short while whats your boggle16:56
lcuklardman, with respect to which element :p we have abook maintainers amongst other things16:58
lardmanah-ha17:00
lardmanwell I was wondering how to use abook from Qt17:00
lardmanwhether there's a C++ wrapper for the headers, or if it's already wrapped in some Qt class?17:00
lardmanI just want to import a vCard atm17:01
lardmanand the C/GTK+ code doesn't seem too happy (or rather the C++ compiled doesn't like the headers much)17:01
lardmans/compiled/compiler17:01
w00t_lardman: QtMobility has a contacts library17:02
*** Acedip has joined #maemo-devel17:02
w00t_I think it has a specific library to import vcards too17:03
lardmanapparently it doesn't hook into the same one the contacts app uses though?17:03
w00t_it should do.17:03
* w00t_ goes hunting17:03
w00t_yup, it has a maemo5 specific backend which looks like it talks to native abook17:05
w00t_(http://qt.gitorious.org/qt-mobility/contacts/blobs/master/plugins/contacts/maemo5/)17:05
w00t_versit should allow you to do import/export from vcards17:05
w00t_(http://doc.qt.nokia.com/qtmobility-1.0/versit.html)17:05
*** Lullen has quit IRC17:07
lardmangreat, thanks w00t_17:07
lardman:)17:07
*** barisione has joined #maemo-devel17:08
*** albanc has joined #maemo-devel17:08
lcuklol17:08
w00t_collabora invasion \o/17:08
lcuklardman, more assistance :D17:08
lardmanall good, about to move onto GStreamer ;)17:08
lcuk:P17:09
lardmanany gst gurus about...? ;)17:09
lardman3 questions: 1) what does "capture-mode" on the v4l2src device actually change in the driver? (is the source handy?) 2) if I want to export a frame from a barcode decoder element, should I send it in a message or create one of those temp src pads to output it 3) anyone have any clues about the wierd colours in mbarcode's video output just after autofocus?17:10
*** Lullen has joined #maemo-devel17:14
lardmanstuned silence!17:14
w00t_lcuk: doesn't liqbase use v4l2src stuff?17:14
* w00t_ thinks that sounds familiar17:14
lardmanIt's from camerabin, I know you set one value for camera one for video and one for preview, just wondering what happens inside17:14
lcukyes w00t_ however, i originally wrote it after boiling down and discussing with lardman from his original barcode code :P17:14
lardmanlol :)17:15
w00t_oops :)17:15
lcukso in this case i am completely blind - i just like having a nice fast low resolution stream17:15
lardmanbasically after the autofocus the top of the screen has two small images of the screen which are green and purple iirc, I'd like to get rid of this somehow17:15
lcuklardman, pics17:15
lardmanI wonder if I could do a screenie17:16
lcukphoto of screen17:16
lcukyou cant screenshot yuv overlay17:16
lardmanyeah thought not17:16
* lcuk can :p17:16
lardmanI don't have a camera other than the one in the N90017:16
lcukok, is the color in the actual overlay17:16
lardmanI think it's in the stream17:17
lcuk"two small images of the screen"17:17
lardmanyeah confusing17:17
lardmanhang on, let me try to explain better17:17
lcukyou mean quarter sized?17:17
lardman(or try mbarcode ;))17:17
lcukhang on, is this reproducable on your -devel code?17:17
lardmanprobably are - looks like YUV layout17:17
lcukwas just gonna say17:17
lardmanyep17:17
lardmanbut I thought our YUV was interleaved17:18
lcuklemme see whats happening,17:18
lcukit depends, if your gst pipeline is demuxing it for rendering then it will become planar17:18
lcukbut if its using the wrong mode..17:18
lardmanyeah I ask for YUV17:19
lardman'cos I only want the Y data really17:19
lcukyeah17:19
lcuk"mbarcode is already the newest version"17:20
lardmanthe question is then whether the autofocus changes the mode and some of that data is pushed into the pipeline, or the pipeline is just full of old data that gets misinterpreted17:20
lcukhas it been a problem for a while17:20
lardmanor something17:20
lardmanoh yeah17:20
lardmantry scanning somewhere a bit dark so you don't get it to work straight away17:20
lcukive had an issue with my camera recently17:20
lcuklardman, what does your mbarcode icon decode to?17:22
lardmanno idea17:22
lardmanprobably mbarcode or similar :)17:22
lardmanwas a long time ago!17:22
lcukjesus dude that thing is like a strobe when it cant focus on a barcode17:23
lcukit carries on trying17:23
lardmanI know, I need to make the timing adaptive17:24
lardmanthat's on my todo list for this week17:24
lardmantry focusing close to something (not a barcode) and you can see the purple/green mini-screens in the top of the stream17:24
lcuklardman, portrait mode xvideo17:27
lcuki just got a call in the middle of focusing17:27
lcukwhen call ended your app was in portrait17:28
lardmanI think it does rotation, can't really remember17:28
lcukok - the flashes are when its reseting its mode17:28
lcukdo you reinitialise the pipeline during refocusing17:29
lardmanI think it;s moved to paused for the refocus to take placwe17:29
lcukit looks like something is pushing wrong data in - those flashes are when data is overwriting the UV planes17:30
lardmanyep17:30
lardmanso I wonder where the autofocus works, probably below the v4l2src layer17:30
lcukyeah afaik its low level17:31
lardmanthe camera app doesn't suffer from this, so there's a way around it17:31
lcukbut without AF stuff, i have a refocus element in liqbase17:31
lardmanI wonder if I should move to RGB for the whole pipeline for example17:31
lcuktouching the screen changes focus - i dont see any glitches in the stream for those transitions17:31
lardmanrefocus element, does that call the autofocus stuff in gstphotography?]17:32
lcukstruct v4l2_control ctrl = { 0 };17:33
lcukctrl.id = V4L2_CID_FOCUS_ABSOLUTE;17:33
lcukctrl.value = newvalue;17:33
lcukif (doioctl(fd, VIDIOC_S_CTRL, &ctrl, "VIDIOC_S_CTRL"))17:33
lcuk{17:33
lardmanah I see, you bypass it anyway17:35
lcukthats pretty much extracted direct from the v4l2-ctl command line app - or rather is the way it does it17:35
lardmanwell that shouldn't change the stream type, but if the autofocus routines require e.g. a rgb stream, it may leave that in the buffer after it's done17:35
lcukthe autofocus stuff is deep within the low level driver afaik17:36
lcukits not related to gst at all?17:36
lardmanI guess the other question to ask is whether it's possible to purge the pipeline or delay the output for a frame or two?17:36
lardmanlcuk: yeah buried right in there, just wondering if the on-camera/in-kernel/wherever it is  buffer retains info in the wrong mode, or something like that17:37
lcuki guess best person who could point towards knowledge would be ab17:37
lardmanah, I will ping him in #maemo17:37
lardmanAnyone with any thoughts about how to transfer a single from from a gst decoder element (so that I can display the same data that was decoded)?17:39
* lardman moves onto the next point ;)17:39
*** ppenz has quit IRC17:40
lcuklardman, you need a tee dont you to split it out?  but i have to vanish17:41
lardmanno, as the element drops frames while decoding, so I want to be passed the decoded frame without needing to save all frames and compare the timestamp after I get the decoded message17:42
lardmanthanks for your help lcuk, cu later17:42
barisionedoes anybody know which section I should use in a debian/control file for an application that is not supposed to be visible in the application manager?17:47
barisioneit's just a daemon that is a dependency for the real app17:47
*** SpeedEvil has joined #maemo-devel17:50
lardmanbarisione: is it not just anything without "user/" on the front?17:50
barisioneprobably, but I don't know :)17:50
lardmani.e. a normal section name17:50
barisionehm, right17:51
lardmanhttp://wiki.maemo.org/Packaging#Sections17:51
lardmanshould be I think17:51
SpeedEvilIs there a way - in principle - to pass arguments along with shortcuts? Say I want three shortcuts to an app on the desktop that open different files/sites/...17:51
SpeedEvil(not that any particular app would implement)17:51
*** Venemo has joined #maemo-devel17:52
lardmanSpeedEvil: no idea I'm afraid18:00
LullenWhy do I get a undefined reference error on HistoryInfoWindow::HistoryInfoWindow(QWidget*) and HistoryInfoWindow::load(QString) in dayhistory.cpp. Full source of dayhistory.h/cpp and historyinfowindow.h/cpp: http://pastebin.com/nGkKrjvK18:00
LullenBeen looking for two days now :(18:00
VenemoLullen: what is HistoryInfoWindow?18:02
Lullenits a window that shows the set you done18:03
lardmanQString not included  in historyinfowindow.h?18:03
Lullenjust 9 labels18:03
Venemolardman: it includes QtGui which includes QtCore which includes QString18:04
lardmanok18:04
Lullenhere is the error: https://garage.maemo.org/builder/fremantle/qexercise_0.4-5/armel.build.log.FAILED.txt18:04
VenemoLullen: does it only fail with the auto builder, or on your computer, too?18:05
LullenI can not compile on my computer. No idea how to get it working without connecting my phone18:06
VenemoLullen: why don't you connect your phone then?18:06
LullenIt got stolen one week ago :(18:06
LullenOr I can try to compile it as it is failing in the end of the compiling, just to see if it stops at the same place18:08
LullenVenemo, I know the problem :) It was the .pro file that did not have the right info about the historyinfowindow18:13
VenemoLullen: okay18:38
*** kW_ has quit IRC19:04
*** kW_ has joined #maemo-devel19:04
*** azakai has joined #maemo-devel19:07
SpeedEvillardman: thanks19:31
lardmanSpeedEvil: not very helpful though! ;)19:31
*** achipa has quit IRC19:35
*** dazo is now known as dazo_afk19:38
*** lardman is now known as lardman|gone19:59
*** spenap has joined #maemo-devel20:09
*** Venemo has quit IRC20:29
*** dazo_afk is now known as dazo20:41
ruskie*shudders* at the MeeGo handset UX20:48
SpeedEvilYeah.20:49
ruskierip of city20:49
ruskieit's like every other handset out there20:49
ruskieamazing20:49
SpeedEvilOh20:50
SpeedEvilI thought it was revolutionary.20:50
SpeedEvilI mean - I haven';t looked at it yet.20:50
SpeedEvilI have been doing more exciting stuff.20:50
ruskiefor a moment I thought I was looking at either the iPhone or the Android20:50
SpeedEvilWashing tins of foods that the rats have gotten into the cupboard.20:50
ruskiehttp://www.youtube.com/watch?v=EW5wpg5epMs <-- not impressed :(20:51
*** Venemo has joined #maemo-devel20:52
SpeedEvilOh jesus.20:54
SpeedEvilIf you're demoing something, and you accidentally 'click' on a contact when meaning to scroll - shoot it again.20:55
ruskieI guess MeeGo will be desigend for those that want a phone... not a mini computer in their pocket21:01
lcukSpeedEvil, perhaps they did ..21:02
lcukis the aava capacitive?21:02
ruskie*shrug*21:02
SpeedEvilIn some ways, I would prefer a bimodal thing.21:02
SpeedEvilPerhaps with an actual hardware 'computer/phone' switch21:03
ruskieI actually like the m5 apps... like conversations and the phone dialer and abook21:03
lcuk:) ruskie ++21:03
ruskienot the best but not the worst as well21:03
ruskieprobably won't be getting a MeeGo device in the mid-to-far future21:04
lcukSpeedEvil, i *NEED* a method to completely disable phone/communication stuff - jake keeps trying to ring people when he gets n90021:04
ruskiehmm21:05
w00t_lcuk: for me at least there is a way! :)21:05
ruskieisn't there a sim logout command available?21:05
w00t_2G/3G mode switcher.. 3 doesn't work with 2G mode21:05
w00t_:P21:05
SpeedEvillcuk: offline mode?21:05
w00t_SpeedEvil: disables wifi21:05
SpeedEvilhmm21:05
SpeedEvilwould that still allow skype?21:05
lcukSpeedEvil, nope21:05
SpeedEvilHow old is jake?21:05
w00t_given you would be disconnected, no21:05
lcukin offline mode if you try dialing it comes up and asks to go back online21:06
lcukso jake reads "yes" and continues21:06
SpeedEvillcuk: hmm - point21:06
lcuki actually want to disable it under proper secure - vanished until i reenable it21:06
lcukhes 821:06
VenemoSpeedEvil: in offline, skype is not allowed, as you can't connect to anything21:06
SpeedEvilVenemo: I was meaning in some hypothetical mode that allowed wifi21:07
SpeedEvilThere is a modem switcher applet21:07
VenemoSpeedEvil: there is an applet that lets you disable only the cellular functionality only21:07
VenemoIt has a "tablet mode"21:07
lcukVenemo, on which device21:08
lcukmeego?21:08
Venemolcuk: no21:08
SpeedEvilIf the battery voltage is below 3200mV or so, the cellmo shuts down.21:09
SpeedEvilHowever, this isn't actually very useful, as then (with BME stopped) you have around 20 min active left21:09
* lcuk ponders simpler methods21:09
Venemolcuk: it is app in Extras21:09
lcukVenemo, mm21:10
Venemolcuk: it is called "cellular modem control buttons"21:10
Venemoit adds a button to the power menu with which you can go into "tablet mode" -> this allows wi-fi & bluetooth, but disables the phone features21:10
lcukVenemo, testing now21:10
lcukta21:10
SpeedEvilThere is the alternative of course.21:11
SpeedEvil'If you do that again, you're not getting any dinner'.21:11
Venemolcuk: it is a very useful piece of software that lets me browse the web while I don't want anyone to call me on the phone21:11
lcukVenemo, awesome - thats close to whats needed21:12
lcukhowever he can still fill up sms queue for later resending :D21:12
lcukit is better though :) thanks for tip21:13
Venemolcuk: is this what you were looking for?21:13
lcukyes thats half of it - it stops random phone calls when hes playing games or drawing n stuff21:14
Venemolcuk: what would be the other half?21:16
lcukVenemo, well having a couple of random messages to his mum and friends isnt end of the world21:16
lcukit stops the instant concern about him wasting all my credit phoning finland21:16
Venemolcuk: ah, I see - so you gave the N900 to your little child?21:19
lcukyes Venemo :) jake uses it often, but sometimes he gets a bug to call people or text them21:21
Venemolcuk: oh. :)21:24
Venemolcuk: how old is he? :)21:24
lcuk821:24
*** VDVsx has joined #maemo-devel21:24
Venemolcuk: okay - basically, you would need a call blacklisting app, that blocks the calling of every number except some predefined ones?21:26
lcukVenemo, no, i needed to disable it and put it into tablet mode21:27
lcukthats perfect and does - the only thing is if messages get written in tablet node21:27
lcukthen once i get phone back and turn back to phone, they get sent21:28
Venemolcuk: hm, I didn't know about that :)21:29
lcukit says "cellular service not available, messages will be sent when coverage..."21:30
lcukits normal for when you are in mountains21:30
Venemolcuk: ah. I never tried it yet :)21:30
lcuki tested the things he does ;)21:30
Venemolcuk: understandable21:32
lcukim actually really pleased to see tablet mode :)21:32
lcukdid you write the app or just found it?>21:33
Venemolcuk: no, I just found it some moths ago in the repos, and found it extremely useful21:33
Venemolcuk: what happens if you delete the messages before you switch back to "phone mode"?21:33
lcukthey will e deleted - thats not a hassle21:34
lcukits a minor point21:34
Venemolcuk: so if you notice that there are pending messages and delete them, they will not be sent?21:34
lcukVenemo, i will never remember and theres multiple mailboxes for different conversations21:35
lcukits not like theres a single outbox21:35
Venemolcuk: well, that's true21:35
lcukim not fussed anyway :)21:35
Venemolcuk: and what happens if Jake finds the "Phone mode" button? :P21:35
lcukthen hes already a better hacker than me and deserves an n900 of his own21:36
Venemolcuk: haha! :) nice :)21:36
* lcuk puts his software through the jake test often21:37
* Venemo wonders, what sort of software is lcuk working on?21:38
lcuk:) Venemo21:39
Venemo?21:39
lcukVenemo, actual code recently has been less on new things and more on background stuff - http://liqbase.net/20100626_005.mp4 is one thing21:40
Venemoliqbase?21:40
lcukyeah21:40
Venemolcuk, I'm sorry, I'm not familiar with it (yet :) )21:40
lcukthe video shows the 90degree software rotation i just needed for something21:41
lcukused on the image select dialog21:42
Venemolcuk: and what is liqbase?21:42
lcukmy take on how a mobile device should work21:43
lcukhttp://www.youtube.com/watch?v=7hGUKICDeok21:43
Venemooh.21:43
lcukoh no, yt broken21:44
Venemolcuk: reminds me a little bit to Deep Zoom21:44
lcukVenemo, ahh it works at your end21:44
Venemolcuk: I'm just watching the video21:45
lcukthats just the engine i have a bunch of different apps in there and it allows me to test principles etc21:45
Venemolcuk: sounds nice21:45
*** lardman has joined #maemo-devel21:45
Venemolcuk: so far, I've only developed small things21:46
lcukyeah tis :)21:46
Venemolcuk: eg. Sticky Notes :)21:46
lcukVenemo, me too21:46
lardmanhey chaps21:46
Venemohey.21:46
lcukVenemo, my sticky notes: http://www.youtube.com/watch?v=OjDEvXueO0I21:46
lcukheya lardman21:47
lardmanhey lcuk21:47
lcuklardman, did you see the portraity goodness?21:47
lcukhttp://liqbase.net/20100626_005.mp4 software renderingy21:47
lardmannope, what was that?21:47
* lardman downloads21:48
lardmanvery portraitly-pretty :)21:49
Venemolcuk: my sticky notes are actually widgets :)21:50
Venemolcuk: here are they: http://talk.maemo.org/showthread.php?t=5704921:50
Venemolcuk: the first Maemo homescreen widget of which you can have multiple instances :)21:51
lcuksewsome Venemo - did you manage to get text editing direct on the desktop for those?21:52
lcukawesome even21:52
Venemolcuk: yes.21:52
Venemolcuk: although selecting text by dragging is not supported21:52
lcuknovel - nothing has text editing normally, well done21:52
lcuksure21:52
Venemolcuk: Hildon doesn't send any drag events to any widgets. It keeps them for itself (for swiping between the desktop)21:53
Venemolcuk: I would be grateful if you tried it out and told me your opinion21:53
lcukVenemo, im on the application framework team - i know its capabilities and am impressed already to see you having text input there21:53
Venemolcuk: although it has a small issue at the moment, but that should not prevent normal usage :)21:54
lcukand am downloading it now :)21:54
Venemolcuk: it is not my achievement - it is just a simple QPlainTextEdit control there.21:54
Venemolcuk: the achievement is the ability to have as many of those little widgets as you want - and the fact that they get restored at startup right where they were21:56
lardmanhow do I cast a QHash to a QPixmap?21:56
Venemolcuk: btw, does this mean you work on Maemo for Nokia?21:56
lardman<QPixmap*>my_hash_variable ?21:56
Venemolardman: wait a minute21:57
Venemolardman: http://doc.qt.nokia.com/4.6/qhash.html21:57
VenemoQHash<QString, int> hash;21:58
Venemohash["something"] = 8;21:58
Venemo...21:58
VenemomyNumber = hash["something];21:58
*** radiochickenwax has joined #maemo-devel21:58
lardmanI've got a pixmap in a hash, want to cast to back to a pixmap21:58
Venemolardman: sorry, I missed a quotation mark at the last one21:58
lardmanso yeah, the <> brackets look familiar21:58
Venemolardman: you don't need to cast21:58
lcuklardman, can you do that?21:58
lcuki tohught a hash was a drastic one way function21:59
lcukthought21:59
Venemolcuk: this is a hash table dictionary21:59
lardmanlcuk: nah, there's lots of toThis/toThat functions for hashes21:59
lcukso when you created the hash, it stores the whole image within it?22:00
Venemolcuk: it is basically something similar to an associative array22:00
Venemolcuk: it is a generic class, so you can store actually anything in it22:00
lardman../mainwindow.cpp:476: error: conversion from 'const QVariant' to non-scalar type 'QPixmap' requested22:00
lardmanso it wasn't pleased without a cast22:00
Venemolardman: please pastebin your code22:00
Venemolardman: http://qt.pastebin.com22:00
lardmanhang on and you can look at it in SVN22:01
Venemolardman: that is also good22:01
lardmanQPixmap *pm = <QPixmap*>itemData.value("barcodeImage");22:01
lardmanor not22:01
lardmanbasically that's what I want to do, the data I inserted was a QPixmap22:02
Venemolardman, show me your code, please, then I can tell you :)22:02
lcuklardman it all depends on how you stored it into the hash22:02
lardmanlcuk: with insert22:02
lcukbecause you will have serialised the pixmap rhather than raw copy?22:02
lardmanas a QVariant I guess22:02
lcukyeah codey bit22:02
lcuk"this thread is useless without svn" :p22:03
lardmanI know, just don't really want to commit if it stops it compiling22:03
lcuksure - paste the insert line then22:03
Venemolardman: this stuff works for me:22:03
Venemo    QHash<QString, QPixmap*> hash;     hash.insert("mypixmap", new QPixmap(50, 50));     hash["mypixmap"];22:03
*** Acedip has quit IRC22:04
Venemo    QHash<QString, QPixmap*> hash;22:04
Venemo     hash.insert("mypixmap", new QPixmap(50, 50));22:04
Venemo     hash["mypixmap"]; // this actually returns a pixmap* without casting it22:04
lardmanI have QVariantHash as I'm using QSettings here22:04
lardmanI think22:04
Venemoheh22:04
Venemookay.22:04
Venemopastebin!22:04
Venemonow!22:04
lardmanhang on, supper's calling (or rather my wife is) bbiam and I'll work out what's going on then22:05
Venemoit is enough if you pastebin the relevant code22:05
lardmanhang on a tick22:05
Venemofor QVariant, there is a generic method called value<T>()22:05
lardmanhttp://qt.pastebin.com/sp81h1Vy last fn22:06
lardmanbbiab22:06
Venemolardman: in what method do you actually save the pixmap to the hash?22:06
Venemolardman: either way, QVariantHash is just QVariant<QString, QVariant>22:07
Venemolarman: you should use the value<T> method of QVarian22:08
Venemot22:08
Venemolarman: although this stuff has syntax errors, too22:09
Venemolarman: and you insterted a QPixmap in there, and NOT a QPixmap*22:09
Venemolarman: so, correctly, line 476 is:22:10
lcukVenemo, well he did want to store the whole bitmap in there and not just a pointer to it22:10
Venemolarman: QPixmap pm =  itemData["barcodeImage"].value<QPixmap>();22:10
Venemolcuk: yes, I can see that from the code. he actually stores the whole bitmap, but he was (incorrectly) trying to retrieve a pointer to it22:11
lcuk:D22:11
Venemolcuk: he was also missing the value<T>() method call :)22:12
lcukwell that would be why its not working and hes here asking for advice :p22:12
Venemolcuk: yes. if he changes that line, it should work fine now :)22:13
lcuklardman tends to code on wine tho so sometimes you have to excuse the rosey red cheeks and slurred code ;)22:13
lcuk:D excellent22:13
Venemolcuk: on wine? what for? there is Qt Creator for Linux, isn't there?22:14
lcuk:D i meant the drinking kind ;)22:14
lcuktho im sure he will giggle at your suggestion :D22:14
lcuklardman loves his wine as much as i adore bacon22:15
Venemolcuk: oooh, I'm sorry :)22:17
* lcuk passes a glass to you22:17
lcukdont be sorry, just have a tipple yourself :p22:17
* Venemo accepts the glass22:17
SpeedEvillcuk: http://b3ta.com/questions/theman/post75966122:18
* Venemo has already met some people who coded while they were drunk22:18
Venemolcuk: they said their code didn't make any sense to them next time :D22:18
lcukVenemo, sometimes amazing things can happen - but hitting the ballmer peak is difficult22:20
Venemolcuk: ballmer peak?22:20
lcukhttp://xkcd.com/323/22:21
Venemolcuk: aaah... lol :D22:21
Venemolcuk: http://stackoverflow.com/questions/84556/whats-your-favorite-programmer-cartoon22:22
Venemolcuk: this is the best: http://imgs.xkcd.com/comics/exploits_of_a_mom.png22:23
lcuknahh, swordfighting is22:24
Venemolcuk: I meant the best of those stuff22:24
lcukno i havent started looking at your link yet22:25
Venemolcuk: you won't regret it :)22:25
Venemolcuk: do you know why real java programmes wear glasses?22:25
lcukVenemo, ? nope - and you arent wrong :D these are cool22:28
Venemolcuk: because they don't C#22:28
lcuk*groan* if i were op now you would be kickbanned :P22:29
Venemolcuk: well, I'm glad you aren't :P22:29
Venemohttp://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke22:31
lcukhttp://www.phdcomics.com/comics/archive/phd113007s.gif22:31
lcukhaha i pretty much did that when i got rotation working22:31
Venemolcuk: :D :)22:31
lcukVenemo, you bastard22:33
matnelVenemo: I asked people to test a sms gateway, one of the first messages was '; drop table messages;22:42
*** dazo is now known as dazo_afk22:49
lcukmatnel, hopefully that wasnt the last message22:49
matnellcuk: naah, in the test everything was just dumped into .txt22:50
*** _0x471 has joined #maemo-devel22:50
lardmanre22:53
lardmanah, that's the one, good stuff Venemo22:55
lardmanmmm, vino22:57
Venemore22:59
lardmanworking, cool, I knew I'd seen some random combination of <> and () with some variable name in the middle ;)23:00
Venemolcuk: why am I a bastard?23:00
Venemolardman: glad I could help23:00
lardmanthanks23:00
lcukVenemo, i havent left the comic site yet still :|23:01
*** VDVsx has quit IRC23:01
Venemolcuk: SO is not a comic site :P23:01
Venemolcuk: it is basically a programming-related questions and answers site :)23:02
lcukyeah but theres tonnes of comics on the thread23:02
lcuki know23:02
Venemolcuk: I once read through all of it23:02
lcukyeah, im not far off23:03
Venemolcuk: sorry... :)23:05
Venemolcuk: http://imgs.xkcd.com/comics/random_number.png23:19
*** lizardo has quit IRC23:50

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