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.
This commit is contained in:
Thorbjørn Lindeijer
2009-02-17 15:11:56 +01:00
parent 7b8b947946
commit b32198d736

View File

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