Merge master into api_changes
authorKent Hansen <kent.hansen@nokia.com>
Mon, 19 Mar 2012 09:03:48 +0000 (10:03 +0100)
committerKent Hansen <kent.hansen@nokia.com>
Mon, 19 Mar 2012 09:03:48 +0000 (10:03 +0100)
Conflicts:
src/corelib/tools/qvector.h
tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp

Change-Id: I877256e95f3788e617437f4e9661a88047f38cd6

19 files changed:
1  2 
dist/changes-5.0.0
qmake/Makefile.win32
src/corelib/tools/qbytearray.cpp
src/corelib/tools/qbytearray.h
src/corelib/tools/qhash.cpp
src/corelib/tools/qhash.h
src/corelib/tools/qlinkedlist.cpp
src/corelib/tools/qlinkedlist.h
src/corelib/tools/qlist.cpp
src/corelib/tools/qlist.h
src/corelib/tools/qmap.cpp
src/corelib/tools/qmap.h
src/corelib/tools/qstring.cpp
src/corelib/tools/qstring.h
src/corelib/tools/qvector.cpp
src/corelib/tools/qvector.h
src/gui/kernel/qwindowsysteminterface_qpa.h
src/testlib/qtestcase.cpp
tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -246,12 -243,14 +246,14 @@@ public
      typedef T* iterator;
      typedef const T* const_iterator;
  #endif
 -    inline iterator begin() { detach(); return p->array; }
 -    inline const_iterator begin() const { return p->array; }
 -    inline const_iterator cbegin() const { return p->array; }
 -    inline const_iterator constBegin() const { return p->array; }
 -    inline iterator end() { detach(); return p->array + d->size; }
 -    inline const_iterator end() const { return p->array + d->size; }
 -    inline const_iterator cend() const { return p->array + d->size; }
 -    inline const_iterator constEnd() const { return p->array + d->size; }
 +    inline iterator begin() { detach(); return d->begin(); }
 +    inline const_iterator begin() const { return d->begin(); }
++    inline const_iterator cbegin() const { return d->begin(); }
 +    inline const_iterator constBegin() const { return d->begin(); }
 +    inline iterator end() { detach(); return d->end(); }
 +    inline const_iterator end() const { return d->end(); }
++    inline const_iterator cend() const { return d->end(); }
 +    inline const_iterator constEnd() const { return d->end(); }
      iterator insert(iterator before, int n, const T &x);
      inline iterator insert(iterator before, const T &x) { return insert(before, 1, x); }
      iterator erase(iterator begin, iterator end);
Simple merge
@@@ -660,13 -629,19 +660,21 @@@ FOR_EACH_CORE_METATYPE(RETURN_CREATE_CO
  void tst_QMetaType::sizeOf_data()
  {
      QTest::addColumn<QMetaType::Type>("type");
-     QTest::addColumn<int>("size");
+     QTest::addColumn<size_t>("size");
 +
-     QTest::newRow("QMetaType::UnknownType") << QMetaType::UnknownType << 0;
++    QTest::newRow("QMetaType::UnknownType") << QMetaType::UnknownType << size_t(0);
  #define ADD_METATYPE_TEST_ROW(MetaTypeName, MetaTypeId, RealType) \
-     QTest::newRow(#RealType) << QMetaType::MetaTypeName << int(QTypeInfo<RealType>::sizeOf);
+     QTest::newRow(#RealType) << QMetaType::MetaTypeName << size_t(QTypeInfo<RealType>::sizeOf);
  FOR_EACH_CORE_METATYPE(ADD_METATYPE_TEST_ROW)
  #undef ADD_METATYPE_TEST_ROW
+     QTest::newRow("Whity<double>") << static_cast<QMetaType::Type>(::qMetaTypeId<Whity<double> >()) << sizeof(Whity<double>);
+ QTest::newRow("Whity<int>") << static_cast<QMetaType::Type>(::qMetaTypeId<Whity<int> >()) << sizeof(Whity<int>);
+     QTest::newRow("Testspace::Foo") << static_cast<QMetaType::Type>(::qMetaTypeId<TestSpace::Foo>()) << sizeof(TestSpace::Foo);
+     QTest::newRow("-1") << QMetaType::Type(-1) << size_t(0);
+     QTest::newRow("-124125534") << QMetaType::Type(-124125534) << size_t(0);
+     QTest::newRow("124125534") << QMetaType::Type(124125534) << size_t(0);
  }
  
  void tst_QMetaType::sizeOf()