SemanticGraphGlobalItem.h
Go to the documentation of this file.
1#pragma once
2
3#include <QGraphicsItem>
4#include <QObject>
5
6namespace armarx
7{
8
9 class SemanticGraphGlobalItem : public QObject, public QGraphicsRectItem
10 {
11 Q_OBJECT
12 public:
14
15 // QGraphicsItem interface
16 void
17 paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
18
19 void mousePressEvent(QGraphicsSceneMouseEvent* event) override;
20
21 QString text = "Global";
22 bool selected = false;
23
24 QColor fillColor = Qt::GlobalColor::white;
25 QColor borderColor = Qt::GlobalColor::black;
26 QColor fontColor = Qt::GlobalColor::black;
27
28
29 signals:
31 };
32
33} // namespace armarx
#define option(type, fn)
void onLeftClick(SemanticGraphGlobalItem *)
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
This file offers overloads of toIce() and fromIce() functions for STL container types.