Fix more -Woverloaded-virtual

This commit is contained in:
Sergio Martins
2020-11-26 15:15:37 +00:00
parent a0fb47af58
commit af10efa587
2 changed files with 3 additions and 3 deletions

View File

@@ -121,7 +121,7 @@ void DropArea::addDockWidget(DockWidgetBase *dw, Location location, DockWidgetBa
const bool hadSingleFloatingFrame = hasSingleFloatingFrame();
// Check if the dock widget already exists in the layout
if (contains(dw)) {
if (containsDockWidget(dw)) {
Frame *oldFrame = dw->frame();
if (oldFrame->hasSingleDockWidget()) {
Q_ASSERT(oldFrame->containsDockWidget(dw));
@@ -149,7 +149,7 @@ void DropArea::addDockWidget(DockWidgetBase *dw, Location location, DockWidgetBa
}
}
bool DropArea::contains(DockWidgetBase *dw) const
bool DropArea::containsDockWidget(DockWidgetBase *dw) const
{
return dw->frame() && MultiSplitter::containsFrame(dw->frame());
}

View File

@@ -54,7 +54,7 @@ public:
DropIndicatorOverlayInterface *dropIndicatorOverlay() const { return m_dropIndicatorOverlay; }
void addDockWidget(DockWidgetBase *, KDDockWidgets::Location location, DockWidgetBase *relativeTo, AddingOption option = {});
bool contains(DockWidgetBase *) const;
bool containsDockWidget(DockWidgetBase *) const;
/// Returns whether this layout has a single dock widget which is floating
/// Implies it's in a FloatingWindow and that it has only one dock widget