diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index 354102d..9600bba 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -397,7 +397,6 @@ void CDockAreaWidget::insertDockWidget(int index, CDockWidget* DockWidget, bool Activate) { d->ContentsLayout->insertWidget(index, DockWidget); - DockWidget->tabWidget()->setDockAreaWidget(this); auto TabWidget = DockWidget->tabWidget(); // Inserting the tab will change the current index which in turn will // make the tab widget visible in the slot diff --git a/src/DockWidgetTab.cpp b/src/DockWidgetTab.cpp index 4e8323f..3681d95 100644 --- a/src/DockWidgetTab.cpp +++ b/src/DockWidgetTab.cpp @@ -464,20 +464,6 @@ CDockWidget* CDockWidgetTab::dockWidget() const } -//============================================================================ -void CDockWidgetTab::setDockAreaWidget(CDockAreaWidget* DockArea) -{ - d->DockArea = DockArea; -} - - -//============================================================================ -CDockAreaWidget* CDockWidgetTab::dockAreaWidget() const -{ - return d->DockArea; -} - - //============================================================================ void CDockWidgetTab::setIcon(const QIcon& Icon) { diff --git a/src/DockWidgetTab.h b/src/DockWidgetTab.h index 7f35d1f..3bde672 100644 --- a/src/DockWidgetTab.h +++ b/src/DockWidgetTab.h @@ -99,19 +99,6 @@ public: */ CDockWidget* dockWidget() const; - /** - * Sets the dock area widget the dockWidget returned by dockWidget() - * function belongs to. - */ - void setDockAreaWidget(CDockAreaWidget* DockArea); - - /** - * Returns the dock area widget this title bar belongs to. - * \return This function returns 0 if the dock widget that owns this title - * bar widget has not been added to any dock area yet. - */ - CDockAreaWidget* dockAreaWidget() const; - /** * Sets the icon to show in title bar */