KChart
KChartBarDiagram.cpp
212 d->attributesModel->setModelData( QVariant::fromValue( threeDAttrs ), ThreeDBarAttributesRole );
225 void BarDiagram::setThreeDBarAttributes( const QModelIndex& index, const ThreeDBarAttributes& threeDAttrs )
238 return d->attributesModel->data( KChart::ThreeDBarAttributesRole ).value<ThreeDBarAttributes>();
273 d->compressor.setResolution( static_cast<int>( this->size().width() * coordinatePlane()->zoomFactorX() ),
326 d->compressor.setResolution( static_cast< int >( size.width() * coordinatePlane()->zoomFactorX() ),
qreal threeDItemDepth(const QModelIndex &index) const override
Definition: KChartBarDiagram.cpp:256
Qt::Orientation orientation() const
Definition: KChartBarDiagram.cpp:163
bool isValid() const const
QVariant fromValue(const T &value)
Q_EMITQ_EMIT
QAbstractItemModel * model() const const
T value() const const
Class only listed here to document inheritance of some KChart classes.
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::DisplayRole) override
\reimpl
Definition: KChartAttributesModel.cpp:382
virtual AttributesModel * attributesModel() const
Returns the AttributesModel, that is used by this diagram.
Definition: KChartAbstractDiagram.cpp:187
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition: KChartAbstractCoordinatePlane.h:30
bool compare(const BarDiagram *other) const
Returns true if both diagrams have the same settings.
Definition: KChartBarDiagram.cpp:135
void propertiesChanged()
Emitted upon change of a property of the Diagram.
const QPair< QPointF, QPointF > dataBoundaries() const
Return the bottom left and top right data point, that the diagram will display (unless the grid adjus...
Definition: KChartAbstractDiagram.cpp:101
ThreeDBarAttributes threeDBarAttributes() const
Definition: KChartBarDiagram.cpp:236
void setType(const BarType type)
Sets the bar diagram's type to type.
Definition: KChartBarDiagram.cpp:148
Cartesian coordinate plane.
Definition: KChartCartesianCoordinatePlane.h:25
BarAttributes barAttributes() const
Definition: KChartBarDiagram.cpp:189
AbstractCoordinatePlane * coordinatePlane() const
The coordinate plane associated with the diagram.
Definition: KChartAbstractDiagram.cpp:96
void setOrientation(Qt::Orientation orientation)
Sets the orientation of the bar diagram.
Definition: KChartBarDiagram.cpp:158
Vertical
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:296
void setBarAttributes(const BarAttributes &a)
Sets the global bar attributes to ba.
Definition: KChartBarDiagram.cpp:168
QModelIndex attributesModelRootIndex() const
Definition: KChartAbstractDiagram.cpp:212
QModelIndex rootIndex() const const
void resize(const QSizeF &area) override
Called by the widget's sizeEvent.
Definition: KChartBarDiagram.cpp:324
virtual BarDiagram * clone() const
Creates an exact copy of this diagram.
Definition: KChartBarDiagram.cpp:127
height
static bool isBoundariesValid(const QRectF &r)
Checks whether both coordinates of r are valid according to isValueValid.
Definition: KChartAbstractGrid.cpp:58
void init(KXmlGuiWindow *window, KGameDifficulty *difficulty=nullptr)
void setPercentMode(bool percent)
Deprecated method that turns the percent mode of this diagram on or off.
Definition: KChartAbstractDiagram.cpp:369
virtual void resize(const QSizeF &area)
Called by the widget's sizeEvent.
Definition: KChartAbstractDiagram.cpp:116
const QPair< QPointF, QPointF > calculateDataBoundaries() const override
\reimpl
Definition: KChartBarDiagram.cpp:271
void setThreeDBarAttributes(const ThreeDBarAttributes &a)
Sets the global 3D bar attributes to threeDAttrs.
Definition: KChartBarDiagram.cpp:209
width
Set of attributes for changing the appearance of bar charts.
Definition: KChartBarAttributes.h:20
QWidget * viewport() const const
size
void layoutChanged(KChart::AbstractDiagram *)
Diagrams are supposed to emit this signal, when the layout of one of their element changes.
Base class for diagrams based on a cartesian coordianate system.
Definition: KChartAbstractCartesianDiagram.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 4 2023 03:54:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 4 2023 03:54:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.