From 462015edf1922fae1fca21d3069209d29fd97936 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 14 Jul 2023 08:07:37 +0200 Subject: [PATCH] Removed unimolemented superfluous function definitions --- src/DockContainerWidget.h | 7 ------- src/DockWidgetTab.cpp | 3 --- src/DockWidgetTab.h | 6 ------ 3 files changed, 16 deletions(-) diff --git a/src/DockContainerWidget.h b/src/DockContainerWidget.h index 11fc339..8f15f2e 100644 --- a/src/DockContainerWidget.h +++ b/src/DockContainerWidget.h @@ -103,13 +103,6 @@ protected: */ CAutoHideDockContainer* createAndSetupAutoHideContainer(SideBarLocation area, CDockWidget* DockWidget, int TabIndex = -1); - /** - * The funtion does the same like createAndSetupAutoHideContainer() but checks - * if the given DockWidget is pinnable. If it is not pinnable, the - * function returns a nullptr. - */ - CAutoHideDockContainer* createAutoHideContainerIfPinnable(SideBarLocation area, CDockWidget* DockWidget); - /** * Helper function for creation of the root splitter */ diff --git a/src/DockWidgetTab.cpp b/src/DockWidgetTab.cpp index b57619e..5656391 100644 --- a/src/DockWidgetTab.cpp +++ b/src/DockWidgetTab.cpp @@ -79,7 +79,6 @@ struct DockWidgetTabPrivate QSpacerItem* IconTextSpacer; QPoint TabDragStartPosition; QSize IconSize; - bool MousePressed = false; /** * Private data constructor @@ -373,7 +372,6 @@ void CDockWidgetTab::mousePressEvent(QMouseEvent* ev) if (ev->button() == Qt::LeftButton) { ev->accept(); - d->MousePressed = true; d->saveDragStartMousePosition(internal::globalPositionOf(ev)); d->DragState = DraggingMousePressed; if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting)) @@ -394,7 +392,6 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev) { if (ev->button() == Qt::LeftButton) { - d->MousePressed = false; auto CurrentDragState = d->DragState; d->GlobalDragStartMousePosition = QPoint(); d->DragStartMousePosition = QPoint(); diff --git a/src/DockWidgetTab.h b/src/DockWidgetTab.h index 309ee41..11d0ba5 100644 --- a/src/DockWidgetTab.h +++ b/src/DockWidgetTab.h @@ -178,12 +178,6 @@ public: */ void setIconSize(const QSize& Size); - /** - * Returns true, if the tab has been clicked and the mouse is currently - * pressed. - */ - bool mousePressed() const; - public Q_SLOTS: virtual void setVisible(bool visible) override;