##// END OF EJS Templates
Adds axis scoped pointers (to be checked on windows)
Adds axis scoped pointers (to be checked on windows)

File last commit:

r763:4467255a8e44
r788:bfedfc6138fd
Show More
bar_p.h
33 lines | 706 B | text/x-c | CLexer
#ifndef BAR_H
#define BAR_H
#include "qchartglobal.h"
#include <QGraphicsRectItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
// Single visual bar item of chart
class Bar : public QObject, public QGraphicsRectItem
{
Q_OBJECT
public:
Bar(QString category, QGraphicsItem *parent = 0);
public:
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
Q_SIGNALS:
void clicked(QString category);
void rightClicked(QString category);
void hoverEntered(QPoint pos);
void hoverLeaved();
private:
QString m_category;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BAR_H