15 #ifndef BORNAGAIN_GUI2_SLDEDITOR_ROUGHNESSELEMENTVIEW_H
16 #define BORNAGAIN_GUI2_SLDEDITOR_ROUGHNESSELEMENTVIEW_H
18 #include "darefl_export.h"
22 #include <QPainterPath>
31 QRectF boundingRect()
const override;
32 QPainterPath shape()
const override;
33 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
override;
35 void setLeftPath(QPainterPath left_path);
36 void setRightPath(QPainterPath right_path);
37 void setBrush(QBrush brush);
38 void setPen(QPen pen);
The interface of any QGraphicsViewItem on GraphicsScene to the Sceneadapter.
The roughness QGraphicsViewItem.
QPainterPath m_right_path
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.