You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
805 B
29 lines
805 B
13 years ago
|
#ifndef UBGRAPHICSGROUPCONTAINERITEMDELEGATE_H
|
||
|
#define UBGRAPHICSGROUPCONTAINERITEMDELEGATE_H
|
||
|
|
||
|
#include "domain/UBGraphicsItemDelegate.h"
|
||
|
|
||
|
class UBGraphicsGroupContainerItem;
|
||
|
|
||
|
class UBGraphicsGroupContainerItemDelegate : public UBGraphicsItemDelegate
|
||
|
{
|
||
13 years ago
|
Q_OBJECT
|
||
|
|
||
13 years ago
|
public:
|
||
|
UBGraphicsGroupContainerItemDelegate(QGraphicsItem* pDelegated, QObject * parent = 0);
|
||
|
UBGraphicsGroupContainerItem *delegated();
|
||
|
|
||
|
protected:
|
||
|
virtual void decorateMenu(QMenu *menu);
|
||
|
virtual void buildButtons();
|
||
|
|
||
13 years ago
|
virtual bool mousePressEvent(QGraphicsSceneMouseEvent *event);
|
||
|
virtual bool mouseMoveEvent(QGraphicsSceneMouseEvent *event);
|
||
|
virtual bool mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
|
||
|
|
||
13 years ago
|
private:
|
||
|
DelegateButton *mDestroyGroupButton;
|
||
|
};
|
||
|
|
||
|
#endif // UBGRAPHICSGROUPCONTAINERITEMDELEGATE_H
|