mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-07 00:03:52 -05:00
Applied patch from Andrej Krutak - added removeDockWidget() to interface.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10286 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
c6d2f05bdf
commit
71b1fc7d77
@ -87,6 +87,9 @@ class QgisInterface : QObject
|
||||
/** Add a dock widget to the main window */
|
||||
virtual void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget )=0;
|
||||
|
||||
/** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
|
||||
virtual void removeDockWidget ( QDockWidget * dockwidget )=0;
|
||||
|
||||
/** refresh legend of a layer */
|
||||
virtual void refreshLegend( QgsMapLayer * layer )=0;
|
||||
|
||||
|
||||
@ -162,6 +162,11 @@ void QgisAppInterface::addDockWidget( Qt::DockWidgetArea area, QDockWidget * doc
|
||||
qgis->addDockWidget( area, dockwidget );
|
||||
}
|
||||
|
||||
void QgisAppInterface::removeDockWidget( QDockWidget * dockwidget )
|
||||
{
|
||||
qgis->removeDockWidget( dockwidget );
|
||||
}
|
||||
|
||||
void QgisAppInterface::refreshLegend( QgsMapLayer *l )
|
||||
{
|
||||
if ( l && qgis && qgis->legend() )
|
||||
|
||||
@ -102,6 +102,9 @@ class QgisAppInterface : public QgisInterface
|
||||
/** Add a dock widget to the main window */
|
||||
void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget );
|
||||
|
||||
/** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
|
||||
void removeDockWidget ( QDockWidget * dockwidget );
|
||||
|
||||
virtual void refreshLegend( QgsMapLayer *l );
|
||||
|
||||
/** Add window to Window menu. The action title is the window title
|
||||
|
||||
@ -118,6 +118,9 @@ class GUI_EXPORT QgisInterface : public QObject
|
||||
/** Add a dock widget to the main window */
|
||||
virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget ) = 0;
|
||||
|
||||
/** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
|
||||
virtual void removeDockWidget ( QDockWidget * dockwidget )=0;
|
||||
|
||||
/** refresh the legend of a layer */
|
||||
virtual void refreshLegend( QgsMapLayer *l ) = 0;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user