mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-01 11:28:10 +03:00
Make setColumnMinimumWidth only work on Windows
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -98,11 +98,12 @@ class UpdateSubsInfoMBox(AppQMessageBox):
|
||||
return text
|
||||
|
||||
def setColumnMinWidth(self):
|
||||
self.findChild(QGridLayout).setColumnMinimumWidth(
|
||||
2,
|
||||
max((len(row) + 10) for row in self.text().split('\n'))
|
||||
* self.fontMetrics().averageCharWidth(),
|
||||
)
|
||||
if PLATFORM == 'Windows':
|
||||
self.findChild(QGridLayout).setColumnMinimumWidth(
|
||||
2,
|
||||
max((len(row) + 10) for row in self.text().split('\n'))
|
||||
* self.fontMetrics().averageCharWidth(),
|
||||
)
|
||||
|
||||
def retranslate(self):
|
||||
self.setWindowTitle(_(self.windowTitle()))
|
||||
|
||||
Reference in New Issue
Block a user