mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
b188560ae5
Factor out code from ProfileWidget's ToolTipItem, but make the radius of the corners dynamic. Move into backend-shared, though a new ui-shared might be preferred. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
15 lines
360 B
C++
15 lines
360 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef ROUNDRECTITEM_H
|
|
#define ROUNDRECTITEM_H
|
|
|
|
#include <QGraphicsRectItem>
|
|
|
|
class RoundRectItem : public QGraphicsRectItem {
|
|
public:
|
|
RoundRectItem(double radius, QGraphicsItem *parent);
|
|
private:
|
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
|
double radius;
|
|
};
|
|
|
|
#endif
|