Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
Marc Mutz bd465695c3 QWindowsFontDatabase: replace a QPair with a dedicated struct
Pairs are easy to use, but they have no semantics attached: Two
QPair<QString, QString> compare equal, e.g., even though one is used
as a FontAndStyle and the other as, say, a type/subtype. It also
carries no information for the reader of the code.

So, write a minimal struct with equality and qHash() instead.

Change-Id: I9514c9b7d6c2cc6a4831f9ca83ca2ee466d91553
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2020-06-07 22:43:37 +02:00
bin
cmake
coin
config.tests
dist
doc
examples
lib
mkspecs
qmake
src QWindowsFontDatabase: replace a QPair with a dedicated struct 2020-06-07 22:43:37 +02:00
tests
util
.cmake.conf
.gitattributes
.gitignore
.qmake.conf
.tag
CMakeLists.txt
INSTALL
LICENSE.FDL
LICENSE.GPL2
LICENSE.GPL3
LICENSE.GPL3-EXCEPT
LICENSE.LGPL3
LICENSE.LGPLv3
LICENSE.QT-LICENSE-AGREEMENT
config_help.txt
configure
configure.bat
configure.cmake
configure.json
configure.pri
dependencies.yaml
header.BSD
header.COMM
header.FDL
header.GPL
header.GPL-EXCEPT
header.LGPL
header.LGPL-NOGPL2
header.LGPL-ONLY
header.LGPL3
header.LGPL3-COMM
header.MIT
qtbase.pro
sync.profile