##// END OF EJS Templates
Commented out some lines in declarative examples as barseries model is for now disabled
Commented out some lines in declarative examples as barseries model is for now disabled

File last commit:

r1145:db0bfcadc777
r1165:242d6e21d71f
Show More
bar.cpp
59 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
fixed barchart signals with pimpl. drilldown works now
r968 Bar::Bar(QBarSet *barset, QString category, QGraphicsItem *parent) : QGraphicsRectItem(parent),
m_category(category),
m_barset(barset)
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 {
sauimone
mouse click test cases for barcharts. Fixed found error
r1145 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 {
Jani Honkonen
warnings are errors
r1011 Q_UNUSED(event)
sauimone
barchart: removed mousebuttons from clicked signal. removed selected signal. unified internal signal naming in barset and barseries private
r1008 emit clicked(m_category);
emit clicked(m_barset, m_category);
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 {
Jani Honkonen
warnings are errors
r978 Q_UNUSED(event)
sauimone
barchart: removed tooltip. hoverEntered and hoverLeaved signals combined to hovered(bool) signal
r975 emit hovered(true);
emit hovered(m_barset, true);
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
barchart: removed tooltip. hoverEntered and hoverLeaved signals combined to hovered(bool) signal
r975 emit hovered(false);
emit hovered(m_barset, false);
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