mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge pull request #1653 from 3nids/fixidentmenurubber
delete rubber bands when exiting identify menu
This commit is contained in:
commit
2c19543178
@ -83,4 +83,7 @@ class QgsIdentifyMenu : QMenu
|
|||||||
* @param selectedAction if specified, this will allow to know which action has been triggered
|
* @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 );
|
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 )
|
void QgsIdentifyMenu::addRasterLayer( QgsMapLayer* layer )
|
||||||
{
|
{
|
||||||
QAction* layerAction;
|
QAction* layerAction;
|
||||||
|
@ -129,6 +129,9 @@ class GUI_EXPORT QgsIdentifyMenu : public QMenu
|
|||||||
*/
|
*/
|
||||||
QList<QgsMapToolIdentify::IdentifyResult> exec( const QList<QgsMapToolIdentify::IdentifyResult> idResults, QPoint pos );
|
QList<QgsMapToolIdentify::IdentifyResult> exec( const QList<QgsMapToolIdentify::IdentifyResult> idResults, QPoint pos );
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void closeEvent( QCloseEvent *e );
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void handleMenuHover();
|
void handleMenuHover();
|
||||||
void deleteRubberBands();
|
void deleteRubberBands();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user