1 #include "MosaicGraphicsScene.h" 3 #include <QGraphicsSceneMouseEvent> 5 #include "MosaicSceneWidget.h" 8 MosaicGraphicsScene::MosaicGraphicsScene(MosaicSceneWidget *parent) :
QGraphicsScene(parent) {
13 MosaicGraphicsScene::~MosaicGraphicsScene() {
17 void MosaicGraphicsScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *contextMenuEvent) {
18 if (selectedItems().count() < 2 ||
19 !qobject_cast<MosaicSceneWidget *>(parent())->contextMenuEvent(contextMenuEvent)) {
20 QGraphicsScene::contextMenuEvent(contextMenuEvent);
25 void MosaicGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent) {
26 if (mouseEvent->button() == Qt::RightButton) {
29 if (m_parent->isControlNetToolActive()) {
31 QGraphicsScene::mousePressEvent(mouseEvent);
38 QGraphicsScene::mousePressEvent(mouseEvent);
Namespace for ISIS/Bullet specific routines.