diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-02-17 15:11:56 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-02-17 15:11:56 +0100 |
commit | b32198d73645be42924cd0468b780b022bcda08a (patch) | |
tree | 917be14ab3d041af3f9e88455b2d86a957fcde82 /src/plugins/cpptools/cppcodecompletion.cpp | |
parent | 7b8b947946877eecd6dd306c59abed0c307acdca (diff) | |
download | qt-creator-b32198d73645be42924cd0468b780b022bcda08a.tar.gz |
Fix size problems on reusing function argument widget
We now hide the parent QFrame while updating the label to work around
the problem where the it wouldn't shrink the widget.
Diffstat (limited to 'src/plugins/cpptools/cppcodecompletion.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodecompletion.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppcodecompletion.cpp b/src/plugins/cpptools/cppcodecompletion.cpp index 81cc4741b5..233398026f 100644 --- a/src/plugins/cpptools/cppcodecompletion.cpp +++ b/src/plugins/cpptools/cppcodecompletion.cpp @@ -217,6 +217,8 @@ FunctionArgumentWidget::FunctionArgumentWidget() void FunctionArgumentWidget::showFunctionHint(Function *functionSymbol, const LookupContext &context) { + m_popupFrame->hide(); + m_item = functionSymbol; m_context = context; m_startpos = m_editor->position(); @@ -230,7 +232,7 @@ void FunctionArgumentWidget::showFunctionHint(Function *functionSymbol, m_popupFrame->move(pos); m_popupFrame->show(); - QCoreApplication::instance()->installEventFilter(this); + qApp->installEventFilter(this); } void FunctionArgumentWidget::update() |