qtutils: add text_width() and text_size() helper functions
commit5a33a788c72072db2cb05b8ae3e11f2b21e5778b
authorDavid Aguilar <davvid@gmail.com>
Sun, 7 Jan 2024 08:05:03 +0000 (7 00:05 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sun, 7 Jan 2024 08:05:03 +0000 (7 00:05 -0800)
tree9c8fa032ab0aaff3177bf7c944b2fdf4735d8b22
parent69a1f252c9fb288909d870195a78bd07826b85ab
qtutils: add text_width() and text_size() helper functions

Use a utility function to calculate sizes using QFontMetrics.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/qtutils.py
cola/widgets/browse.py
cola/widgets/commitmsg.py
cola/widgets/diff.py
cola/widgets/editremotes.py
cola/widgets/main.py
cola/widgets/standard.py
cola/widgets/text.py