mattrussmill / qcvTouchUp

Simple image viewer and editor for photographs - OpenCV and Qt Widgets application
GNU General Public License v3.0
5 stars 1 forks source link

Work Event Loop #18

Closed mattrussmill closed 6 years ago

mattrussmill commented 6 years ago

Remove the WorkEventLoop worker thread event loop controller. It is only being used as a portal sending slots between the mainwindow and the worker thread. Eliminate this extraneous code and use mainwindow (the communicating object) as the thread controller.

See: https://doc.qt.io/qt-5.10/qthread.html

mattrussmill commented 6 years ago

WorkerEventLoop was removed from the project including all SIGNAL to SIGNAL connections (bad programming practice). The MainWindow class now operates as the worker thread event loop controller. Since this is the class that interfaces with the worker thread, it is appropriate for the controller to reside here. The application now correctly follows Qt's QThread event loop model.