* @brief Shrinks a snap rectangle when its bottom reaches the canvas floor, * keeping the border clear of the taskbar (canvas overlaps it 1px). */
| 155 | * keeping the border clear of the taskbar (canvas overlaps it 1px). |
| 156 | */ |
| 157 | static QRect liftSnapBottom(QRect rect, int ch) |
| 158 | { |
| 159 | if (rect.y() + rect.height() >= ch) |
| 160 | rect.setHeight(rect.height() - 2); |
| 161 | |
| 162 | return rect; |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * @brief Returns the manual-mode snap rectangle for the dragged window's edges. |
no test coverage detected