|
|
|
@ -151,7 +151,12 @@ class WorldRegionsWidget(QScrollArea):
|
|
|
|
|
def trigger_cursor_change(self, event=None): |
|
|
|
|
modifiers = QApplication.keyboardModifiers() |
|
|
|
|
if modifiers == Qt.ControlModifier or (event is not None and event.key() in (16777249, 16777250)): |
|
|
|
|
if self.currently_hovered_region.is_marked: |
|
|
|
|
try: |
|
|
|
|
currently_hovered_region_is_marked = self.currently_hovered_region.is_marked |
|
|
|
|
except AttributeError: |
|
|
|
|
currently_hovered_region_is_marked = None |
|
|
|
|
|
|
|
|
|
if currently_hovered_region_is_marked: |
|
|
|
|
self.setCursor(self.cursor_remove_region) |
|
|
|
|
else: |
|
|
|
|
self.setCursor(self.cursor_add_region) |
|
|
|
|