23 setIsOpacityPresetMode(
true);
31 if (isEraser() && (nodePaintAbility() == PAINT)) {
34 DelegatedPencilTool::resetCursorStyle();
37 overrideCursorIfNotEditable();
42 if (mode() == HOVER_MODE || mode() == PAINT_MODE) {
43 setCursor(
value ? Qt::ArrowCursor : Qt::ForbiddenCursor);
60 if (!nodeEditable())
return;
62 if (nodePaintAbility() == KisToolPencil::MYPAINTBRUSH_UNPAINTABLE) {
64 QString message = i18n(
"The MyPaint Brush Engine is not available for this colorspace");
89 Q_FOREACH (QWidget* widget, widgetsList) {
90 if (widget->objectName() !=
"Stroke widget") {
91 filteredWidgets.push_back(widget);
94 return filteredWidgets;
float value(const T *src, size_t ch)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
KisViewManager * viewManager() const
static QCursor eraserCursor()
KisCanvasResourceProvider * canvasResourceProvider()
void showFloatingMessage(const QString &message, const QIcon &icon, int timeout=4500, KisFloatingMessage::Priority priority=KisFloatingMessage::Medium, int alignment=Qt::AlignCenter|Qt::TextWordWrap)
shows a floating message in the top right corner of the canvas
The position of a path point within a path shape.
virtual QPointF normalize()
Normalizes the path data.
void close()
Closes the current subpath.
QPainterPath outline() const override
reimplemented
QPointF position() const
Get the position of the shape in pt.
#define koIcon(name)
Use these macros for icons without any issues.
KUndo2MagicString kundo2_i18n(const char *text)