Commit 3c91cd8b authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fix position of function argument hint with multiple screens

Was always on the first screen since the screen number was determined
incorrectly. Thanks to Christian Hönig for reporting the issue.

Reviewed-by: Daniel Molkentin
parent 6fd6bf7f
......@@ -383,9 +383,9 @@ void FunctionArgumentWidget::updateHintText()
const QDesktopWidget *desktop = QApplication::desktop();
#ifdef Q_OS_MAC
const QRect screen = desktop->availableGeometry(desktop->screenNumber(m_popupFrame));
const QRect screen = desktop->availableGeometry(desktop->screenNumber(m_editor->widget()));
#else
const QRect screen = desktop->screenGeometry(desktop->screenNumber(m_popupFrame));
const QRect screen = desktop->screenGeometry(desktop->screenNumber(m_editor->widget()));
#endif
const QSize sz = m_popupFrame->sizeHint();
......
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