Commit 6fd975c5 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Make sure lsptooltip doesn't hinder view contextMenu

parent 1fead89e
......@@ -285,6 +285,9 @@ public:
{
QRect screen = QApplication::screenAt(p)->availableGeometry();
const auto offset = QPoint(3, 21);
p += offset;
if (p.x() + width() > screen.x() + screen.width())
p.rx() -= 4 + width();
if (p.y() + this->height() > screen.y() + screen.height())
......
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