Commit eb00a566 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Show a warning message if calling an unimplemented method

It makes easier to spot potential bugs in AbstractClient subclasses.
parent 40dca1c9
......@@ -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());
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment