Move the createUnixEventDispatcher() function to a namespace

Easier than renaming it with a "qt_" prefix everywhere it's used
(it's in a lot of plugins).

Change-Id: Ie01831ddac5446fdbdeefffd15468918f3bc2238
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
bb10
Thiago Macieira 2018-07-31 11:57:43 -07:00
parent d8d0325394
commit 98dda3f5ac
2 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,7 @@
QT_BEGIN_NAMESPACE
class QAbstractEventDispatcher *createUnixEventDispatcher()
class QAbstractEventDispatcher *QtGenericUnixDispatcher::createUnixEventDispatcher()
{
#if !defined(QT_NO_GLIB) && !defined(Q_OS_WIN)
if (qEnvironmentVariableIsEmpty("QT_NO_GLIB") && QEventDispatcherGlib::versionSupported())

View File

@ -56,7 +56,10 @@
QT_BEGIN_NAMESPACE
class QAbstractEventDispatcher;
namespace QtGenericUnixDispatcher {
QAbstractEventDispatcher* createUnixEventDispatcher();
}
using QtGenericUnixDispatcher::createUnixEventDispatcher;
QT_END_NAMESPACE