Skip to content
Permalink
Browse files

delete rubber bands when exiting identify menu

  • Loading branch information
3nids committed Oct 23, 2014
1 parent cc30609 commit a41a9a38ac76b7b40f9ba8c045a3233e6919ee9b
Showing with 12 additions and 0 deletions.
  1. +3 −0 python/gui/qgsidentifymenu.sip
  2. +6 −0 src/gui/qgsidentifymenu.cpp
  3. +3 −0 src/gui/qgsidentifymenu.h
@@ -83,4 +83,7 @@ class QgsIdentifyMenu : QMenu
* @param selectedAction if specified, this will allow to know which action has been triggered
*/
QList<QgsMapToolIdentify::IdentifyResult> exec( const QList<QgsMapToolIdentify::IdentifyResult> idResults, QPoint pos );

protected:
virtual void closeEvent( QCloseEvent *e );
};
@@ -151,6 +151,12 @@ QList<QgsMapToolIdentify::IdentifyResult> QgsIdentifyMenu::exec( const QList<Qgs
}
}

void QgsIdentifyMenu::closeEvent( QCloseEvent* e )
{
deleteRubberBands();
QMenu::closeEvent( e );
}

void QgsIdentifyMenu::addRasterLayer( QgsMapLayer* layer )
{
QAction* layerAction;
@@ -129,6 +129,9 @@ class GUI_EXPORT QgsIdentifyMenu : public QMenu
*/
QList<QgsMapToolIdentify::IdentifyResult> exec( const QList<QgsMapToolIdentify::IdentifyResult> idResults, QPoint pos );

protected:
virtual void closeEvent( QCloseEvent *e );

private slots:
void handleMenuHover();
void deleteRubberBands();

0 comments on commit a41a9a3

Please sign in to comment.
You can’t perform that action at this time.