Merge branch 'main' into 2.16
This commit is contained in:
@@ -18,6 +18,7 @@ from specklepy_qt_ui.qt_ui.widget_report import ReportDialog
|
||||
|
||||
class LogWidget(QWidget):
|
||||
|
||||
dataStorage = None
|
||||
msgs: List[str] = []
|
||||
used_btns: List[int] = []
|
||||
btns: List[QPushButton]
|
||||
@@ -93,6 +94,7 @@ class LogWidget(QWidget):
|
||||
blue: bool = obj["blue"]
|
||||
report: bool = obj["report"]
|
||||
|
||||
|
||||
self.setGeometry(0, 0, self.parentWidget.frameSize().width(), self.parentWidget.frameSize().height())
|
||||
|
||||
# find index of the first unused button
|
||||
|
||||
@@ -138,6 +138,7 @@ class SpeckleQGISDialog(QtWidgets.QDockWidget, FORM_CLASS):
|
||||
# add widgets that will only show on event trigger
|
||||
logWidget = LogWidget(parent=self)
|
||||
logWidget.dataStorage = self.dataStorage
|
||||
|
||||
self.layout().addWidget(logWidget)
|
||||
self.msgLog = logWidget
|
||||
self.msgLog.dockwidget = self
|
||||
@@ -736,7 +737,7 @@ class SpeckleQGISDialog(QtWidgets.QDockWidget, FORM_CLASS):
|
||||
|
||||
except Exception as e:
|
||||
logToUser(e, level = 2, func = inspect.stack()[0][3], plugin=self)
|
||||
print(str(e) + "::" + str(inspect.stack()[0][3]))
|
||||
#print(str(e) + "::" + str(inspect.stack()[0][3]))
|
||||
return
|
||||
|
||||
def onStreamRemoveButtonClicked(self, plugin):
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
from textwrap import wrap
|
||||
|
||||
def splitTextIntoLines(text: str = "", number: int= 40) -> str:
|
||||
|
||||
#print("__splitTextIntoLines")
|
||||
#print(text)
|
||||
msg = ""
|
||||
|
||||
Reference in New Issue
Block a user