ActiveLayout override GeneralLayout::latteViews()

pull/5/head
Michail Vourlakos 6 years ago
parent bdca8f58e8
commit caedf9842e

@ -242,6 +242,8 @@ void ActiveLayout::loadConfig()
emit activitiesChanged();
}
//! OVERRIDES
void ActiveLayout::saveConfig()
{
qDebug() << "active layout is saving... for layout:" << m_layoutName;
@ -272,6 +274,18 @@ const QStringList ActiveLayout::appliedActivities()
}
}
QList<Latte::View *> ActiveLayout::latteViews()
{
if (m_topLayout) {
QList<Latte::View *> views = Layout::GenericLayout::latteViews();
views << m_topLayout->latteViews();
return views;
}
return Layout::GenericLayout::latteViews();
}
}

@ -64,9 +64,10 @@ public:
QStringList activities() const;
void setActivities(QStringList activities);
//! overrides
//! OVERRIDE GeneralLayout implementations
void unloadContainments() override;
const QStringList appliedActivities() override;
QList<Latte::View *> latteViews() override;
signals:
void activitiesChanged();

Loading…
Cancel
Save