mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Replace QDesktopWidget.numScreens() with screenCount()
This commit is contained in:
parent
fc70edee09
commit
95d831403d
@ -254,7 +254,7 @@ if iswindows:
|
||||
|
||||
def available_heights():
|
||||
desktop = QCoreApplication.instance().desktop()
|
||||
return map(lambda x: x.height(), map(desktop.availableGeometry, range(desktop.numScreens())))
|
||||
return map(lambda x: x.height(), map(desktop.availableGeometry, range(desktop.screenCount())))
|
||||
|
||||
def available_height():
|
||||
desktop = QCoreApplication.instance().desktop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user