##// END OF EJS Templates
minor. Removes debug log
minor. Removes debug log

File last commit:

r600:db004721a4d5
r625:d16a64d75da0
Show More
qchartview.h
83 lines | 2.3 KiB | text/x-c | CLexer
Michal Klocek
Adds rubberband for zooming...
r58 #ifndef QCHARTWIDGET_H
#define QCHARTWIDGET_H
#include "qchartglobal.h"
Michal Klocek
Include qchartaxis header with qchartview header by default
r553 #include "qchartaxis.h"
Michal Klocek
Rename QChartSeries to QSeries
r360 #include "qseries.h"
Michal Klocek
Add gradient bacground support...
r86 #include "qchart.h"
Michal Klocek
Adds rubberband for zooming...
r58 #include <QGraphicsView>
class QGraphicsScene;
Michal Klocek
Removes QChartWidget...
r136 class QRubberBand;
Michal Klocek
Adds rubberband for zooming...
r58
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QChart;
class QTCOMMERCIALCHART_EXPORT QChartView : public QGraphicsView
{
Tero Ahola
New theme with light colors, chartview background
r584 Q_OBJECT
Michal Klocek
Adds rubberband for zooming...
r58 public:
Michal Klocek
Removes QChartWidget...
r136 enum RubberBandPolicy { NoRubberBand, VerticalRubberBand, HorizonalRubberBand, RectangleRubberBand };
Michal Klocek
Adds rubberband for zooming...
r58 explicit QChartView(QWidget *parent = 0);
~QChartView();
//implement from QWidget
void resizeEvent(QResizeEvent *event);
Tero Ahola
Chart title font color
r495
Michal Klocek
Rename QChartSeries to QSeries
r360 void addSeries(QSeries* series,QChartAxis* axisY=0);// takes series ownership , takes axis ownership
void removeSeries(QSeries* series); //returns ownership , deletes axis if no series attached
Michal Klocek
Adds RemoveAllSeries method to API
r258 void removeAllSeries(); // deletes series and axis
Michal Klocek
Add zoom support...
r67 int margin() const;
Michal Klocek
Removes QChartWidget...
r136
Michal Klocek
Adds font handling for chart's titile...
r192 void setChartTitle(const QString& title);
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 QString chartTitle() const;
Michal Klocek
Adds font handling for chart's titile...
r192 void setChartTitleFont(const QFont& font);
Tero Ahola
Chart title font color
r495 void setChartTitleBrush(const QBrush &brush);
QBrush chartTitleBrush();
Michal Klocek
Change background gradient to use ObjectBoundingMode...
r122 void setChartBackgroundBrush(const QBrush& brush);
void setChartBackgroundPen(const QPen& pen);
Michal Klocek
Add zoom support...
r67 void zoomIn();
Michal Klocek
Refactors axis handling...
r223 void zoomIn(const QRect& rect);
Michal Klocek
Add zoom support...
r67 void zoomOut();
Michal Klocek
Refcator scrol() to scrollLeft,Right,Up,Down
r600 void scrollLeft();
void scrollRight();
void scrollUp();
void scrollDown();
Michal Klocek
Adds scroll support...
r531
Michal Klocek
Removes QChartWidget...
r136 void setRubberBandPolicy(const RubberBandPolicy );
RubberBandPolicy rubberBandPolicy() const;
Michal Klocek
Adds missing ids to theme classes
r153 void setChartTheme(QChart::ChartTheme theme);
QChart::ChartTheme chartTheme() const;
Michal Klocek
Removes QChartWidget...
r136
Michal Klocek
Adds animation settings handling
r298 void setAnimationOptions(QChart::AnimationOptions options);
QChart::AnimationOptions animationOptions() const;
Michal Klocek
Refactors axis handling...
r223 QChartAxis* axisX() const;
QChartAxis* axisY() const;
Michal Klocek
Add public function for axis hadnling to qchart
r155
sauimone
First version of legend. Simple markers and serie names. Using drilldown as example for now.
r529 QLegend* legend() const;
Michal Klocek
Removes QChartWidget...
r136 protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void keyPressEvent(QKeyEvent *event);
Michal Klocek
Adds rubberband for zooming...
r58 private:
QGraphicsScene *m_scene;
QChart* m_chart;
Michal Klocek
Removes QChartWidget...
r136 QPoint m_rubberBandOrigin;
QRubberBand* m_rubberBand;
bool m_verticalRubberBand;
bool m_horizonalRubberBand;
Michal Klocek
Adds rubberband for zooming...
r58 Q_DISABLE_COPY(QChartView)
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QCHARTWIDGET_H