Browse Source
Merge pull request #2405 from lioncash/qt
CMakeLists: Define QT_USE_QSTRINGBUILDER for the Qt target
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
1 deletions
-
src/yuzu/CMakeLists.txt
-
src/yuzu/game_list_p.h
|
|
|
@ -151,6 +151,12 @@ target_link_libraries(yuzu PRIVATE common core input_common video_core) |
|
|
|
target_link_libraries(yuzu PRIVATE Boost::boost glad Qt5::OpenGL Qt5::Widgets) |
|
|
|
target_link_libraries(yuzu PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) |
|
|
|
|
|
|
|
target_compile_definitions(yuzu PRIVATE |
|
|
|
# Use QStringBuilder for string concatenation to reduce |
|
|
|
# the overall number of temporary strings created. |
|
|
|
-DQT_USE_QSTRINGBUILDER |
|
|
|
) |
|
|
|
|
|
|
|
if (YUZU_ENABLE_COMPATIBILITY_REPORTING) |
|
|
|
target_compile_definitions(yuzu PRIVATE -DYUZU_ENABLE_COMPATIBILITY_REPORTING) |
|
|
|
endif() |
|
|
|
|
|
|
|
@ -95,7 +95,7 @@ public: |
|
|
|
if (row2.isEmpty()) |
|
|
|
return row1; |
|
|
|
|
|
|
|
return row1 + "\n " + row2; |
|
|
|
return QString(row1 + "\n " + row2); |
|
|
|
} |
|
|
|
|
|
|
|
return GameListItem::data(role); |
|
|
|
|