Changed the blur thing with a simple label
It was a bit buggy and was not blurring all the widgets, or not reverting the blur properly. Probably best to just show a label instead. Still, the proper solution would probably be to do the processing in a separate thread.
This commit is contained in:
parent
76cdfe7d06
commit
7acc0d19d0
@ -1,7 +1,7 @@
|
||||
2.2
|
||||
- Added again make install target
|
||||
- Ctrl+C in the terminal will terminate the GUI
|
||||
- Blurs UI while processing
|
||||
- UI indicates ongoing processing with a label
|
||||
- Added new optimization
|
||||
|
||||
2.1
|
||||
|
@ -151,8 +151,7 @@ class relForm(QtWidgets.QMainWindow):
|
||||
|
||||
def execute(self):
|
||||
|
||||
blur = QtWidgets.QGraphicsBlurEffect()
|
||||
self.setGraphicsEffect(blur)
|
||||
self.ui.stackedWidget.setCurrentIndex(2)
|
||||
QtCore.QCoreApplication.processEvents()
|
||||
|
||||
try:
|
||||
@ -185,7 +184,7 @@ class relForm(QtWidgets.QMainWindow):
|
||||
# Sets the result relation name to none
|
||||
self.ui.txtResult.setText(u"_last%d" % self.qcounter)
|
||||
finally:
|
||||
blur.setBlurRadius(0)
|
||||
self.setMultiline(self.multiline)
|
||||
|
||||
|
||||
def showRelation(self, rel):
|
||||
|
@ -326,6 +326,17 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="processing">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Processing…</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user