Replace QDesktopWidget.numScreens() with screenCount()

This commit is contained in:
Kovid Goyal 2014-04-22 14:38:47 +05:30
parent fc70edee09
commit 95d831403d

View File

@ -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()