KritaWidgets
KoResourcePopupAction.cpp
Go to the documentation of this file.
45 KoResourcePopupAction::KoResourcePopupAction(const QString &resourceType, KoCanvasResourcesInterfaceSP canvasResourcesInterface, QObject *parent)
126 void KoResourcePopupAction::setCanvasResourcesInterface(KoCanvasResourcesInterfaceSP canvasResourcesInterface)
145 QGradient *qg = gradient->cloneAndBakeVariableColors(d->canvasResourcesInterface)->toQGradient();
177 QSharedPointer<KoGradientBackground> gradientBackground = qSharedPointerDynamicCast<KoGradientBackground>(d->background);
178 QSharedPointer<KoPatternBackground> patternBackground = qSharedPointerDynamicCast<KoPatternBackground>(d->background);
void setCurrentBackground(QSharedPointer< KoShapeBackground > background)
Definition: KoResourcePopupAction.cpp:101
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
void fill(uint pixelValue)
void setMenu(QMenu *menu)
QWidget * parentWidget() const
KoResourceSP currentResource() const
Definition: KoResourcePopupAction.cpp:117
QSharedPointer< KoShapeBackground > currentBackground() const
Definition: KoResourcePopupAction.cpp:96
int width() const
void fillRect(const QRectF &rectangle, const QBrush &brush)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setCurrentResource(KoResourceSP resource)
Definition: KoResourcePopupAction.cpp:108
void setDefaultWidget(QWidget *widget)
void setStops(const QGradientStops &stopPoints)
void setIcon(const QIcon &icon)
void resourceSelected(QSharedPointer< KoShapeBackground > background)
Emitted when a resource was selected.
bool end()
void setCoordinateMode(CoordinateMode mode)
int height() const
KoResourcePopupAction(const QString &resourceType, KoCanvasResourcesInterfaceSP canvasResourcesInterface, QObject *parent=0)
Constructs a KoResourcePopupAction (gradient or pattern) with the specified parent.
Definition: KoResourcePopupAction.cpp:45
bool isValid() const
iconSize
void setCanvasResourcesInterface(KoCanvasResourcesInterfaceSP canvasResourcesInterface)
Definition: KoResourcePopupAction.cpp:126
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:44:00 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:44:00 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.