##// END OF EJS Templates
Fix missing file from one of the prvious commits...
Fix missing file from one of the prvious commits * adds qchartseries.h

File last commit:

r12:54a770e32f2a
r23:90fa78a224bc
Show More
chartview.cpp
22 lines | 632 B | text/x-c | CppLexer
#include "chartview.h"
ChartView::ChartView(QChartWidget* chartWidget,QWidget* parent):QGraphicsView(parent),
m_chartWidget(chartWidget),
m_scene(new QGraphicsScene(parent))
{
setScene(m_scene);
m_scene->addItem(chartWidget);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
// get rid off ugly default 1 pixel border
setStyleSheet( "QGraphicsView { border-style: none; }" );
}
ChartView::~ChartView() {
// TODO Auto-generated destructor stub
}
void ChartView::resizeEvent(QResizeEvent *event){
m_chartWidget->resize(size());
QGraphicsView::resizeEvent(event);
}