Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose sendPostedEvents and processEvents #49

Closed
wants to merge 1 commit into from

Conversation

flanfly
Copy link
Contributor

@flanfly flanfly commented Nov 18, 2016

Exposing sendPostedEvents and processEvents allows users of DOtherSide to spin the event loop manually to prevent locking up the application during long running functions in the main thread.

@@ -73,6 +73,14 @@ DOS_API void DOS_CALL dos_qapplication_quit();
/// \note A QApplication should have been already created through dos_qapplication_create()
DOS_API void DOS_CALL dos_qapplication_delete();

/// \brief Calls the QCoreApplication::processEvents() of the current QGuiApplication
/// \note A QApplication should have been already created through dos_qapplication_create()
DOS_API void DOS_CALL dos_qapplication_process_events();
Copy link

@White-Oak White-Oak Nov 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest adding a link to http://doc.qt.io/qt-5/qcoreapplication.html#processEvents in doc comments will help

@flanfly
Copy link
Contributor Author

flanfly commented Nov 18, 2016

Ok, I added some lines from the Qt documentation.

@flanfly flanfly closed this Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants