Move (grow|shrink)(Horizontal|Vertical) to AbstractClient
A virtual base implementation is provided which does nothing. Needed in AbstractClient to get Workspace::slotWindowGrow* to work with active_client becoming an AbstractCliet.
This commit is contained in:
parent
138c1b2ff0
commit
e5734f9e6c
3 changed files with 25 additions and 4 deletions
|
@ -55,4 +55,20 @@ bool AbstractClient::untab(const QRect &toGeometry, bool clientRemoved)
|
|||
return false;
|
||||
}
|
||||
|
||||
void AbstractClient::growHorizontal()
|
||||
{
|
||||
}
|
||||
|
||||
void AbstractClient::growVertical()
|
||||
{
|
||||
}
|
||||
|
||||
void AbstractClient::shrinkHorizontal()
|
||||
{
|
||||
}
|
||||
|
||||
void AbstractClient::shrinkVertical()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -104,6 +104,11 @@ public:
|
|||
virtual bool wantsInput() const = 0;
|
||||
virtual void checkWorkspacePosition(QRect oldGeometry = QRect(), int oldDesktop = -2) = 0;
|
||||
|
||||
virtual void growHorizontal();
|
||||
virtual void shrinkHorizontal();
|
||||
virtual void growVertical();
|
||||
virtual void shrinkVertical();
|
||||
|
||||
// TODO: remove boolean trap
|
||||
static bool belongToSameApplication(const AbstractClient* c1, const AbstractClient* c2, bool active_hack = false);
|
||||
|
||||
|
|
8
client.h
8
client.h
|
@ -483,10 +483,10 @@ public:
|
|||
*/
|
||||
void setQuickTileMode(QuickTileMode mode, bool keyboard = false);
|
||||
|
||||
void growHorizontal();
|
||||
void shrinkHorizontal();
|
||||
void growVertical();
|
||||
void shrinkVertical();
|
||||
void growHorizontal() override;
|
||||
void shrinkHorizontal() override;
|
||||
void growVertical() override;
|
||||
void shrinkVertical() override;
|
||||
|
||||
bool providesContextHelp() const;
|
||||
const QKeySequence &shortcut() const override;
|
||||
|
|
Loading…
Reference in a new issue