15 #ifndef BORNAGAIN_GUI2_SLDEDITOR_SEGMENTELEMENTVIEW_H
16 #define BORNAGAIN_GUI2_SLDEDITOR_SEGMENTELEMENTVIEW_H
18 #include "darefl_export.h"
27 class LayerElementController;
33 QRectF boundingRect()
const override;
34 QPainterPath shape()
const override;
35 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
override;
38 void setRectangle(QRectF rectangle);
39 void setBrush(QBrush brush);
40 void setPen(QPen pen);
41 QPointF getLastPos()
const;
44 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
The interface of any QGraphicsViewItem on GraphicsScene to the Sceneadapter.
Manages the whole appearance of a layer on the graphicsscene.
The segment QGraphicsViewItem on the Graphicsscene.
LayerElementController * p_controller
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.