mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Comments editor: Use a single line for all three toolbars if they fit
This commit is contained in:
parent
0c77d88404
commit
796034a8ab
@ -27,7 +27,7 @@ from calibre.gui2 import (
|
|||||||
)
|
)
|
||||||
from calibre.gui2.book_details import css
|
from calibre.gui2.book_details import css
|
||||||
from calibre.gui2.widgets import LineEditECM
|
from calibre.gui2.widgets import LineEditECM
|
||||||
from calibre.gui2.widgets2 import to_plain_text
|
from calibre.gui2.widgets2 import to_plain_text, FlowLayout
|
||||||
from calibre.utils.cleantext import clean_xml_chars
|
from calibre.utils.cleantext import clean_xml_chars
|
||||||
from calibre.utils.config import tweaks
|
from calibre.utils.config import tweaks
|
||||||
from calibre.utils.imghdr import what
|
from calibre.utils.imghdr import what
|
||||||
@ -1092,9 +1092,10 @@ class Editor(QWidget): # {{{
|
|||||||
l.setContentsMargins(0, 0, 0, 0)
|
l.setContentsMargins(0, 0, 0, 0)
|
||||||
if one_line_toolbar:
|
if one_line_toolbar:
|
||||||
tb = QHBoxLayout()
|
tb = QHBoxLayout()
|
||||||
l.addLayout(tb)
|
|
||||||
else:
|
else:
|
||||||
tb = l
|
tb = FlowLayout()
|
||||||
|
tb.setContentsMargins(0, 0, 0, 0)
|
||||||
|
l.addLayout(tb)
|
||||||
tb.addWidget(self.toolbar1)
|
tb.addWidget(self.toolbar1)
|
||||||
tb.addWidget(self.toolbar2)
|
tb.addWidget(self.toolbar2)
|
||||||
tb.addWidget(self.toolbar3)
|
tb.addWidget(self.toolbar3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user