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
This commit is contained in:
Thorbjørn Lindeijer
2009-04-06 17:11:32 +02:00
parent 6fd6bf7fcb
commit 3c91cd8b38

View File

@@ -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();