Network chat: Use QStringBuilder

It is a best practice after all

Task-number: QTBUG-108873
Change-Id: I11c23c080f6fe7f124e461affa88279d5def93f9
Reviewed-by: Konrad Kujawa <konrad.kujawa@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Mårten Nordheim 2023-05-23 12:16:19 +02:00
parent 61afc6d109
commit 9db22a63a9
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,10 @@ set_target_properties(network-chat PROPERTIES
MACOSX_BUNDLE TRUE
)
target_compile_definitions(network-chat PRIVATE
QT_USE_QSTRINGBUILDER
)
target_link_libraries(network-chat PRIVATE
Qt6::Core
Qt6::Gui

View File

@ -11,6 +11,7 @@ SOURCES = chatdialog.cpp \
server.cpp
FORMS = chatdialog.ui
QT += network widgets
DEFINES += QT_USE_QSTRINGBUILDER
requires(qtConfig(udpsocket))
requires(qtConfig(listwidget))