[Qt-creator] [patch] Enhanced FunctionArgumentWidget popups on wrong screen

Christian Hönig christian at hoenig.cc
Sat Mar 28 10:12:58 CET 2009


Hi Bjørn,

I have a problem with the changes in ece7c9afd744f1403ccb25e04fa20a541218bd72

What happens is that the popup always shows up on screen 1 (which is the left 
one), though QtCreator is on screen 0 (the right one). 

When you call 

	... desktop->screenNumber(m_popupFrame) ... [cppcodecompletion.cpp:388]

m_popupFrame has not been moved yet and is located at (0,0), so that 
screenNumber() always returns 1. The attached patch fixes the problem, by 
first moving m_popupFrame to its position (and screen) and then correcting it 
to keep it onscreen.

Hope that helps :-)
Take care have fun
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-FunctionArgumentWidget-popup-on-dualscreen.patch
Type: text/x-patch
Size: 1694 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090328/28cb6f55/attachment.bin 


More information about the Qt-creator-old mailing list