- added a default properties tab which will hold a set of information's about the application

This commit is contained in:
Marius Stanciu
2020-10-23 18:46:55 +03:00
committed by Marius
parent 55b4fbc3d8
commit 427118c495
17 changed files with 1077 additions and 918 deletions

View File

@@ -219,12 +219,12 @@ class FlatCAMObj(QtCore.QObject):
# it seems that the takewidget() does generate a focus out event for the QDoubleSpinbox ...
# and reconnect after the takeWidget() is done
# self.ui.scale_entry.returnPressed.disconnect(self.on_scale_button_click)
self.app.ui.selected_scroll_area.takeWidget()
self.app.ui.properties_scroll_area.takeWidget()
# self.ui.scale_entry.returnPressed.connect(self.on_scale_button_click)
except Exception as e:
self.app.log.debug("FlatCAMObj.build_ui() --> Nothing to remove: %s" % str(e))
self.app.ui.selected_scroll_area.setWidget(self.ui)
self.app.ui.properties_scroll_area.setWidget(self.ui)
# self.ui.setMinimumWidth(100)
# self.ui.setMaximumWidth(self.app.ui.properties_tab.sizeHint().width())

View File

@@ -967,7 +967,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
# log.debug("on_list_selection_change(): Index Error (Nothing selected?)")
self.app.inform.emit('')
try:
self.app.ui.selected_scroll_area.takeWidget()
self.app.ui.properties_scroll_area.takeWidget()
except Exception as e:
log.debug("Nothing to remove. %s" % str(e))