mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
stats: break out common QtQuick part of the code
Move most of the QtQuick code to its own directory, so that it can be reused in the future for the chart. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
533cff96f3
commit
2eebae13dd
34 changed files with 1031 additions and 915 deletions
|
@ -1,6 +1,5 @@
|
|||
#include "informationbox.h"
|
||||
#include "statscolors.h"
|
||||
#include "statsview.h"
|
||||
#include "zvalues.h"
|
||||
|
||||
#include <QFontMetrics>
|
||||
|
@ -9,11 +8,11 @@ static const int informationBorder = 2;
|
|||
static const double informationBorderRadius = 4.0; // Radius of rounded corners
|
||||
static const int distanceFromPointer = 10; // Distance to place box from mouse pointer or scatter item
|
||||
|
||||
InformationBox::InformationBox(StatsView &v) :
|
||||
InformationBox::InformationBox(ChartView &v, const StatsTheme &theme) :
|
||||
ChartRectItem(v, ChartZValue::InformationBox,
|
||||
QPen(v.getCurrentTheme().informationBorderColor, informationBorder),
|
||||
QBrush(v.getCurrentTheme().informationColor), informationBorderRadius),
|
||||
theme(v.getCurrentTheme()),
|
||||
QPen(theme.informationBorderColor, informationBorder),
|
||||
QBrush(theme.informationColor), informationBorderRadius),
|
||||
theme(theme),
|
||||
width(0.0),
|
||||
height(0.0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue