* Gets the close label rectangle. * @param rect The rectangle of the xcursor area. * @return Returns the close label rectangle. */
| 231 | * @return Returns the close label rectangle. |
| 232 | */ |
| 233 | QRect XCursor::get_close_rect(const QRect &rect) |
| 234 | { |
| 235 | const int width = 10; |
| 236 | const int64_t y = rect.top() + _value1 * rect.height() - width/2; |
| 237 | return QRect(rect.right()+1, y, width, width); |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * Paints the labels to the xcursor. |