Merge branch 'main' into 2.16

This commit is contained in:
KatKatKateryna
2023-09-08 19:55:08 +01:00
committed by GitHub
5 changed files with 5 additions and 1 deletions
+2
View File
@@ -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
View File
+2 -1
View File
@@ -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):
View File
+1
View File
@@ -2,6 +2,7 @@
from textwrap import wrap
def splitTextIntoLines(text: str = "", number: int= 40) -> str:
#print("__splitTextIntoLines")
#print(text)
msg = ""