Commit 1cdc3942 authored by Marco Martin's avatar Marco Martin

better placing for tooltips

put them on the side, don't obstruct the mouse from moving
parent 29259ef7
......@@ -128,7 +128,11 @@ void ToolTipManager::showToolTip( QModelIndex menuItem )
QWidget * tip = createTipContent( menuItem );
d->tooltip->showBelow(d->itemRect, tip, d->view->nativeParentWidget()->windowHandle());
if (qApp->isRightToLeft()) {
d->tooltip->showAt(d->itemRect.topLeft() - QPoint(d->tooltip->width(), 0), tip, d->view->nativeParentWidget()->windowHandle());
} else {
d->tooltip->showAt(d->itemRect.topRight(), tip, d->view->nativeParentWidget()->windowHandle());
}
connect(d->tooltip, &KToolTipWidget::hidden, tip, &QObject::deleteLater);
......
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