KQuickImageEditor
11#include <QQuickPaintedItem>
17 Q_PROPERTY(
QImage image READ image WRITE setImage NOTIFY imageChanged RESET resetImage)
18 Q_PROPERTY(
int nativeWidth READ nativeWidth NOTIFY nativeWidthChanged)
19 Q_PROPERTY(
int nativeHeight READ nativeHeight NOTIFY nativeHeightChanged)
20 Q_PROPERTY(
int paintedWidth READ paintedWidth NOTIFY paintedWidthChanged)
21 Q_PROPERTY(
int paintedHeight READ paintedHeight NOTIFY paintedHeightChanged)
22 Q_PROPERTY(
int verticalPadding READ verticalPadding NOTIFY verticalPaddingChanged)
23 Q_PROPERTY(
int horizontalPadding READ horizontalPadding NOTIFY horizontalPaddingChanged)
24 Q_PROPERTY(FillMode fillMode READ fillMode WRITE setFillMode NOTIFY fillModeChanged)
25 Q_PROPERTY(
bool null READ isNull NOTIFY nullChanged)
39 ~ImageItem()
override =
default;
41 void setImage(
const QImage &image);
45 int nativeWidth()
const;
46 int nativeHeight()
const;
48 int paintedWidth()
const;
49 int paintedHeight()
const;
50 int verticalPadding()
const;
51 int horizontalPadding()
const;
53 FillMode fillMode()
const;
54 void setFillMode(FillMode mode);
56 void paint(
QPainter *painter)
override;
61 void nativeWidthChanged();
62 void nativeHeightChanged();
63 void fillModeChanged();
66 void paintedWidthChanged();
67 void paintedHeightChanged();
68 void verticalPaddingChanged();
69 void horizontalPaddingChanged();
72#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
73 void geometryChanged(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
75 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
85 void updatePaintedRect();
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:40 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.