Antialiasing and diagram properties dialog fixes #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On my system (Slackware 14.1) the diagrams look really ugly in 0.018; see in the enclosed pictures the difference between no aliasing in 0.017, the 0.0.18 aliasing and 0.0.19 after fixes, especially around the log graph lines and around the curved parts of graph lines (need to see at 1:1 scale of course). I saw in the code that now antialising is enabled by default; googling around I saw this seems to be a known issue with Qt4 ( http://qt-project.org/forums/viewthread/28093 , http://lists.qt-project.org/pipermail/development/2012-October/007033.html ) . One of the possible fixes seems to keep the drawing coordinates as floating point, instead of rounding them to int as currently done in Qucs, so I modified viewpainter.cpp accordingly. Note that to be consistent QPointF should be used also elsewhere, but for the moment things works nicely anyhow.



IMHO, there should be an option somewhere to disable antialiasing, might add this later.
I have also modified the Edit Diagram dialog to have it look more similar to 0.0.17 and to have the data names sorted as they were before, see enclosed pictures.



Finally I have also slightly modified the main configure.ac to remove duplicate search paths for Qt headers and added the default path used in Slackware 14.1 (otherwise ./configure will fail)