| 279 | } |
| 280 | |
| 281 | void QuickFindWidget::positionWidget() |
| 282 | { |
| 283 | int usableWidth = editor->width(); |
| 284 | |
| 285 | // Account for the scrollbar as the quick find will be underneath if the scrollbar is visible |
| 286 | if (editor->verticalScrollBar() && editor->verticalScrollBar()->isVisible()) { |
| 287 | usableWidth -= editor->verticalScrollBar()->width(); |
| 288 | } |
| 289 | |
| 290 | QPoint position = QPoint(usableWidth - width(), 0); |
| 291 | |
| 292 | move(editor->mapTo(parentWidget(), position)); |
| 293 | } |
| 294 | |
| 295 | void QuickFindWidget::prepareSearch() |
| 296 | { |
nothing calls this directly
no outgoing calls
no test coverage detected