##// END OF EJS Templates
missing #ifndef's in themes
missing #ifndef's in themes

File last commit:

r794:4c76de65bbac
r795:5d81932a6b14
Show More
bar.cpp
58 lines | 1.6 KiB | text/x-c | CppLexer
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
renamed bar.h to bar_p.h
r118 #include "bar_p.h"
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #include <QDebug>
Michal Klocek
minor.
r59 #include <QPainter>
sauimone
tooltip for barcharts
r283 #include <QGraphicsSceneEvent>
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
Better way to enable features to user. Do less, but expose signals to user and allow user to descide what to do.
r425 Bar::Bar(QString category, QGraphicsItem *parent)
Michal Klocek
Refactors barchart axis hadnling...
r679 : QGraphicsRectItem(parent),
sauimone
minor code review fixes, part n
r763 m_category(category)
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 {
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 setAcceptedMouseButtons(Qt::LeftButton | Qt::RightButton);
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280 setAcceptHoverEvents(true);
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 }
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 void Bar::mousePressEvent(QGraphicsSceneMouseEvent *event)
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 {
sauimone
right click feature for bar series. Enables drilldown
r412 if (event->button() == Qt::LeftButton) {
sauimone
minor code review fixes, part n
r763 emit clicked(m_category);
sauimone
right click feature for bar series. Enables drilldown
r412 } else if (event->button() == Qt::RightButton) {
sauimone
minor code review fixes, part n
r763 emit rightClicked(m_category);
sauimone
right click feature for bar series. Enables drilldown
r412 }
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 }
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 void Bar::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
sauimone
updated barchart examples. minor fixes
r276 {
sauimone
tooltip for barcharts
r283 emit hoverEntered(event->lastScreenPos());
sauimone
updated barchart examples. minor fixes
r276 }
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 void Bar::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
sauimone
updated barchart examples. minor fixes
r276 {
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 Q_UNUSED(event)
sauimone
tooltip for barcharts
r283 emit hoverLeaved();
sauimone
updated barchart examples. minor fixes
r276 }
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 #include "moc_bar_p.cpp"
sauimone
signals and slots for bars and sets
r239
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 QTCOMMERCIALCHART_END_NAMESPACE