KChart
KChartBarDiagram.cpp
223 d->attributesModel->setModelData( QVariant::fromValue( threeDAttrs ), ThreeDBarAttributesRole );
236 void BarDiagram::setThreeDBarAttributes( const QModelIndex& index, const ThreeDBarAttributes& threeDAttrs )
249 return d->attributesModel->data( KChart::ThreeDBarAttributesRole ).value<ThreeDBarAttributes>();
284 d->compressor.setResolution( static_cast<int>( this->size().width() * coordinatePlane()->zoomFactorX() ),
337 d->compressor.setResolution( static_cast< int >( size.width() * coordinatePlane()->zoomFactorX() ),
Qt::Orientation orientation() const
Definition: KChartBarDiagram.cpp:174
void setPercentMode(bool percent)
Deprecated method that turns the percent mode of this diagram on or off.
Definition: KChartAbstractDiagram.cpp:381
Class only listed here to document inheritance of some KChart classes.
static bool isBoundariesValid(const QRectF &r)
Checks whether both coordinates of r are valid according to isValueValid.
Definition: KChartAbstractGrid.cpp:69
T value() const const
ThreeDBarAttributes threeDBarAttributes() const
Definition: KChartBarDiagram.cpp:247
void propertiesChanged()
Emitted upon change of a property of the Diagram.
Set of attributes for changing the appearance of bar charts.
Definition: KChartBarAttributes.h:31
void paint(PaintContext *paintContext) override
Draw the diagram contents to the rectangle and painter, that are passed in as part of the paint conte...
Definition: KChartBarDiagram.cpp:307
Base class for diagrams based on a cartesian coordianate system.
Definition: KChartAbstractCartesianDiagram.h:38
BarAttributes barAttributes() const
Definition: KChartBarDiagram.cpp:200
void setBarAttributes(const BarAttributes &a)
Sets the global bar attributes to ba.
Definition: KChartBarDiagram.cpp:179
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane, TernaryCoordinatePlane.
Definition: KChartAbstractCoordinatePlane.h:41
void layoutChanged(AbstractDiagram *)
Diagrams are supposed to emit this signal, when the layout of one of their element changes...
int numberOfOrdinateSegments() const override
Definition: KChartBarDiagram.cpp:354
int numberOfAbscissaSegments() const override
Definition: KChartBarDiagram.cpp:346
void setType(const BarType type)
Sets the bar diagram's type to type.
Definition: KChartBarDiagram.cpp:159
Definition: KChartWidget.h:32
void resize(const QSizeF &area) override
Called by the widget's sizeEvent.
Definition: KChartBarDiagram.cpp:335
QVariant fromValue(const T &value)
QCA_EXPORT void init()
void setThreeDBarAttributes(const ThreeDBarAttributes &a)
Sets the global 3D bar attributes to threeDAttrs.
Definition: KChartBarDiagram.cpp:220
virtual void resize(const QSizeF &area)
Called by the widget's sizeEvent.
Definition: KChartAbstractDiagram.cpp:128
virtual BarDiagram * clone() const
Creates an exact copy of this diagram.
Definition: KChartBarDiagram.cpp:138
const QPair< QPointF, QPointF > calculateDataBoundaries() const override
Definition: KChartBarDiagram.cpp:282
qreal threeDItemDepth(const QModelIndex &index) const override
Definition: KChartBarDiagram.cpp:267
Cartesian coordinate plane.
Definition: KChartCartesianCoordinatePlane.h:36
void setOrientation(Qt::Orientation orientation)
Sets the orientation of the bar diagram.
Definition: KChartBarDiagram.cpp:169
Vertical
bool compare(const BarDiagram *other) const
Returns true if both diagrams have the same settings.
Definition: KChartBarDiagram.cpp:146
qreal height() const const
qreal width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 22:39:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 22:39:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.