Document AbstractClient::minSize() and AbstractClient::maxSize()
Summary: Clarify that AbstractClient::minSize() and AbstractClient::maxSize() specify the minimum and the maximum client size. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D26829
This commit is contained in:
parent
a75fb7f84e
commit
c3abe87f4c
1 changed files with 6 additions and 0 deletions
|
@ -719,11 +719,17 @@ void AbstractClient::keepInArea(QRect area, bool partial)
|
|||
move(tx, ty);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the maximum client size, not the maximum frame size.
|
||||
*/
|
||||
QSize AbstractClient::maxSize() const
|
||||
{
|
||||
return rules()->checkMaxSize(QSize(INT_MAX, INT_MAX));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the minimum client size, not the minimum frame size.
|
||||
*/
|
||||
QSize AbstractClient::minSize() const
|
||||
{
|
||||
return rules()->checkMinSize(QSize(0, 0));
|
||||
|
|
Loading…
Reference in a new issue