summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qmenu_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2020-06-04 19:44:03 +0200
committerMarc Mutz <marc.mutz@kdab.com>2020-06-07 22:43:37 +0200
commitbd465695c306e04d2e91fb1aee03156da7ab86cc (patch)
tree3a58f48a8289d1e45ff256d198ce703df3208084 /src/widgets/widgets/qmenu_p.h
parente0fc998e87dcf4acfb06cc5ff840498e4cbc3f6b (diff)
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>
Diffstat (limited to 'src/widgets/widgets/qmenu_p.h')
0 files changed, 0 insertions, 0 deletions