Use correct signal naming
This commit is contained in:
@@ -201,10 +201,10 @@ class NIconToggleButton(QToolButton):
|
|||||||
|
|
||||||
class NClickableLabel(QLabel):
|
class NClickableLabel(QLabel):
|
||||||
|
|
||||||
mouseClick = pyqtSignal()
|
mouseClicked = pyqtSignal()
|
||||||
|
|
||||||
def mousePressEvent(self, event: QMouseEvent) -> None:
|
def mousePressEvent(self, event: QMouseEvent) -> None:
|
||||||
"""Capture a left mouse click and emit its signal."""
|
"""Capture a left mouse click and emit its signal."""
|
||||||
if event.button() == QtMouseLeft:
|
if event.button() == QtMouseLeft:
|
||||||
self.mouseClick.emit()
|
self.mouseClicked.emit()
|
||||||
return super().mousePressEvent(event)
|
return super().mousePressEvent(event)
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ class GuiMainStatus(QStatusBar):
|
|||||||
# The Session Clock
|
# The Session Clock
|
||||||
# Set the minimum width so the label doesn't rescale every second
|
# Set the minimum width so the label doesn't rescale every second
|
||||||
self.timeIcon = NClickableLabel(self)
|
self.timeIcon = NClickableLabel(self)
|
||||||
self.timeIcon.mouseClick.connect(self._onClickTimerLabel)
|
self.timeIcon.mouseClicked.connect(self._onClickTimerLabel)
|
||||||
|
|
||||||
self.timeText = NClickableLabel("", self)
|
self.timeText = NClickableLabel("", self)
|
||||||
self.timeText.setToolTip(self.tr("Session Time"))
|
self.timeText.setToolTip(self.tr("Session Time"))
|
||||||
@@ -102,7 +102,7 @@ class GuiMainStatus(QStatusBar):
|
|||||||
self.timeIcon.setContentsMargins(0, 0, 0, 0)
|
self.timeIcon.setContentsMargins(0, 0, 0, 0)
|
||||||
self.timeText.setContentsMargins(0, 0, 0, 0)
|
self.timeText.setContentsMargins(0, 0, 0, 0)
|
||||||
self.timeText.setVisible(CONFIG.showSessionTime)
|
self.timeText.setVisible(CONFIG.showSessionTime)
|
||||||
self.timeText.mouseClick.connect(self._onClickTimerLabel)
|
self.timeText.mouseClicked.connect(self._onClickTimerLabel)
|
||||||
self.addPermanentWidget(self.timeIcon)
|
self.addPermanentWidget(self.timeIcon)
|
||||||
self.addPermanentWidget(self.timeText)
|
self.addPermanentWidget(self.timeText)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user