mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix insert character dialog not reflowing characters on resize
This commit is contained in:
parent
ad2f3c6518
commit
1b8d0db042
@ -63,6 +63,7 @@ def load_search_index():
|
|||||||
del name_map['calibre-nm-version:']
|
del name_map['calibre-nm-version:']
|
||||||
return name_map
|
return name_map
|
||||||
|
|
||||||
|
|
||||||
_index = None
|
_index = None
|
||||||
|
|
||||||
|
|
||||||
@ -624,6 +625,7 @@ class CharView(QListView):
|
|||||||
self._model = CharModel(self)
|
self._model = CharModel(self)
|
||||||
self.setModel(self._model)
|
self.setModel(self._model)
|
||||||
self.delegate = CharDelegate(self)
|
self.delegate = CharDelegate(self)
|
||||||
|
self.setResizeMode(self.Adjust)
|
||||||
self.setItemDelegate(self.delegate)
|
self.setItemDelegate(self.delegate)
|
||||||
self.setFlow(self.LeftToRight)
|
self.setFlow(self.LeftToRight)
|
||||||
self.setWrapping(True)
|
self.setWrapping(True)
|
||||||
@ -847,8 +849,10 @@ class CharSelect(Dialog):
|
|||||||
if hasattr(w, 'no_popup'):
|
if hasattr(w, 'no_popup'):
|
||||||
w.no_popup = oval
|
w.no_popup = oval
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = QApplication([])
|
from calibre.gui2 import Application
|
||||||
|
app = Application([])
|
||||||
w = CharSelect()
|
w = CharSelect()
|
||||||
w.initialize()
|
w.initialize()
|
||||||
w.show()
|
w.show()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user