From 75d1d2a91376c3338510cf1e5fa10feaf8df5785 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 31 Aug 2020 13:39:48 +0200 Subject: Get rid of hasPendingEvents() and flush() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They are unused. Change-Id: I77383f2be45551401ed9c2f88285511134cc8b0d Reviewed-by: Tor Arne Vestbø --- src/gui/platform/unix/qunixeventdispatcher.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/gui/platform/unix/qunixeventdispatcher.cpp') diff --git a/src/gui/platform/unix/qunixeventdispatcher.cpp b/src/gui/platform/unix/qunixeventdispatcher.cpp index 44258538ec7..9262ee7b2ff 100644 --- a/src/gui/platform/unix/qunixeventdispatcher.cpp +++ b/src/gui/platform/unix/qunixeventdispatcher.cpp @@ -64,16 +64,4 @@ bool QUnixEventDispatcherQPA::processEvents(QEventLoop::ProcessEventsFlags flags return QWindowSystemInterface::sendWindowSystemEvents(flags) || didSendEvents; } -bool QUnixEventDispatcherQPA::hasPendingEvents() -{ - extern uint qGlobalPostedEventsCount(); // from qapplication.cpp - return qGlobalPostedEventsCount() || QWindowSystemInterface::windowSystemEventsQueued(); -} - -void QUnixEventDispatcherQPA::flush() -{ - if(qApp) - qApp->sendPostedEvents(); -} - QT_END_NAMESPACE -- cgit v1.2.3