* 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
This commit is contained in:
Stefan Schimanski 2008-02-26 19:20:23 +00:00
parent 249e6b7ac0
commit d0de0f53ef

View File

@ -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<QTreeView *>(popup());
p->setColumnWidth(0, popup()->width() - 22 - p->verticalScrollBar()->width());
complete(rect);
}