Remove not implemented add/delete desktop
It is unlikely that anyone will implement it and it is not compatible to EWMH anyway. So better remove it.icc-effect-5.14.5
parent
c4381dc1f9
commit
9199619969
|
@ -171,17 +171,4 @@ int Workspace::desktopToLeft(int id, bool wrap) const
|
|||
}
|
||||
}
|
||||
|
||||
int Workspace::addDesktop(QPoint coords)
|
||||
{
|
||||
// TODO
|
||||
Q_UNUSED(coords);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Workspace::deleteDesktop(int id)
|
||||
{
|
||||
// TODO
|
||||
Q_UNUSED(id);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
10
effects.cpp
10
effects.cpp
|
@ -682,16 +682,6 @@ bool EffectsHandlerImpl::isDesktopLayoutDynamic() const
|
|||
return Workspace::self()->isDesktopLayoutDynamic();
|
||||
}
|
||||
|
||||
int EffectsHandlerImpl::addDesktop(QPoint coords)
|
||||
{
|
||||
return Workspace::self()->addDesktop(coords);
|
||||
}
|
||||
|
||||
void EffectsHandlerImpl::deleteDesktop(int id)
|
||||
{
|
||||
Workspace::self()->deleteDesktop(id);
|
||||
}
|
||||
|
||||
QString EffectsHandlerImpl::desktopName(int desktop) const
|
||||
{
|
||||
return Workspace::self()->desktopName(desktop);
|
||||
|
|
|
@ -84,8 +84,6 @@ public:
|
|||
virtual int desktopBelow(int desktop = 0, bool wrap = true) const;
|
||||
virtual int desktopToLeft(int desktop = 0, bool wrap = true) const;
|
||||
virtual bool isDesktopLayoutDynamic() const;
|
||||
virtual int addDesktop(QPoint coords);
|
||||
virtual void deleteDesktop(int id);
|
||||
virtual QString desktopName(int desktop) const;
|
||||
virtual bool optionRollOverDesktops() const;
|
||||
|
||||
|
|
|
@ -667,16 +667,6 @@ public:
|
|||
* @returns Whether or not the desktop layout is allowed to be modified by the user.
|
||||
*/
|
||||
virtual bool isDesktopLayoutDynamic() const = 0;
|
||||
/**
|
||||
* Create new desktop at the point @a coords
|
||||
* @returns The ID of the created desktop
|
||||
*/
|
||||
virtual int addDesktop(QPoint coords) = 0;
|
||||
/**
|
||||
* Deletes the desktop with the ID @a id. All desktops with an ID greater than the one that
|
||||
* was deleted will have their IDs' decremented.
|
||||
*/
|
||||
virtual void deleteDesktop(int id) = 0;
|
||||
virtual QString desktopName(int desktop) const = 0;
|
||||
virtual bool optionRollOverDesktops() const = 0;
|
||||
|
||||
|
|
10
workspace.h
10
workspace.h
|
@ -318,16 +318,6 @@ public:
|
|||
* Sets whether or not this layout can be modified by the user.
|
||||
*/
|
||||
void setDesktopLayoutDynamicity(bool dynamicity);
|
||||
/**
|
||||
* Create new desktop at the point @a coords
|
||||
* @returns The ID of the created desktop
|
||||
*/
|
||||
int addDesktop(QPoint coords);
|
||||
/**
|
||||
* Deletes the desktop with the ID @a id. All desktops with an ID greater than the one that
|
||||
* was deleted will have their IDs' decremented.
|
||||
*/
|
||||
void deleteDesktop(int id);
|
||||
|
||||
private:
|
||||
int desktopCount_;
|
||||
|
|
Loading…
Reference in New Issue