This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Question about krunner currency conversion

Tags: None
(comma "," separated)
adrianinsaval
Registered Member
Posts
2
Karma
0
Hello, I'm a total noob regarding KDE development, I tried to find the code for the currency conversion in krunner but I could not find it, I think it should be in the unit conversion runner/plugin but I can't find the source. Can somebody please point me to it? Also, are the conversion factors hard-coded or fetched from the internet? I'd like to add support for my country's currency (PYG)
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Hi!

You can find the converter plugin in kdeplasma-addons which will lead you to KUnitConverter found at KUnitConversion where you find the currency.cpp containing the url you are looking for.
adrianinsaval
Registered Member
Posts
2
Karma
0
Many thanks! I'll look into it. It's not easy to search at all, some links in the krunner repo would have helped.
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
KRunner itself does not "know" which plugins do exist. And as everyone can write a plugin for it, it would be hard to create such links in the KRunner-repo. In this case it depends on the KDE framework which makes it easier to find, but other runners are single plugins with an own repo, third party ressources, etc.

It was not the easiest to find, but not as hard as other things. Try to figure out how exactly your keyboard is handled for example . You can start by the kernel, udev and libinput. Thats stuff to read for over a month I think. Then try to get the GUI implementations too… the abstraction of abstracting the abstraction that abstracted the abstraction of the abstraction abstraction… :D


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]