Skip to content

Commit 65600a4

Browse files
Removed unimolemented superfluous function definitions
1 parent ac1879d commit 65600a4

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

src/DockContainerWidget.h

-7
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,6 @@ class ADS_EXPORT CDockContainerWidget : public QFrame
103103
*/
104104
CAutoHideDockContainer* createAndSetupAutoHideContainer(SideBarLocation area, CDockWidget* DockWidget, int TabIndex = -1);
105105

106-
/**
107-
* The funtion does the same like createAndSetupAutoHideContainer() but checks
108-
* if the given DockWidget is pinnable. If it is not pinnable, the
109-
* function returns a nullptr.
110-
*/
111-
CAutoHideDockContainer* createAutoHideContainerIfPinnable(SideBarLocation area, CDockWidget* DockWidget);
112-
113106
/**
114107
* Helper function for creation of the root splitter
115108
*/

src/DockWidgetTab.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ struct DockWidgetTabPrivate
7979
QSpacerItem* IconTextSpacer;
8080
QPoint TabDragStartPosition;
8181
QSize IconSize;
82-
bool MousePressed = false;
8382

8483
/**
8584
* Private data constructor
@@ -373,7 +372,6 @@ void CDockWidgetTab::mousePressEvent(QMouseEvent* ev)
373372
if (ev->button() == Qt::LeftButton)
374373
{
375374
ev->accept();
376-
d->MousePressed = true;
377375
d->saveDragStartMousePosition(internal::globalPositionOf(ev));
378376
d->DragState = DraggingMousePressed;
379377
if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting))
@@ -394,7 +392,6 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev)
394392
{
395393
if (ev->button() == Qt::LeftButton)
396394
{
397-
d->MousePressed = false;
398395
auto CurrentDragState = d->DragState;
399396
d->GlobalDragStartMousePosition = QPoint();
400397
d->DragStartMousePosition = QPoint();

src/DockWidgetTab.h

-6
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,6 @@ private Q_SLOTS:
178178
*/
179179
void setIconSize(const QSize& Size);
180180

181-
/**
182-
* Returns true, if the tab has been clicked and the mouse is currently
183-
* pressed.
184-
*/
185-
bool mousePressed() const;
186-
187181
public Q_SLOTS:
188182
virtual void setVisible(bool visible) override;
189183

0 commit comments

Comments
 (0)