mirror of https://github.com/qt/qtgrpc.git
Remove the redundant q prefixes from Qt type registration functions
Rename qRegisterProtobufQtCoreTypes to registerProtobufQtCoreTypes and qRegisterProtobufQtGuiTypes to registerProtobufQtGuiTypes, the namespace already points that those are Qt functions. Pick-to: 6.8 Change-Id: Ib5eabc36a8962582dc5792b964af19bbb375c6b5 Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io> Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
This commit is contained in:
parent
c90098132c
commit
05e35b256c
|
|
@ -328,7 +328,7 @@ namespace QtProtobuf {
|
|||
/*!
|
||||
Registers serializers for the Qt::ProtobufQtCoreTypes library.
|
||||
*/
|
||||
void qRegisterProtobufQtCoreTypes() {
|
||||
void registerProtobufQtCoreTypes() {
|
||||
QtProtobufPrivate::registerQtTypeHandler<QUrl, QtProtobufPrivate::QtCore::QUrl>();
|
||||
QtProtobufPrivate::registerQtTypeHandler<QChar, QtProtobufPrivate::QtCore::QChar>();
|
||||
QtProtobufPrivate::registerQtTypeHandler<QUuid, QtProtobufPrivate::QtCore::QUuid>();
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
namespace QtProtobuf {
|
||||
|
||||
Q_PROTOBUFQTCORETYPES_EXPORT void qRegisterProtobufQtCoreTypes();
|
||||
Q_PROTOBUFQTCORETYPES_EXPORT void registerProtobufQtCoreTypes();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ namespace QtProtobuf {
|
|||
/*!
|
||||
Registers serializers for the Qt::ProtobufQtGuiTypes library.
|
||||
*/
|
||||
void qRegisterProtobufQtGuiTypes() {
|
||||
void registerProtobufQtGuiTypes() {
|
||||
QtProtobufPrivate::registerQtTypeHandler<QRgba64, QtProtobufPrivate::QtGui::QRgba64>();
|
||||
QtProtobufPrivate::registerQtTypeHandler<QColor, QtProtobufPrivate::QtGui::QColor>();
|
||||
QtProtobufPrivate::registerQtTypeHandler<QMatrix4x4, QtProtobufPrivate::QtGui::QMatrix4x4>();
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
namespace QtProtobuf {
|
||||
|
||||
Q_PROTOBUFQTGUITYPES_EXPORT void qRegisterProtobufQtGuiTypes();
|
||||
Q_PROTOBUFQTGUITYPES_EXPORT void registerProtobufQtGuiTypes();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ private:
|
|||
|
||||
void QtProtobufQtTypesQtCoreTest::initTestCase()
|
||||
{
|
||||
QtProtobuf::qRegisterProtobufQtCoreTypes();
|
||||
QtProtobuf::registerProtobufQtCoreTypes();
|
||||
}
|
||||
|
||||
using namespace qtprotobufnamespace::qttypes::tests;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class QtProtobufQtTypesQtGuiTest : public QObject
|
|||
|
||||
private Q_SLOTS:
|
||||
void initTestCase() {
|
||||
QtProtobuf::qRegisterProtobufQtGuiTypes();
|
||||
QtProtobuf::registerProtobufQtGuiTypes();
|
||||
}
|
||||
|
||||
void qRgba64();
|
||||
|
|
|
|||
Loading…
Reference in New Issue