Fix drawing error on Linux, apprently caused by creation of static global instance of QItemDelegate. Fix due to STS.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23171 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-02-24 00:38:54 +00:00
parent e05e2b6b19
commit 14b7f34818

View File

@ -58,8 +58,6 @@ protected:
}
};
RtlItemDelegate rtlItemDelegate;
class PixmapItemDelegate : public QItemDelegate {
public:
@ -412,7 +410,7 @@ void GuiCompleter::updateModel(Cursor & cur, bool popupUpdate, bool inlineUpdate
// turn the direction of the strings in the popup.
// Qt does not do that itself.
popup()->setItemDelegateForColumn(0, rtl ? &rtlItemDelegate : 0);
popup()->setItemDelegateForColumn(0, rtl ? new RtlItemDelegate : 0);
// set new model
Inset::CompletionList const * list