mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
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:
parent
e05e2b6b19
commit
14b7f34818
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user