From 8aff3d0bed78c64496178480af0545ec206e9938 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sun, 28 Apr 2013 21:23:53 -0700 Subject: Add a pair of constructor/assignment function pairs to QPair To allow copying one QPair of two types to a QPair of two different types. Change-Id: Ie7aa84cf5a361be6b7d242517578172c35bcacfd Reviewed-by: Olivier Goffart --- src/corelib/tools/qpair.qdoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/corelib/tools/qpair.qdoc') diff --git a/src/corelib/tools/qpair.qdoc b/src/corelib/tools/qpair.qdoc index b0caf1aaf0..dd3df8c464 100644 --- a/src/corelib/tools/qpair.qdoc +++ b/src/corelib/tools/qpair.qdoc @@ -96,6 +96,26 @@ \sa qMakePair() */ +/*! + \fn QPair::QPair(const QPair &p) + \since 5.2 + + Constructs a pair from the other pair \a p, of types TT1 and TT2. This + constructor will fail if \c first cannot be initialized from \c p.first or + if \c second cannot be initialized from \c p.second. + + \sa qMakePair() +*/ + +/*! + \fn QPair &QPair::operator=(const QPair &p) + \since 5.2 + + Copies the pair \a p onto this pair. + + \sa qMakePair() +*/ + /*! \fn bool operator==(const QPair &p1, const QPair &p2) \relates QPair -- cgit v1.2.3