From f11a98779ef711726da823ef03138c3065030b40 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Sat, 10 Sep 2022 13:38:29 +0200 Subject: [PATCH] JKQTPlotter: NEW: added JKQTPXYGraph::setKeyColumn()/JKQTPXYGraph::getKeyColumn() and JKQTPXYGraph::setValueColumn()/JKQTPXYGraph::getValueColumn() and corresponding functions in other classes. --- doc/dox/whatsnew.dox | 1 + lib/jkqtplotter/graphs/jkqtpbarchart.cpp | 20 +++++++++++ lib/jkqtplotter/graphs/jkqtpbarchart.h | 8 +++++ lib/jkqtplotter/graphs/jkqtpfilledcurve.cpp | 20 +++++++++++ lib/jkqtplotter/graphs/jkqtpfilledcurve.h | 15 ++++++-- lib/jkqtplotter/graphs/jkqtpspecialline.cpp | 20 +++++++++++ lib/jkqtplotter/graphs/jkqtpspecialline.h | 9 +++++ lib/jkqtplotter/jkqtpgraphsbase.cpp | 40 +++++++++++++++++++++ lib/jkqtplotter/jkqtpgraphsbase.h | 16 +++++++++ 9 files changed, 146 insertions(+), 3 deletions(-) diff --git a/doc/dox/whatsnew.dox b/doc/dox/whatsnew.dox index 7aa8901a77..5942431a9d 100644 --- a/doc/dox/whatsnew.dox +++ b/doc/dox/whatsnew.dox @@ -46,6 +46,7 @@ Changes, compared to \ref page_whatsnew_V4_0_0 "v4.0.0" include:
  • NEW: added the option to draw a character from a font as symbol (JKQTPCharacterSymbol+QChar('C').unicode() and JKQTPFilledCharacterSymbol+QChar('C').unicode())
  • NEW: added the option to register a custom symbol using JKQTPRegisterCustomGraphSymbol()
  • NEW: added property drawLineInForeground to JKQTPXYLineGraph and JKQTPXYParametrizedScatterGraph
  • +
  • NEW: added JKQTPXYGraph::setKeyColumn()/JKQTPXYGraph::getKeyColumn() and JKQTPXYGraph::setValueColumn()/JKQTPXYGraph::getValueColumn() and corresponding functions in other classes. In most graph classes they point to xColumn for key and yColumn for values. These functions are virtual and overwritten in derived classes with horizontally oriented graphs, where they point to yColumn for key and yColumn for value. This way you can write generic code with classes for both orientations.
  • JKQTMathText: