Show a warning message if calling an unimplemented method
It makes easier to spot potential bugs in AbstractClient subclasses.
This commit is contained in:
parent
40dca1c93e
commit
eb00a56604
1 changed files with 2 additions and 0 deletions
|
@ -3359,6 +3359,7 @@ void AbstractClient::setFullScreen(bool set, bool user)
|
|||
{
|
||||
Q_UNUSED(set)
|
||||
Q_UNUSED(user)
|
||||
qCWarning(KWIN_CORE, "%s doesn't support setting fullscreen state", metaObject()->className());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3431,6 +3432,7 @@ void AbstractClient::changeMaximize(bool horizontal, bool vertical, bool adjust)
|
|||
Q_UNUSED(horizontal)
|
||||
Q_UNUSED(vertical)
|
||||
Q_UNUSED(adjust)
|
||||
qCWarning(KWIN_CORE, "%s doesn't support setting maximized state", metaObject()->className());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue