[Ktechlab-devel] Drawing voltage and current in GUI

Zoltan Padrah zoltan.padrah at gmail.com
Thu Oct 17 09:07:30 UTC 2013


 Hi,

I've implemented a new GUI item, VoltageAndCurrentItem, for showing the
voltage and current values in circuits. I've pushed the code to the
'draw-voltage-and-current' branch on github. There is the comparison to the
master branch:

https://github.com/ktechlab/ktechlab/compare/master...draw-voltage-and-current

The new item has two known problems:

- it should draw itself as a rectangle, but for some reason it appears as a
rounded-edge rectangle; for small rectangles it looks more like a circle.

- when the mouse is moved over the voltage and current displaying item of a
component, and the current and voltage is shown as a popup text, the
component moves a little to the left. I can't explain why is this happening.

Obligatory screenshot is here:

https://github.com/ktechlab/ktechlab/wiki/Screenshots#development-version-20131017-added-voltage-and-current-bars

If you have suggestions / code, for how to fix the current and voltage
display item, please notify me. In any case, soon I will start a pull
request for the code, for merging in master.

Best regards,

 Zoli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/ktechlab-devel/attachments/20131017/168a67a6/attachment.html>


More information about the Ktechlab-devel mailing list