Show a warning message if calling an unimplemented method

It makes easier to spot potential bugs in AbstractClient subclasses.
This commit is contained in:
Vlad Zahorodnii 2020-08-17 10:28:35 +03:00
parent 40dca1c93e
commit eb00a56604

View file

@ -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());
}
}