mirror of
https://github.com/ralsina/xrandroll.git
synced 2025-07-22 19:29:37 +00:00
react to clicking on monitor by selecting it
This commit is contained in:
@@ -37,6 +37,7 @@ class MonitorItem(QGraphicsRectItem, QObject):
|
|||||||
def mousePressEvent(self, event):
|
def mousePressEvent(self, event):
|
||||||
self.setCursor(Qt.ClosedHandCursor)
|
self.setCursor(Qt.ClosedHandCursor)
|
||||||
self.orig_pos = self.pos()
|
self.orig_pos = self.pos()
|
||||||
|
self.window.ui.screenCombo.setCurrentText(self.name)
|
||||||
|
|
||||||
def mouseReleaseEvent(self, event):
|
def mouseReleaseEvent(self, event):
|
||||||
self.setCursor(Qt.OpenHandCursor)
|
self.setCursor(Qt.OpenHandCursor)
|
||||||
|
Reference in New Issue
Block a user