Fix more -Woverloaded-virtual
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user