Skip to content

Commit

Permalink
Fixed|Client|UI|LineEditWidget: Update geometry when autocompletion ends
Browse files Browse the repository at this point in the history
The underline must be removed even if the cursor doesn't move.
  • Loading branch information
skyjake committed Aug 6, 2013
1 parent 94b0032 commit 48dce2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions doomsday/client/include/ui/widgets/lineeditwidget.h
Expand Up @@ -69,6 +69,7 @@ class LineEditWidget : public GuiWidget, public de::shell::AbstractLineEditor
void numberOfLinesChanged(int lineCount);
void cursorMoved();
void contentChanged();
void autoCompletionEnded(bool accepted);

private:
DENG2_PRIVATE(d)
Expand Down
4 changes: 3 additions & 1 deletion doomsday/client/src/ui/widgets/consolecommandwidget.cpp
Expand Up @@ -187,7 +187,9 @@ void ConsoleCommandWidget::autoCompletionBegan(String const &)
}
}

void ConsoleCommandWidget::autoCompletionEnded(bool /*accepted*/)
void ConsoleCommandWidget::autoCompletionEnded(bool accepted)
{
LineEditWidget::autoCompletionEnded(accepted);

d->popup->close();
}
6 changes: 6 additions & 0 deletions doomsday/client/src/ui/widgets/lineeditwidget.cpp
Expand Up @@ -452,3 +452,9 @@ void LineEditWidget::contentChanged()
updateLineWraps(WrapUnlessWrappedAlready);
}
}

void LineEditWidget::autoCompletionEnded(bool)
{
// Make sure the underlining is removed.
requestGeometry();
}

0 comments on commit 48dce2a

Please sign in to comment.