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
|
2.2
|
||||||
- Added again make install target
|
- Added again make install target
|
||||||
- Ctrl+C in the terminal will terminate the GUI
|
- Ctrl+C in the terminal will terminate the GUI
|
||||||
- Blurs UI while processing
|
- UI indicates ongoing processing with a label
|
||||||
- Added new optimization
|
- Added new optimization
|
||||||
|
|
||||||
2.1
|
2.1
|
||||||
|
@ -151,8 +151,7 @@ class relForm(QtWidgets.QMainWindow):
|
|||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
|
|
||||||
blur = QtWidgets.QGraphicsBlurEffect()
|
self.ui.stackedWidget.setCurrentIndex(2)
|
||||||
self.setGraphicsEffect(blur)
|
|
||||||
QtCore.QCoreApplication.processEvents()
|
QtCore.QCoreApplication.processEvents()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -185,7 +184,7 @@ class relForm(QtWidgets.QMainWindow):
|
|||||||
# Sets the result relation name to none
|
# Sets the result relation name to none
|
||||||
self.ui.txtResult.setText(u"_last%d" % self.qcounter)
|
self.ui.txtResult.setText(u"_last%d" % self.qcounter)
|
||||||
finally:
|
finally:
|
||||||
blur.setBlurRadius(0)
|
self.setMultiline(self.multiline)
|
||||||
|
|
||||||
|
|
||||||
def showRelation(self, rel):
|
def showRelation(self, rel):
|
||||||
|
@ -326,6 +326,17 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</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>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user