Commit ca636d91 authored by Eike Ziller's avatar Eike Ziller

Locator: Fix missing popup frame on Win/Lin

Change-Id: Idaea2197d8666a251cef46fa9032494e91cc29a1
Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
parent 7c67282c
......@@ -284,7 +284,8 @@ void TopLeftLocatorPopup::updateGeometry()
{
QTC_ASSERT(parentWidget(), return);
const QSize size = preferredSize();
const QRect rect(parentWidget()->mapToGlobal(QPoint(0, -size.height())), size);
const int border = m_tree->frameWidth();
const QRect rect(parentWidget()->mapToGlobal(QPoint(-border, -size.height() - border)), size);
setGeometry(rect);
LocatorPopup::updateGeometry();
}
......@@ -369,7 +370,8 @@ LocatorPopup::LocatorPopup(LocatorWidget *locatorWidget, QWidget *parent)
m_tree(new CompletionList(this)),
m_inputWidget(locatorWidget)
{
m_tree->setFrameStyle(QFrame::NoFrame);
if (Utils::HostOsInfo::isMacHost())
m_tree->setFrameStyle(QFrame::NoFrame); // tool tip already includes a frame
m_tree->setModel(locatorWidget->model());
auto layout = new QVBoxLayout;
......
......@@ -122,11 +122,11 @@ protected:
virtual void inputLostFocus();
QPointer<QWidget> m_window;
CompletionList *m_tree;
private:
void updateWindow();
CompletionList *m_tree;
LocatorWidget *m_inputWidget;
};
......
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