38 void draw(QPainter &painter);
39 void setVisible(
bool visible);
40 void setEnabled(
bool enabled);
41 bool eventFilter(QObject *obj, QEvent *event)
override;
45 QPushButton *createButton(
const QString &iconName,
const QString &tooltip);
46 QPoint updateCanvasBoundaries(QPoint position, QWidget *canvasWidget)
const;
47 QPoint initialDragHandlePosition()
const;
48 void drawActionBarBackground(QPainter &gc)
const;
50 bool handlePress(QEvent *event,
const QPoint &pos, Qt::MouseButton
button = Qt::LeftButton);
51 bool handleMove(QEvent *event,
const QPoint &pos, QObject *obj);
54 static QPoint mouseEventPos(
const QMouseEvent *mouseEvent);
55 static QPoint tabletEventPos(
const QTabletEvent *tabletEvent);
58 static bool touchEventPos(
const QTouchEvent *touchEvent, QPoint &outPos);
61 QScopedPointer<Private>
d;