##// END OF EJS Templates
Copyright header changes...
Copyright header changes Copyright header changes for Qt 5.5. Change-Id: I2b8e9356997de2c87a7436bcefd4d0948d566259 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2776:bc1f6aa59d42
r2776:bc1f6aa59d42
Show More
qlegend.h
110 lines | 3.3 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
Titta Heikkala
Copyright header changes...
r2776 ** Copyright (C) 2015 The Qt Company Ltd
Jani Honkonen
Add license headers
r794 ** All rights reserved.
Titta Heikkala
Copyright header changes...
r2776 ** For any questions to The Qt Company, please use contact form at http://qt.io
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2740 ** Licensees holding valid commercial license for Qt may use this file in
** accordance with the Qt License Agreement provided with the Software
** or, alternatively, in accordance with the terms contained in a written
Titta Heikkala
Copyright header changes...
r2776 ** agreement between you and The Qt Company.
Jani Honkonen
Add license headers
r794 **
** If you have questions regarding the use of this file, please use
Titta Heikkala
Updated license headers...
r2740 ** contact form at http://qt.io
Jani Honkonen
Add license headers
r794 **
****************************************************************************/
sauimone
framework for legend
r524 #ifndef QLEGEND_H
#define QLEGEND_H
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QChartGlobal>
#include <QtWidgets/QGraphicsWidget>
#include <QtGui/QPen>
#include <QtGui/QBrush>
sauimone
framework for legend
r524
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
sauimone
framework for legend
r524
Michal Klocek
Fix attempt to wrong graphics items hadnling
r790 class QChart;
Michal Klocek
Adds qlegend pimpl...
r950 class QLegendPrivate;
sauimone
first prototry of QLegendMarker API
r2160 class QLegendMarker;
sauimone
refactoring
r2167 class QAbstractSeries;
sauimone
framework for legend
r524
Titta Heikkala
Qt Charts project file structure change...
r2712 class QT_CHARTS_EXPORT QLegend : public QGraphicsWidget
sauimone
framework for legend
r524 {
Q_OBJECT
Tero Ahola
color and borderColor properties to XY charts; removed unnecessary signals
r1481 Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment)
Tero Ahola
Adding legend properties
r1452 Q_PROPERTY(bool backgroundVisible READ isBackgroundVisible WRITE setBackgroundVisible NOTIFY backgroundVisibleChanged)
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor NOTIFY borderColorChanged)
sauimone
legend font fix
r1522 Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged)
sauimone
legend theme fix
r1527 Q_PROPERTY(QColor labelColor READ labelColor WRITE setLabelColor NOTIFY labelColorChanged)
Titta Heikkala
Add possibility to set markers in legend in reverse order...
r2676 Q_PROPERTY(bool reverseMarkers READ reverseMarkers WRITE setReverseMarkers NOTIFY reverseMarkersChanged)
sauimone
legend pos to theme example, legend padding
r803
Michal Klocek
Fix attempt to wrong graphics items hadnling
r790 private:
explicit QLegend(QChart *chart);
sauimone
legend layouting change
r616
Michal Klocek
Fix attempt to wrong graphics items hadnling
r790 public:
Michal Klocek
Adds qlegend pimpl...
r950 ~QLegend();
sauimone
framework for legend
r524 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 void setBrush(const QBrush &brush);
Michal Klocek
Adds force option to chartTheme...
r645 QBrush brush() const;
Tero Ahola
Adding legend properties
r1452 void setColor(QColor color);
QColor color();
Michal Klocek
Adds force option to chartTheme...
r645
Tero Ahola
Code review: Fixed simple issues in Bar and Legend
r737 void setPen(const QPen &pen);
Michal Klocek
Adds force option to chartTheme...
r645 QPen pen() const;
Tero Ahola
Adding legend properties
r1452 void setBorderColor(QColor color);
QColor borderColor();
sauimone
background to legend, theme applies
r540
sauimone
legend font fix
r1522 void setFont(const QFont &font);
QFont font() const;
sauimone
legend theme fix
r1527 void setLabelBrush(const QBrush &brush);
QBrush labelBrush() const;
void setLabelColor(QColor color);
QColor labelColor() const;
sauimone
legend font fix
r1522
Tero Ahola
Qml ChartView properties; legend to use Qt alignments
r1357 void setAlignment(Qt::Alignment alignment);
Qt::Alignment alignment() const;
sauimone
legend layouting change
r616
sauimone
legend layout with padding
r799 void detachFromChart();
void attachToChart();
Michal Klocek
Refactor qledgend handling...
r855 bool isAttachedToChart();
sauimone
changed legend default visibility
r882 void setBackgroundVisible(bool visible = true);
Michal Klocek
Refactor qledgend handling...
r855 bool isBackgroundVisible() const;
sauimone
optional series parameter to markers function. code style fixes
r2193 QList <QLegendMarker*> markers(QAbstractSeries *series = 0) const;
sauimone
first prototry of QLegendMarker API
r2160
Titta Heikkala
Add possibility to set markers in legend in reverse order...
r2676 bool reverseMarkers();
void setReverseMarkers(bool reverseMarkers = true);
Michal Klocek
Refactor qledgend handling...
r855 protected:
void hideEvent(QHideEvent *event);
void showEvent(QShowEvent *event);
sauimone
Separated legend marker to private header. Added signals for left and right mouse click
r547
Tero Ahola
Qml ChartView properties; legend to use Qt alignments
r1357 Q_SIGNALS:
Tero Ahola
Adding legend properties
r1452 void backgroundVisibleChanged(bool visible);
void colorChanged(QColor color);
void borderColorChanged(QColor color);
sauimone
legend font fix
r1522 void fontChanged(QFont font);
sauimone
legend theme fix
r1527 void labelColorChanged(QColor color);
Titta Heikkala
Add possibility to set markers in legend in reverse order...
r2676 void reverseMarkersChanged(bool reverseMarkers);
Tero Ahola
Qml ChartView properties; legend to use Qt alignments
r1357
Michal Klocek
Refactor qledgend handling...
r855 private:
Michal Klocek
Adds qlegend pimpl...
r950 QScopedPointer<QLegendPrivate> d_ptr;
Tero Ahola
Adding legend properties
r1452 Q_DISABLE_COPY(QLegend)
Michal Klocek
Adds qlegend pimpl...
r950 friend class LegendScroller;
Michal Klocek
Refactors layout managment...
r1534 friend class LegendLayout;
friend class ChartLayout;
sauimone
Legend can now handle clicked and do scrolling
r2183 friend class LegendMarkerItem;
sauimone
fix to QTRD-1674: layout is not calculated correctly after the change in the text of legend marker
r2194 friend class QLegendMarkerPrivate;
Michal Klocek
Adds ScrolledQLegend...
r859 };
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
sauimone
framework for legend
r524
#endif // QLEGEND_H