- added icon in status bar for HUD; clicking on it will toggle the HUD (heads up display)

This commit is contained in:
Marius Stanciu
2020-05-18 23:35:33 +03:00
committed by Marius
parent 49eb883cb1
commit da81fb89b8
4 changed files with 23 additions and 0 deletions

View File

@@ -1519,6 +1519,11 @@ class MainGUI(QtWidgets.QMainWindow):
self.snap_toolbar.setMaximumHeight(24)
self.infobar.addWidget(self.snap_toolbar)
self.hud_label = FCLabel("H")
self.hud_label.setToolTip(_("HUD (Heads up display)"))
self.hud_label.setMargin(2)
self.infobar.addWidget(self.hud_label)
self.wplace_label = FCLabel("A4")
self.wplace_label.setMargin(2)
self.infobar.addWidget(self.wplace_label)
@@ -1642,6 +1647,7 @@ class MainGUI(QtWidgets.QMainWindow):
self.clear_btn.clicked.connect(self.on_gui_clear)
self.wplace_label.clicked.connect(self.app.on_workspace_toggle)
self.hud_label.clicked.connect(self.app.on_toggle_hud)
# to be used in the future
# self.plot_tab_area.tab_attached.connect(lambda x: print(x))