Set row padding in preferences
This commit is contained in:
parent
17d88ca8fe
commit
734960e0f3
@ -93,6 +93,7 @@ class Config(object):
|
|||||||
REPLACE_FILES_DEFAULT_SOURCE = "/home/kae/music/Singles/tmp"
|
REPLACE_FILES_DEFAULT_SOURCE = "/home/kae/music/Singles/tmp"
|
||||||
RETURN_KEY_DEBOUNCE_MS = 1000
|
RETURN_KEY_DEBOUNCE_MS = 1000
|
||||||
ROOT = os.environ.get("ROOT") or "/home/kae/music"
|
ROOT = os.environ.get("ROOT") or "/home/kae/music"
|
||||||
|
ROW_PADDING = 4
|
||||||
ROWS_FROM_ZERO = True
|
ROWS_FROM_ZERO = True
|
||||||
SCROLL_TOP_MARGIN = 3
|
SCROLL_TOP_MARGIN = 3
|
||||||
SECTION_ENDINGS = ("-", "+-", "-+")
|
SECTION_ENDINGS = ("-", "+-", "-+")
|
||||||
|
|||||||
@ -212,7 +212,7 @@ class PlaylistDelegate(QStyledItemDelegate):
|
|||||||
doc = QTextDocument()
|
doc = QTextDocument()
|
||||||
doc.setTextWidth(option.rect.width())
|
doc.setTextWidth(option.rect.width())
|
||||||
doc.setDefaultFont(option.font)
|
doc.setDefaultFont(option.font)
|
||||||
doc.setDocumentMargin(0)
|
doc.setDocumentMargin(Config.ROW_PADDING)
|
||||||
doc.setHtml(option.text)
|
doc.setHtml(option.text)
|
||||||
|
|
||||||
# For debugging +++
|
# For debugging +++
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user