Commit b32198d7 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

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.
parent 7b8b9479
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment