User Details
- User Since
- Aug 1 2016, 4:07 PM (399 w, 3 d)
- Availability
- Available
Jan 25 2017
Jan 23 2017
Jan 19 2017
Jan 11 2017
Jan 10 2017
Seems to be fully working, except for adding the new icons.
Jan 7 2017
Now the pixmap scales correctly.
I thought I fixed the problem with the non-centering painting, but it doesn't look like it. I'll keep reading up on QPainter and the coordinate system.
Icon is much too big. Tried to use QPixmap::Scaled but is seems to have no effect.
Jan 6 2017
Just realized: I still need to change the icon for open vs closed notes.
Is it possible to draw a widget like qlabel inside like this (without setting a parent and allowing the painting to occur automatically), or do I just need to implement my own thing instead of using qlabel?
Added a few things, like a Comment class and changed a few member variables.
JSON parsing is completely done.
Still testing - getting some odd qpainter errors that I'm trying to figure out.
Also still need to make the qlabel member render in the paint function.
Jan 4 2017
Jan 3 2017
Thanks. I had a really wrong idea of what QSize did. Sorry about the trouble.
And ofc the image wouldn't load in the built application because the relative path from the source would no longer be valid (since the image wouldn't be installed directly beside the notes plugin), this one is a bit of a facepalm for me.
Off topic, the reason to use drawPixmap instead of drawImage is simply performance efficiency, right?
Jan 2 2017
It looks like paint() is called from MarbleGraphicsItem::paintEvent(). I'm placing some debug statements in their to try and see what happens.
Strange. I'm not very experienced with QPainter, so I wouldn't be surprised if that was the issue. But if paint() is never called, that's impossible. I would think that the item wasn't created successfully, but it seems it is. I'll keep looking around; I'll check to see where the paint() is actually supposed to be called from - perhaps by looking some more in AbstractDataPlugin and PostalCodePlugin and the item classes.
Jan 1 2017
Remove debugging statement
Fixed inline problems:
id extraction from json,
typo in urlquery generation
Dec 31 2016
Diff was reversed, where modified changes were "removed" instead of "added", etc.
Dec 23 2016
Dec 21 2016
Dec 17 2016
Dec 7 2016
Dec 6 2016
I think that should fix it.
The branch is master, I cloned it yesterday. It looks about 5 commits behind, sorry.
Dec 3 2016
Got it :)