Skip to content

Commit 71b1fc7

Browse files
author
wonder
committedMar 16, 2009
Applied patch from Andrej Krutak - added removeDockWidget() to interface.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10286 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c6d2f05 commit 71b1fc7

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed
 

‎python/gui/qgisinterface.sip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ class QgisInterface : QObject
8787
/** Add a dock widget to the main window */
8888
virtual void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget )=0;
8989

90+
/** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
91+
virtual void removeDockWidget ( QDockWidget * dockwidget )=0;
92+
9093
/** refresh legend of a layer */
9194
virtual void refreshLegend( QgsMapLayer * layer )=0;
9295

‎src/app/qgisappinterface.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ void QgisAppInterface::addDockWidget( Qt::DockWidgetArea area, QDockWidget * doc
162162
qgis->addDockWidget( area, dockwidget );
163163
}
164164

165+
void QgisAppInterface::removeDockWidget( QDockWidget * dockwidget )
166+
{
167+
qgis->removeDockWidget( dockwidget );
168+
}
169+
165170
void QgisAppInterface::refreshLegend( QgsMapLayer *l )
166171
{
167172
if ( l && qgis && qgis->legend() )

‎src/app/qgisappinterface.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ class QgisAppInterface : public QgisInterface
102102
/** Add a dock widget to the main window */
103103
void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget );
104104

105+
/** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
106+
void removeDockWidget ( QDockWidget * dockwidget );
107+
105108
virtual void refreshLegend( QgsMapLayer *l );
106109

107110
/** Add window to Window menu. The action title is the window title

‎src/gui/qgisinterface.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ class GUI_EXPORT QgisInterface : public QObject
118118
/** Add a dock widget to the main window */
119119
virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget ) = 0;
120120

121+
/** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
122+
virtual void removeDockWidget ( QDockWidget * dockwidget )=0;
123+
121124
/** refresh the legend of a layer */
122125
virtual void refreshLegend( QgsMapLayer *l ) = 0;
123126

0 commit comments

Comments
 (0)
Please sign in to comment.