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:
Alexey Edelev 2024-07-02 17:20:54 +02:00
parent c90098132c
commit 05e35b256c
6 changed files with 6 additions and 6 deletions

View File

@ -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>();

View File

@ -11,7 +11,7 @@ QT_BEGIN_NAMESPACE
namespace QtProtobuf {
Q_PROTOBUFQTCORETYPES_EXPORT void qRegisterProtobufQtCoreTypes();
Q_PROTOBUFQTCORETYPES_EXPORT void registerProtobufQtCoreTypes();
}

View File

@ -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>();

View File

@ -11,7 +11,7 @@ QT_BEGIN_NAMESPACE
namespace QtProtobuf {
Q_PROTOBUFQTGUITYPES_EXPORT void qRegisterProtobufQtGuiTypes();
Q_PROTOBUFQTGUITYPES_EXPORT void registerProtobufQtGuiTypes();
}

View File

@ -69,7 +69,7 @@ private:
void QtProtobufQtTypesQtCoreTest::initTestCase()
{
QtProtobuf::qRegisterProtobufQtCoreTypes();
QtProtobuf::registerProtobufQtCoreTypes();
}
using namespace qtprotobufnamespace::qttypes::tests;

View File

@ -25,7 +25,7 @@ class QtProtobufQtTypesQtGuiTest : public QObject
private Q_SLOTS:
void initTestCase() {
QtProtobuf::qRegisterProtobufQtGuiTypes();
QtProtobuf::registerProtobufQtGuiTypes();
}
void qRgba64();