mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
statistics: replace QtCharts' axes
Replace by custom implementation, with the ultimate goal to remove the QtCharts module. This doesn't yet display axis titles or a grid. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
598058e21e
commit
4ab9f1c6b0
15 changed files with 377 additions and 225 deletions
|
|
@ -87,8 +87,7 @@ private:
|
|||
bool isOutside; // Is shown outside of bar
|
||||
BarLabel(QtCharts::QChart *chart, const std::vector<QString> &labels, int bin_nr, int binCount);
|
||||
void setVisible(bool visible);
|
||||
void updatePosition(QtCharts::QChart *chart, QtCharts::QAbstractSeries *series,
|
||||
bool horizontal, bool center, const QRectF &rect, int bin_nr, int binCount);
|
||||
void updatePosition(bool horizontal, bool center, const QRectF &rect, int bin_nr, int binCount);
|
||||
void highlight(bool highlight, int bin_nr, int binCount);
|
||||
};
|
||||
|
||||
|
|
@ -98,7 +97,7 @@ private:
|
|||
double value_from;
|
||||
double value_to;
|
||||
int bin_nr;
|
||||
void updatePosition(QtCharts::QChart *chart, BarSeries *series, bool horizontal, bool stacked,
|
||||
void updatePosition(BarSeries *series, bool horizontal, bool stacked,
|
||||
double from, double to, int binCount);
|
||||
void highlight(bool highlight, int binCount);
|
||||
};
|
||||
|
|
@ -114,7 +113,7 @@ private:
|
|||
std::vector<SubItem> subitems,
|
||||
const QString &binName, const StatsOperationResults &res, int total, bool horizontal,
|
||||
bool stacked, int binCount);
|
||||
void updatePosition(QtCharts::QChart *chart, BarSeries *series, bool horizontal, bool stacked, int binCount);
|
||||
void updatePosition(BarSeries *series, bool horizontal, bool stacked, int binCount);
|
||||
void highlight(int subitem, bool highlight, int binCount);
|
||||
int getSubItemUnderMouse(const QPointF &f, bool horizontal, bool stacked) const;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue