Skip to content

Commit

Permalink
Removed minor leftovers from before reorganizing.
Browse files Browse the repository at this point in the history
computer_vision correctly builds now.
  • Loading branch information
amahta committed Nov 19, 2017
1 parent 2ab74a0 commit 8fdec95
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 67 deletions.
11 changes: 1 addition & 10 deletions ch05/computer_vision/compute_vision.pro
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
TEMPLATE = subdirs
SUBDIRS += \
mainapp \
template_plugin \
copymakeborder_plugin \
filter_plugin \
transform_plugin \
color_plugin \
segmentation_plugin \
keypoint_plugin \
histogram_plugin \
video_template_plugin \
fourier_plugin
template_plugin
56 changes: 0 additions & 56 deletions ch05/computer_vision/mainapp/qenhancedgraphicsview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,59 +26,3 @@ void QEnhancedGraphicsView::wheelEvent(QWheelEvent *event)
event->ignore();
}
}

void QEnhancedGraphicsView::mousePressEvent(QMouseEvent *event)
{
if(event->button() == Qt::RightButton)
{
QMenu menu;
QAction *clearAllAction = menu.addAction("Clear All");
connect(clearAllAction,
SIGNAL(triggered(bool)),
this,
SLOT(clearAll(bool)));

QAction *clearSelectedAction = menu.addAction("Clear Selected");
connect(clearSelectedAction,
SIGNAL(triggered(bool)),
this,
SLOT(clearSelected(bool)));

QAction *noEffectAction = menu.addAction("No Effect");
connect(noEffectAction,
SIGNAL(triggered(bool)),
this,
SLOT(noEffect(bool)));

QAction *blurEffectAction = menu.addAction("Blur Effect");
connect(blurEffectAction,
SIGNAL(triggered(bool)),
this,
SLOT(blurEffect(bool)));

QAction *dropShadEffectAction = menu.addAction("Drop Shadow Effect");
connect(dropShadEffectAction,
SIGNAL(triggered(bool)),
this,
SLOT(dropShadowEffect(bool)));

QAction *colorizeEffectAction = menu.addAction("Colorize Effect");
connect(colorizeEffectAction,
SIGNAL(triggered(bool)),
this,
SLOT(colorizeEffect(bool)));

QAction *customEffectAction = menu.addAction("Custom Effect");
connect(customEffectAction,
SIGNAL(triggered(bool)),
this,
SLOT(customEffect(bool)));

menu.exec(event->globalPos());
event->accept();
}
else
{
QGraphicsView::mousePressEvent(event);
}
}
1 change: 0 additions & 1 deletion ch05/computer_vision/mainapp/qenhancedgraphicsview.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class QEnhancedGraphicsView : public QGraphicsView

protected:
void wheelEvent(QWheelEvent *event);
void mousePressEvent(QMouseEvent *event);

signals:

Expand Down

0 comments on commit 8fdec95

Please sign in to comment.