plugins/paintops/libpaintop
kis_custom_brush_widget.cpp
Go to the documentation of this file.
39 KisCustomBrushWidget::KisCustomBrushWidget(QWidget *parent, const QString& caption, KisImageWSP image)
46 preview->setStyleSheet("border: 2px solid #222; border-radius: 4px; padding: 5px; font: normal 10px;");
59 colorAsMask->setChecked(true); // use color as mask by default. This is by far the most common way to make tip.
157 resource->setFilename(resource->name().split(" ").join("_") + resource->defaultFileExtension());
164 resource->setFilename(resource->name().split(" ").join("_") + resource->defaultFileExtension());
194 KisHLineConstIteratorSP maskIt = selection->projection()->createHLineIteratorNG(r.x(), r.top(), r.width());
242 static_cast<KisGbrBrush*>(m_brush.data())->setBrushApplication(colorAsMask->isChecked() ? ALPHAMASK : IMAGESTAMP);
int y() const
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
QDateTime currentDateTime()
Definition: kis_custom_brush_widget.h:26
void push_back(const T &value)
int width() const
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
int x() const
int y() const
bool close()
KisCustomBrushWidget(QWidget *parent, const QString &caption, KisImageWSP image)
Definition: kis_custom_brush_widget.cpp:39
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void showEvent(QShowEvent *)
Definition: kis_custom_brush_widget.cpp:80
int bottom() const
int top() const
void setWindowTitle(const QString &)
bool isNull() const
QString caption() const
void sigNewPredefinedBrush(KoResourceSP)
int height() const
void setImage(KisImageWSP image)
Definition: kis_custom_brush_widget.cpp:74
const char * name() const
virtual ~KisCustomBrushWidget()
Definition: kis_custom_brush_widget.cpp:64
QString toString(Qt::DateFormat format) const
void accepted()
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 17 2021 23:38:22 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 17 2021 23:38:22 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.