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:']
|
||||
return name_map
|
||||
|
||||
|
||||
_index = None
|
||||
|
||||
|
||||
@ -624,6 +625,7 @@ class CharView(QListView):
|
||||
self._model = CharModel(self)
|
||||
self.setModel(self._model)
|
||||
self.delegate = CharDelegate(self)
|
||||
self.setResizeMode(self.Adjust)
|
||||
self.setItemDelegate(self.delegate)
|
||||
self.setFlow(self.LeftToRight)
|
||||
self.setWrapping(True)
|
||||
@ -847,8 +849,10 @@ class CharSelect(Dialog):
|
||||
if hasattr(w, 'no_popup'):
|
||||
w.no_popup = oval
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = QApplication([])
|
||||
from calibre.gui2 import Application
|
||||
app = Application([])
|
||||
w = CharSelect()
|
||||
w.initialize()
|
||||
w.show()
|
||||
|
Loading…
x
Reference in New Issue
Block a user