From d0de0f53ef0fe1dc9a2d9aa3244e629422bf90a9 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Tue, 26 Feb 2008 19:20:23 +0000 Subject: [PATCH] * set the column with in the popup before showing it. Then it even works. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23261 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiCompleter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiCompleter.cpp b/src/frontends/qt4/GuiCompleter.cpp index df061cb940..a6de4f9729 100644 --- a/src/frontends/qt4/GuiCompleter.cpp +++ b/src/frontends/qt4/GuiCompleter.cpp @@ -378,9 +378,10 @@ void GuiCompleter::updatePopup(Cursor & cur) rect = QRect(x, y - dim.ascent() - 3, 200, dim.height() + 6); // show/update popup - complete(rect); QTreeView * p = static_cast(popup()); p->setColumnWidth(0, popup()->width() - 22 - p->verticalScrollBar()->width()); + + complete(rect); }