File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ class QgisInterface : QObject
82
82
/** Remove action from the plugins menu */
83
83
virtual void removePluginMenu(QString name, QAction* action)=0;
84
84
85
- /** Return a pointer to the toolbox (where additional pages can be inserted) */
86
- virtual QToolBox* getToolBox() =0;
85
+ /** Add a dock widget to the main window */
86
+ virtual void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget ); =0;
87
87
88
88
/** refresh legend of a layer */
89
89
virtual void refreshLegend( QgsMapLayer * layer )=0;
Original file line number Diff line number Diff line change @@ -141,9 +141,9 @@ QWidget * QgisAppInterface::getMainWindow()
141
141
return qgis;
142
142
}
143
143
144
- QToolBox* QgisAppInterface::getToolBox ( )
144
+ void QgisAppInterface::addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget )
145
145
{
146
- return NULL ;
146
+ qgis-> addDockWidget ( area, dockwidget ) ;
147
147
}
148
148
149
149
void QgisAppInterface::refreshLegend (QgsMapLayer *l)
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ class QgisAppInterface : public QgisInterface
101
101
/* * Remove action from the plugins menu */
102
102
void removePluginMenu (QString name, QAction* action);
103
103
104
- /* * Return a pointer to the toolbox (where additional pages can be inserted) */
105
- virtual QToolBox* getToolBox ( );
104
+ /* * Add a dock widget to the main window */
105
+ void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget );
106
106
107
107
virtual void refreshLegend (QgsMapLayer *l);
108
108
Original file line number Diff line number Diff line change 22
22
class QAction ;
23
23
class QMenu ;
24
24
class QToolBar ;
25
- class QToolBox ;
25
+ class QDockWidget ;
26
26
class QWidget ;
27
27
#include < QObject>
28
28
@@ -115,8 +115,8 @@ class GUI_EXPORT QgisInterface : public QObject
115
115
/* * Remove action from the plugins menu */
116
116
virtual void removePluginMenu (QString name, QAction* action)=0;
117
117
118
- /* * Return a pointer to the toolbox (where additional pages can be inserted) */
119
- virtual QToolBox* getToolBox ( )=0;
118
+ /* * Add a dock widget to the main window */
119
+ virtual void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget )=0;
120
120
121
121
/* * refresh the legend of a layer */
122
122
virtual void refreshLegend (QgsMapLayer *l)=0;
You can’t perform that action at this time.
0 commit comments