1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-23 01:33:50 +03:00

layout:expose explicitScreens

This commit is contained in:
Michail Vourlakos 2021-06-03 20:36:54 +03:00
parent 9e611d444e
commit 46c0e1a992
4 changed files with 11 additions and 2 deletions

View File

@ -1501,7 +1501,7 @@ QList<int> GenericLayout::subContainmentsOf(Plasma::Containment *containment) co
return subs; return subs;
} }
QList<int> GenericLayout::viewsScreens() QList<int> GenericLayout::viewsExplicitScreens()
{ {
Data::ViewsTable views = viewsTable(); Data::ViewsTable views = viewsTable();
QList<int> screens; QList<int> screens;

View File

@ -131,7 +131,7 @@ public:
//! that latteView //! that latteView
QList<Plasma::Containment *> unassignFromLayout(Plasma::Containment *latteContainment); QList<Plasma::Containment *> unassignFromLayout(Plasma::Containment *latteContainment);
QList<int> viewsScreens(); QList<int> viewsExplicitScreens();
Latte::Data::ViewsTable viewsTable() const; Latte::Data::ViewsTable viewsTable() const;

View File

@ -851,6 +851,12 @@ const Latte::Data::LayoutsTable &Layouts::currentLayoutsData()
return m_layoutsTable; return m_layoutsTable;
} }
const Latte::Data::ScreensTable &Layouts::screensData()
{
Latte::Data::ScreensTable scrs;
return scrs;
}
void Layouts::setOriginalInMultipleMode(const bool &inmultiple) void Layouts::setOriginalInMultipleMode(const bool &inmultiple)
{ {
setInMultipleMode(inmultiple); setInMultipleMode(inmultiple);

View File

@ -12,6 +12,7 @@
#include "../../data/layoutdata.h" #include "../../data/layoutdata.h"
#include "../../data/layouticondata.h" #include "../../data/layouticondata.h"
#include "../../data/layoutstable.h" #include "../../data/layoutstable.h"
#include "../../data/screendata.h"
// Qt // Qt
#include <QAbstractTableModel> #include <QAbstractTableModel>
@ -127,6 +128,8 @@ public:
const Latte::Data::LayoutsTable &currentLayoutsData(); const Latte::Data::LayoutsTable &currentLayoutsData();
const Latte::Data::LayoutsTable &originalLayoutsData(); const Latte::Data::LayoutsTable &originalLayoutsData();
const Latte::Data::ScreensTable &screensData();
void setOriginalInMultipleMode(const bool &inmultiple); void setOriginalInMultipleMode(const bool &inmultiple);
void setOriginalData(Latte::Data::LayoutsTable &data); void setOriginalData(Latte::Data::LayoutsTable &data);