]> Git trees. - libqmvoc.git/commit
Cleanup KPlotWidget
authorJason Harris <kstars@30doradus.org>
Wed, 6 Sep 2006 14:17:11 +0000 (14:17 +0000)
committerJason Harris <kstars@30doradus.org>
Wed, 6 Sep 2006 14:17:11 +0000 (14:17 +0000)
commitc9dc6eebd4fb2cdd9db5eef1327f5c313035acd0
tree727dab6b31c418377b4faa2cd8b6c2b2f9752e91
parent8dcee04ad2fc54ca0a4795141cf2bf868c5a8ca3
Cleanup KPlotWidget

KPlotWidget:

- added setAntialias(bool), set to true for smoother (but slower)
plots

- removed explicit double-buffering (Qt4 does this automatically)

- added top and right axes (by default, they show the same tickmarks
as bottom and left)

- added optional secondary data limits for showing alternate
set of tickmarks on top and right axes.

- removed setShowTickMarks() / setShowTickLabels()...each axis now
handles its own visibility logic.

KPlotAxis:

- each axis now calculates its own tickmark positions (rather
than KPlotWidget)

- rather than setting the number of tickmarks and distance between
them, the tickmark positions are now stored in a QList<double>

- simplified visibility logic:
  + isVisible() : draw axis and tickmarks ?
  + showTickLabels() : obvious
  + the axis label is drawn if it is not empty

- added new ticklabel format 't', which indicates that the ticklabel
values are decimal hours, and should be rendered with a clock-time
format ("hh:mm").  Other special format flags are possible.

I didn't have to modify kalzium or ktouch, so the API hasn't
changed too much.  Most of the changes are "under the hood".

I also didn't look at kmathtool, since they have their own copy
of KPlotWidget in the playground.  I'll let them decide if and when
to use this version.

CCMAIL: kde-edu@kde.org

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=581495
kdeeduplot/kplotaxis.cpp
kdeeduplot/kplotaxis.h
kdeeduplot/kplotwidget.cpp
kdeeduplot/kplotwidget.h