Keep completion popup on the screen

Pop it upwards when it would otherwise go below the screen and shift it
to the left when it would otherwise exit the screen on the right.
This commit is contained in:
Thorbjørn Lindeijer
2008-12-18 16:56:43 +01:00
parent 6522b4b5a2
commit 719894044d
3 changed files with 26 additions and 14 deletions

View File

@@ -74,7 +74,7 @@ private slots:
void completionActivated(const QModelIndex &index);
private:
void updateSize();
void updatePositionAndSize(int startPos);
QPointer<QFrame> m_popupFrame;
bool m_blockFocusOut;