##// END OF EJS Templates
percent barchart layout fix. signal fix
percent barchart layout fix. signal fix

File last commit:

r812:2e82e33f659e
r850:ce48b0dbab03
Show More
bar_p.h
52 lines | 1.4 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #ifndef BAR_H
#define BAR_H
#include "qchartglobal.h"
Michal Klocek
Refactors barchart axis hadnling...
r679 #include <QGraphicsRectItem>
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280 // Single visual bar item of chart
Michal Klocek
Refactors barchart axis hadnling...
r679 class Bar : public QObject, public QGraphicsRectItem
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 {
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 Q_OBJECT
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 public:
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 Bar(QString category, QGraphicsItem *parent = 0);
sauimone
BarGroup and Bar as ChartItems instead of GraphicItems
r74
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 public:
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 void mousePressEvent(QGraphicsSceneMouseEvent *event);
sauimone
updated barchart examples. minor fixes
r276 void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256
Q_SIGNALS:
sauimone
combined clicked and rightclicked signals in barchart
r812 void clicked(QString category, Qt::MouseButtons button);
sauimone
tooltip for barcharts
r283 void hoverEntered(QPoint pos);
void hoverLeaved();
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
private:
sauimone
minor code review fixes, part n
r763 QString m_category;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BAR_H