- made sure that clicking the text in the InfoBar will also toggle the Tcl Shell display as is the click on the Infobar itself

This commit is contained in:
Marius Stanciu
2022-05-09 17:09:53 +03:00
parent a5770d44b5
commit 9e2ce70b42
2 changed files with 6 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ CHANGELOG for FlatCAM Evo beta
- fixed an issue in the Paint Plugin where some polygons are discarded in a Geometry object made out of an imported SVG - fixed an issue in the Paint Plugin where some polygons are discarded in a Geometry object made out of an imported SVG
- fixed an issue in the SVG parser where when parsing a path and getting multiple polygons will generate an invalid compound polygon (the polygons other than the first are seen as interiors even if they are not inside the first) - fixed an issue in the SVG parser where when parsing a path and getting multiple polygons will generate an invalid compound polygon (the polygons other than the first are seen as interiors even if they are not inside the first)
- made sure that clicking the text in the InfoBar will also toggle the Tcl Shell display as is the click on the Infobar itself
6.05.2022 6.05.2022

View File

@@ -5561,7 +5561,7 @@ class AppInfoBar(QtWidgets.QWidget):
# for the usage of this label as a clickable label, to know that current state # for the usage of this label as a clickable label, to know that current state
self.clicked_state = False self.clicked_state = False
self.icon = FCLabel(self) self.icon = FCLabel(parent=self)
self.icon.setGeometry(0, 0, 12, 12) self.icon.setGeometry(0, 0, 12, 12)
self.pmap = QtGui.QPixmap(self.app.resource_location + '/graylight12.png') self.pmap = QtGui.QPixmap(self.app.resource_location + '/graylight12.png')
self.icon.setPixmap(self.pmap) self.icon.setPixmap(self.pmap)
@@ -5580,13 +5580,16 @@ class AppInfoBar(QtWidgets.QWidget):
self.blue_pamap = QtGui.QPixmap(self.app.resource_location + '/bluelight12.png') self.blue_pamap = QtGui.QPixmap(self.app.resource_location + '/bluelight12.png')
self.gray_pmap = QtGui.QPixmap(self.app.resource_location + '/graylight12.png') self.gray_pmap = QtGui.QPixmap(self.app.resource_location + '/graylight12.png')
self.text = FCLabel(self) self.text = FCLabel(parent=self)
self.text.setText(_("Application started ...")) self.text.setText(_("Application started ..."))
self.text.setToolTip(_("Hello!")) self.text.setToolTip(_("Hello!"))
layout.addWidget(self.text) layout.addWidget(self.text)
layout.addStretch() layout.addStretch()
# Signals
self.text.clicked.connect(lambda x: self.clicked.emit(x))
def mousePressEvent(self, event): def mousePressEvent(self, event):
if event.button() == Qt.MouseButton.LeftButton: if event.button() == Qt.MouseButton.LeftButton:
self.clicked_state = not self.clicked_state self.clicked_state = not self.clicked_state