summaryrefslogtreecommitdiff
path: root/src/charts/ChartView.cpp
blob: 24a08c583f64372316f55216427bd4cf3aa1b28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "ChartView.h"

ChartView::ChartView(QGraphicsScene* scene):
    QGraphicsView(scene)
{
    setRenderHints(QPainter::Antialiasing);
}

void ChartView::resizeEvent(QResizeEvent*)
{
    fitInView(scene()->sceneRect(), Qt::KeepAspectRatio);
}