mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-25 19:21:41 +03:00
remove deprecated noOfDocks of corona
This commit is contained in:
parent
f7f7d3da6c
commit
d501f05ade
@ -655,17 +655,6 @@ void DockCorona::aboutApplication()
|
||||
aboutDialog->show();
|
||||
}
|
||||
|
||||
int DockCorona::noOfDocks()
|
||||
{
|
||||
QHash<const Plasma::Containment *, DockView *> *views = m_layoutManager->currentDockViews();
|
||||
|
||||
if (views) {
|
||||
return views->count();
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
QList<Plasma::Types::Location> DockCorona::freeEdges(QScreen *screen) const
|
||||
{
|
||||
using Plasma::Types;
|
||||
|
@ -134,7 +134,6 @@ private:
|
||||
bool appletExists(uint containmentId, uint appletId) const;
|
||||
bool containmentExists(uint id) const;
|
||||
|
||||
int noOfDocks();
|
||||
int primaryScreenId() const;
|
||||
|
||||
QStringList containmentsIds();
|
||||
|
@ -1082,9 +1082,7 @@ int DockView::totalDocksCount() const
|
||||
|
||||
int DockView::docksWithTasks()
|
||||
{
|
||||
auto dockCorona = qobject_cast<DockCorona *>(corona());
|
||||
|
||||
if (!dockCorona || !m_managedLayout)
|
||||
if (!m_managedLayout)
|
||||
return 0;
|
||||
|
||||
return m_managedLayout->noDocksWithTasks();
|
||||
|
Loading…
Reference in New Issue
Block a user