Thread: mbarcode
View Single Post
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#691
Originally Posted by Wikiwide View Post
Where is the new API described?
It's just that the class has a new hidden member so the plugins need to be recompiled against the updated maemo-dev (i.e. updated header file.)

I'll get round to updating the plugins page to reflect the new callbacks and the Python plugins.

Originally Posted by Wikiwide View Post
Right now new Mbarcode cannot work because of my out-of-date plug-in. Just crashes at first loading of the plug-ins.

Are getImage and getInformativeText mandatory functions?
No they are not mandatory.

Originally Posted by Wikiwide View Post
I will upload here code and compiled library if I manage to compile my plugin with new API.
Cool

Originally Posted by Wikiwide View Post
Note: I don't really understand how can signal be connected to MaemoBarcodeWindow* parent when I haven't taken plugin's parent at all; this->parent = parent; is obsolete. But it doesn't really matter.

Note about QrCode plugin: its image is too small in "Set Plugins" window. And if some-when I will need to use an image, I would be interested in knowing how to adapt it to needed size (small in results, large in settings).
The plugin settings page is a placeholder - it uses the icon property of the row (which generates a very small icon image from the supplied QImage) while the results window uses a custom delegate and renders the QImage at a larger size. The rendering of the plugin + sink name is also not ideal and needs to be changed.

I'll get round to making the plugin settings window use a custom delegate + renderer, but I thought people might like some working, if cosmetically not optimum, code before I headed off for Christmas
 

The Following User Says Thank You to lardman For This Useful Post: