forked from openlp/openlp
Minor fixes
This commit is contained in:
parent
70ffa5b988
commit
2b9f09b32a
@ -224,8 +224,10 @@ class ScreenList(object):
|
|||||||
|
|
||||||
def which_screen(self, window):
|
def which_screen(self, window):
|
||||||
"""
|
"""
|
||||||
Return the Screen number that the centre of the passed window is in
|
Return the screen number that the centre of the passed window is in.
|
||||||
Window is a QWidget
|
|
||||||
|
``window``
|
||||||
|
A QWidget we are finding the location of.
|
||||||
"""
|
"""
|
||||||
x = window.x() + (window.width() / 2)
|
x = window.x() + (window.width() / 2)
|
||||||
y = window.y() + (window.height() / 2)
|
y = window.y() + (window.height() / 2)
|
||||||
@ -234,7 +236,6 @@ class ScreenList(object):
|
|||||||
if x >= size.x() and x <= (size.x() + size.width()) \
|
if x >= size.x() and x <= (size.x() + size.width()) \
|
||||||
and y >= size.y() and y <= (size.y() + size.height()):
|
and y >= size.y() and y <= (size.y() + size.height()):
|
||||||
return screen[u'number']
|
return screen[u'number']
|
||||||
return None
|
|
||||||
|
|
||||||
def _load_screen_settings(self):
|
def _load_screen_settings(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user