Make QList an alias to QVector
This is almost 100% source compatible with Qt 5. Exceptions are * Stability of references for large or non movable types * taking a PMF for types that are now overloaded with r-value references in QVector * The missing prepend optimization in QVector (that is still planned to come for Qt 6) Change-Id: I96d44553304dd623def9c70d6fea8fa2fb0373b0 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
1299a2330a
commit
5357231c0a
@ -29,7 +29,7 @@ QOBJS = \
|
||||
quuid.o \
|
||||
qarraydata.o qbitarray.o qbytearray.o qbytearraylist.o qbytearraymatcher.o \
|
||||
qcalendar.o qgregoriancalendar.o qromancalendar.o \
|
||||
qcryptographichash.o qdatetime.o qhash.o qlist.o \
|
||||
qcryptographichash.o qdatetime.o qhash.o \
|
||||
qlocale.o qlocale_tools.o qmap.o qregexp.o qringbuffer.o \
|
||||
qstringbuilder.o qstring.o qstringlist.o qversionnumber.o \
|
||||
qvsnprintf.o qxmlstream.o qxmlutils.o \
|
||||
@ -125,7 +125,6 @@ DEPEND_SRC = \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qbitarray.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qcryptographichash.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qhash.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qlist.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qmap.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qringbuffer.cpp \
|
||||
$(SOURCE_PATH)/src/corelib/tools/qversionnumber.cpp \
|
||||
@ -371,9 +370,6 @@ qversionnumber.o: $(SOURCE_PATH)/src/corelib/tools/qversionnumber.cpp
|
||||
qbuffer.o: $(SOURCE_PATH)/src/corelib/io/qbuffer.cpp
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) $<
|
||||
|
||||
qlist.o: $(SOURCE_PATH)/src/corelib/tools/qlist.cpp
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) $<
|
||||
|
||||
qfile.o: $(SOURCE_PATH)/src/corelib/io/qfile.cpp
|
||||
$(CXX) -c -o $@ $(CXXFLAGS) $<
|
||||
|
||||
|
@ -90,7 +90,6 @@ QTOBJS= \
|
||||
qiodevice.obj \
|
||||
qringbuffer.obj \
|
||||
qdebug.obj \
|
||||
qlist.obj \
|
||||
qlocale.obj \
|
||||
qlocale_tools.obj \
|
||||
qlocale_win.obj \
|
||||
|
@ -209,7 +209,6 @@ public: \
|
||||
}; \
|
||||
}
|
||||
|
||||
Q_DECLARE_MOVABLE_CONTAINER(QList);
|
||||
Q_DECLARE_MOVABLE_CONTAINER(QVector);
|
||||
Q_DECLARE_MOVABLE_CONTAINER(QQueue);
|
||||
Q_DECLARE_MOVABLE_CONTAINER(QStack);
|
||||
|
@ -234,12 +234,6 @@ inline QDebug printSequentialContainer(QDebug debug, const char *which, const Se
|
||||
|
||||
} // namespace QtPrivate
|
||||
|
||||
template <class T>
|
||||
inline QDebug operator<<(QDebug debug, const QList<T> &list)
|
||||
{
|
||||
return QtPrivate::printSequentialContainer(debug, "" /*for historical reasons*/, list);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline QDebug operator<<(QDebug debug, const QVector<T> &vec)
|
||||
{
|
||||
|
@ -241,7 +241,7 @@ inline uint qHash(const QItemSelectionRange &) { return 0; }
|
||||
# define Q_TEMPLATE_EXTERN extern
|
||||
# endif
|
||||
# endif
|
||||
Q_TEMPLATE_EXTERN template class Q_CORE_EXPORT QList<QItemSelectionRange>;
|
||||
Q_TEMPLATE_EXTERN template class Q_CORE_EXPORT QVector<QItemSelectionRange>;
|
||||
#endif // Q_CC_MSVC
|
||||
|
||||
class Q_CORE_EXPORT QItemSelection : public QList<QItemSelectionRange>
|
||||
|
@ -682,7 +682,9 @@ static void argumentTypesFromString(const char *str, const char *end,
|
||||
--level;
|
||||
++str;
|
||||
}
|
||||
types += QArgumentType(QByteArray(begin, str - begin));
|
||||
QByteArray argType(begin, str - begin);
|
||||
argType.replace("QList<", "QVector<");
|
||||
types += QArgumentType(std::move(argType));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -213,6 +213,9 @@ static QByteArray normalizeTypeInternal(const char *t, const char *e, bool fixSc
|
||||
}
|
||||
}
|
||||
|
||||
// Qt 5 compatibility, make sure we use the correct type name for QList
|
||||
result.replace("QList<", "QVector<");
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -207,10 +207,10 @@ inline Q_DECL_CONSTEXPR int qMetaTypeId();
|
||||
F(UInt, -1, uint, "quint32") \
|
||||
F(LongLong, -1, qlonglong, "qint64") \
|
||||
F(ULongLong, -1, qulonglong, "quint64") \
|
||||
F(QVariantList, -1, QVariantList, "QList<QVariant>") \
|
||||
F(QVariantList, -1, QVariantList, "QVector<QVariant>") \
|
||||
F(QVariantMap, -1, QVariantMap, "QMap<QString,QVariant>") \
|
||||
F(QVariantHash, -1, QVariantHash, "QHash<QString,QVariant>") \
|
||||
F(QByteArrayList, -1, QByteArrayList, "QList<QByteArray>") \
|
||||
F(QByteArrayList, -1, QByteArrayList, "QVector<QByteArray>") \
|
||||
|
||||
#define QT_FOR_EACH_STATIC_TYPE(F)\
|
||||
QT_FOR_EACH_STATIC_PRIMITIVE_TYPE(F)\
|
||||
@ -225,7 +225,6 @@ inline Q_DECL_CONSTEXPR int qMetaTypeId();
|
||||
TypeName = Id,
|
||||
|
||||
#define QT_FOR_EACH_AUTOMATIC_TEMPLATE_1ARG(F) \
|
||||
F(QList) \
|
||||
F(QVector) \
|
||||
F(QQueue) \
|
||||
F(QStack) \
|
||||
@ -1003,10 +1002,6 @@ struct ContainerAPI : CapabilitiesImpl<T>
|
||||
static int size(const T *t) { return int(std::distance(t->begin(), t->end())); }
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct ContainerAPI<QList<T> > : CapabilitiesImpl<QList<T> >
|
||||
{ static int size(const QList<T> *t) { return t->size(); } };
|
||||
|
||||
template<typename T>
|
||||
struct ContainerAPI<QVector<T> > : CapabilitiesImpl<QVector<T> >
|
||||
{ static int size(const QVector<T> *t) { return t->size(); } };
|
||||
|
@ -215,7 +215,7 @@ public:
|
||||
}
|
||||
void insertAt(qsizetype idx, const QCborValue &value, ContainerDisposition disp = CopyContainer)
|
||||
{
|
||||
replaceAt_internal(*elements.insert(elements.begin() + idx, {}), value, disp);
|
||||
replaceAt_internal(*elements.insert(elements.begin() + int(idx), {}), value, disp);
|
||||
}
|
||||
|
||||
void append(QtCbor::Undefined)
|
||||
|
@ -389,18 +389,6 @@ typename std::enable_if<std::is_enum<T>::value, QDataStream &>::type&
|
||||
operator>>(QDataStream &s, T &t)
|
||||
{ return s >> reinterpret_cast<typename std::underlying_type<T>::type &>(t); }
|
||||
|
||||
template <typename T>
|
||||
inline QDataStream &operator>>(QDataStream &s, QList<T> &l)
|
||||
{
|
||||
return QtPrivate::readArrayBasedContainer(s, l);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline QDataStream &operator<<(QDataStream &s, const QList<T> &l)
|
||||
{
|
||||
return QtPrivate::writeSequentialContainer(s, l);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
inline QDataStream &operator>>(QDataStream &s, QVector<T> &v)
|
||||
{
|
||||
|
@ -50,7 +50,6 @@ template <class Key, class T> class QHash;
|
||||
#ifndef QT_NO_LINKED_LIST
|
||||
template <class T> class QLinkedList;
|
||||
#endif
|
||||
template <class T> class QList;
|
||||
template <class Key, class T> class QMap;
|
||||
template <class Key, class T> class QMultiHash;
|
||||
template <class Key, class T> class QMultiMap;
|
||||
@ -60,6 +59,7 @@ template <class T> class QSet;
|
||||
template <class T> class QStack;
|
||||
template<class T, int Prealloc = 256> class QVarLengthArray;
|
||||
template <class T> class QVector;
|
||||
template<typename T> using QList = QVector<T>;
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -317,9 +317,6 @@ public:
|
||||
inline QVector<T> &operator<<(T &&t)
|
||||
{ append(std::move(t)); return *this; }
|
||||
|
||||
static QVector<T> fromList(const QList<T> &list);
|
||||
QList<T> toList() const;
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
Q_DECL_DEPRECATED_X("Use QVector<T>(vector.begin(), vector.end()) instead.")
|
||||
static inline QVector<T> fromStdVector(const std::vector<T> &vector)
|
||||
@ -328,6 +325,14 @@ public:
|
||||
inline std::vector<T> toStdVector() const
|
||||
{ return std::vector<T>(d->begin(), d->end()); }
|
||||
#endif
|
||||
|
||||
// Consider deprecating in 6.4 or later
|
||||
static QVector<T> fromList(const QVector<T> &list) { return list; }
|
||||
QVector<T> toList() const { return *this; }
|
||||
|
||||
static inline QVector<T> fromVector(const QVector<T> &vector) { return vector; }
|
||||
inline QVector<T> toVector() const { return *this; }
|
||||
|
||||
private:
|
||||
// ### Qt6: remove methods, they are unused
|
||||
void reallocData(const int size, const int alloc, QArrayData::AllocationOptions options = QArrayData::Default);
|
||||
|
@ -153,7 +153,7 @@ int qDBusParametersForMethod(const QList<QByteArray> ¶meterTypes, QVector<in
|
||||
QList<QByteArray>::ConstIterator it = parameterTypes.constBegin();
|
||||
QList<QByteArray>::ConstIterator end = parameterTypes.constEnd();
|
||||
for ( ; it != end; ++it) {
|
||||
const QByteArray &type = *it;
|
||||
QByteArray type = *it;
|
||||
if (type.endsWith('*')) {
|
||||
errorMsg = QLatin1String("Pointers are not supported: ") + QLatin1String(type);
|
||||
return -1;
|
||||
@ -180,6 +180,9 @@ int qDBusParametersForMethod(const QList<QByteArray> ¶meterTypes, QVector<in
|
||||
return -1; // not allowed
|
||||
}
|
||||
|
||||
if (type.startsWith("QList<"))
|
||||
type = "QVector<" + type.mid(sizeof("QList<") - 1);
|
||||
|
||||
int id = QMetaType::type(type);
|
||||
#ifdef QT_BOOTSTRAPPED
|
||||
// in bootstrap mode QDBusMessage isn't included, thus we need to resolve it manually here
|
||||
|
@ -97,7 +97,6 @@ SOURCES += \
|
||||
../../corelib/tools/qcommandlineoption.cpp \
|
||||
../../corelib/tools/qcryptographichash.cpp \
|
||||
../../corelib/tools/qhash.cpp \
|
||||
../../corelib/tools/qlist.cpp \
|
||||
../../corelib/tools/qmap.cpp \
|
||||
../../corelib/tools/qringbuffer.cpp \
|
||||
../../corelib/tools/qpoint.cpp \
|
||||
|
@ -72,9 +72,8 @@ static const char includeList[] =
|
||||
|
||||
static const char forwardDeclarations[] =
|
||||
"QT_BEGIN_NAMESPACE\n"
|
||||
"#include <QtCore/qcontainerfwd.h>\n"
|
||||
"class QByteArray;\n"
|
||||
"template<class T> class QList;\n"
|
||||
"template<class Key, class Value> class QMap;\n"
|
||||
"class QString;\n"
|
||||
"class QStringList;\n"
|
||||
"class QVariant;\n"
|
||||
|
@ -112,7 +112,7 @@ void QListModel::insert(int row, QListWidgetItem *item)
|
||||
QList<QListWidgetItem*>::iterator it;
|
||||
it = sortedInsertionIterator(items.begin(), items.end(),
|
||||
item->view->sortOrder(), item);
|
||||
row = qMax(it - items.begin(), 0);
|
||||
row = qMax<qsizetype>(it - items.begin(), 0);
|
||||
} else {
|
||||
if (row < 0)
|
||||
row = 0;
|
||||
@ -391,7 +391,7 @@ void QListModel::ensureSorted(int column, Qt::SortOrder order, int start, int en
|
||||
--tmpitepos;
|
||||
lit = tmp.begin() + tmpitepos;
|
||||
lit = sortedInsertionIterator(lit, tmp.end(), order, item);
|
||||
int newRow = qMax(lit - tmp.begin(), 0);
|
||||
int newRow = qMax<qsizetype>(lit - tmp.begin(), 0);
|
||||
lit = tmp.insert(lit, item);
|
||||
if (newRow != oldRow) {
|
||||
changed = true;
|
||||
|
@ -646,7 +646,7 @@ void QTreeModel::ensureSorted(int column, Qt::SortOrder order,
|
||||
lit = lst.begin() + tmpitepos;
|
||||
|
||||
lit = sortedInsertionIterator(lit, lst.end(), order, item);
|
||||
int newRow = qMax(lit - lst.begin(), 0);
|
||||
int newRow = qMax<qsizetype>(lit - lst.begin(), 0);
|
||||
|
||||
if ((newRow < oldRow) && !(*item < *lst.at(oldRow - 1)) && !(*lst.at(oldRow - 1) < *item ))
|
||||
newRow = oldRow;
|
||||
|
@ -53,6 +53,7 @@
|
||||
"qconfig.h" => "QtConfig",
|
||||
"qplugin.h" => "QtPlugin",
|
||||
"qalgorithms.h" => "QtAlgorithms",
|
||||
"qlist.h" => "QList",
|
||||
"qcontainerfwd.h" => "QtContainerFwd",
|
||||
"qdebug.h" => "QtDebug",
|
||||
"qevent.h" => "QtEvents",
|
||||
|
@ -714,16 +714,17 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
QCOMPARE(sum, 6);
|
||||
}
|
||||
|
||||
auto push_back = static_cast<void (QVector<int>::*)(const int &)>(&QVector<int>::push_back);
|
||||
// functor-member
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::filteredReduced(list, KeepEvenIntegers(), &QList<int>::push_back, QtConcurrent::OrderedReduce);
|
||||
QList<int> list2 = QtConcurrent::filteredReduced(list, KeepEvenIntegers(), push_back, QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::filteredReduced(list.begin(),
|
||||
list.end(),
|
||||
KeepEvenIntegers(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
@ -731,19 +732,19 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
QList<int> list2 = QtConcurrent::filteredReduced(list.constBegin(),
|
||||
list.constEnd(),
|
||||
KeepEvenIntegers(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::blockingFilteredReduced(list, KeepEvenIntegers(), &QList<int>::push_back, QtConcurrent::OrderedReduce);
|
||||
QList<int> list2 = QtConcurrent::blockingFilteredReduced(list, KeepEvenIntegers(), push_back, QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::blockingFilteredReduced(list.begin(),
|
||||
list.end(),
|
||||
KeepEvenIntegers(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
@ -751,7 +752,7 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
QList<int> list2 = QtConcurrent::blockingFilteredReduced(list.constBegin(),
|
||||
list.constEnd(),
|
||||
KeepEvenIntegers(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
@ -805,12 +806,15 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
}
|
||||
|
||||
// member-member
|
||||
|
||||
auto push_back_number = static_cast<void (QVector<Number>::*)(const Number &)>(&QVector<Number>::push_back);
|
||||
|
||||
{
|
||||
QList<Number> numbers;
|
||||
numbers << 1 << 2 << 3 << 4;
|
||||
QList<Number> list2 = QtConcurrent::filteredReduced(numbers,
|
||||
&Number::isEven,
|
||||
&QList<Number>::push_back, QtConcurrent::OrderedReduce);
|
||||
push_back_number, QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<Number>() << 2 << 4);
|
||||
}
|
||||
{
|
||||
@ -819,7 +823,7 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
QList<Number> list2 = QtConcurrent::filteredReduced(numbers.begin(),
|
||||
numbers.end(),
|
||||
&Number::isEven,
|
||||
&QList<Number>::push_back,
|
||||
push_back_number,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<Number>() << 2 << 4);
|
||||
}
|
||||
@ -829,7 +833,7 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
QList<Number> list2 = QtConcurrent::filteredReduced(numbers.constBegin(),
|
||||
numbers.constEnd(),
|
||||
&Number::isEven,
|
||||
&QList<Number>::push_back,
|
||||
push_back_number,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<Number>() << 2 << 4);
|
||||
}
|
||||
@ -838,7 +842,7 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
numbers << 1 << 2 << 3 << 4;
|
||||
QList<Number> list2 = QtConcurrent::blockingFilteredReduced(numbers,
|
||||
&Number::isEven,
|
||||
&QList<Number>::push_back, QtConcurrent::OrderedReduce);
|
||||
push_back_number, QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<Number>() << 2 << 4);
|
||||
}
|
||||
{
|
||||
@ -847,7 +851,7 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
QList<Number> list2 = QtConcurrent::blockingFilteredReduced(numbers.begin(),
|
||||
numbers.end(),
|
||||
&Number::isEven,
|
||||
&QList<Number>::push_back,
|
||||
push_back_number,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<Number>() << 2 << 4);
|
||||
}
|
||||
@ -857,21 +861,21 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
QList<Number> list2 = QtConcurrent::blockingFilteredReduced(numbers.constBegin(),
|
||||
numbers.constEnd(),
|
||||
&Number::isEven,
|
||||
&QList<Number>::push_back,
|
||||
push_back_number,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<Number>() << 2 << 4);
|
||||
}
|
||||
|
||||
// function-member
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::filteredReduced(list, keepEvenIntegers, &QList<int>::push_back, QtConcurrent::OrderedReduce);
|
||||
QList<int> list2 = QtConcurrent::filteredReduced(list, keepEvenIntegers, push_back, QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::filteredReduced(list.begin(),
|
||||
list.end(),
|
||||
keepEvenIntegers,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
@ -879,19 +883,19 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
QList<int> list2 = QtConcurrent::filteredReduced(list.constBegin(),
|
||||
list.constEnd(),
|
||||
keepEvenIntegers,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::blockingFilteredReduced(list, keepEvenIntegers, &QList<int>::push_back, QtConcurrent::OrderedReduce);
|
||||
QList<int> list2 = QtConcurrent::blockingFilteredReduced(list, keepEvenIntegers, push_back, QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::blockingFilteredReduced(list.begin(),
|
||||
list.end(),
|
||||
keepEvenIntegers,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
@ -899,7 +903,7 @@ void tst_QtConcurrentFilter::filteredReduced()
|
||||
QList<int> list2 = QtConcurrent::blockingFilteredReduced(list.constBegin(),
|
||||
list.constEnd(),
|
||||
keepEvenIntegers,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
QtConcurrent::OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 2 << 4);
|
||||
}
|
||||
|
@ -1381,11 +1381,13 @@ void tst_QtConcurrentMap::mappedReduced()
|
||||
QCOMPARE(sum3, 14);
|
||||
}
|
||||
|
||||
auto push_back = static_cast<void (QVector<int>::*)(const int &)>(&QVector<int>::push_back);
|
||||
|
||||
// functor-member
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::mappedReduced(list,
|
||||
IntSquare(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list2, QList<int>() << 1 << 4 << 9);
|
||||
@ -1393,14 +1395,14 @@ void tst_QtConcurrentMap::mappedReduced()
|
||||
QList<int> list3 = QtConcurrent::mappedReduced(list.constBegin(),
|
||||
list.constEnd(),
|
||||
IntSquare(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list3, QList<int>() << 1 << 4 << 9);
|
||||
|
||||
QList<int> list4 = QtConcurrent::mappedReduced(QList<int>(list),
|
||||
IntSquare(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list4, QList<int>() << 1 << 4 << 9);
|
||||
@ -1463,20 +1465,20 @@ void tst_QtConcurrentMap::mappedReduced()
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::mappedReduced(numberList,
|
||||
&Number::toInt,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 1 << 2 << 3);
|
||||
|
||||
QList<int> list3 = QtConcurrent::mappedReduced(numberList.constBegin(),
|
||||
numberList.constEnd(),
|
||||
&Number::toInt,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list3, QList<int>() << 1 << 2 << 3);
|
||||
|
||||
QList<int> list4 = QtConcurrent::mappedReduced(QList<Number>(numberList),
|
||||
&Number::toInt,
|
||||
&QList<int>::push_back, OrderedReduce);
|
||||
push_back, OrderedReduce);
|
||||
QCOMPARE(list4, QList<int>() << 1 << 2 << 3);
|
||||
}
|
||||
{
|
||||
@ -1503,7 +1505,7 @@ void tst_QtConcurrentMap::mappedReduced()
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::mappedReduced(list,
|
||||
intSquare,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list2, QList<int>() << 1 << 4 << 9);
|
||||
@ -1511,14 +1513,14 @@ void tst_QtConcurrentMap::mappedReduced()
|
||||
QList<int> list3 = QtConcurrent::mappedReduced(list.constBegin(),
|
||||
list.constEnd(),
|
||||
intSquare,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list3, QList<int>() << 1 << 4 << 9);
|
||||
|
||||
QList<int> list4 = QtConcurrent::mappedReduced(QList<int>(list),
|
||||
intSquare,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list4, QList<int>() << 1 << 4 << 9);
|
||||
@ -1759,11 +1761,13 @@ void tst_QtConcurrentMap::blocking_mappedReduced()
|
||||
QCOMPARE(sum3, 14);
|
||||
}
|
||||
|
||||
auto push_back = static_cast<void (QVector<int>::*)(const int &)>(&QVector<int>::push_back);
|
||||
|
||||
// functor-member
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::blockingMappedReduced(list,
|
||||
IntSquare(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list2, QList<int>() << 1 << 4 << 9);
|
||||
@ -1771,14 +1775,14 @@ void tst_QtConcurrentMap::blocking_mappedReduced()
|
||||
QList<int> list3 = QtConcurrent::blockingMappedReduced(list.constBegin(),
|
||||
list.constEnd(),
|
||||
IntSquare(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list3, QList<int>() << 1 << 4 << 9);
|
||||
|
||||
QList<int> list4 = QtConcurrent::blockingMappedReduced(QList<int>(list),
|
||||
IntSquare(),
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list4, QList<int>() << 1 << 4 << 9);
|
||||
@ -1842,20 +1846,20 @@ void tst_QtConcurrentMap::blocking_mappedReduced()
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::blockingMappedReduced(numberList,
|
||||
&Number::toInt,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list2, QList<int>() << 1 << 2 << 3);
|
||||
|
||||
QList<int> list3 = QtConcurrent::blockingMappedReduced(numberList.constBegin(),
|
||||
numberList.constEnd(),
|
||||
&Number::toInt,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list3, QList<int>() << 1 << 2 << 3);
|
||||
|
||||
QList<int> list4 = QtConcurrent::blockingMappedReduced(QList<Number>(numberList),
|
||||
&Number::toInt,
|
||||
&QList<int>::push_back, OrderedReduce);
|
||||
push_back, OrderedReduce);
|
||||
QCOMPARE(list4, QList<int>() << 1 << 2 << 3);
|
||||
}
|
||||
{
|
||||
@ -1882,7 +1886,7 @@ void tst_QtConcurrentMap::blocking_mappedReduced()
|
||||
{
|
||||
QList<int> list2 = QtConcurrent::blockingMappedReduced(list,
|
||||
intSquare,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list2, QList<int>() << 1 << 4 << 9);
|
||||
@ -1890,14 +1894,14 @@ void tst_QtConcurrentMap::blocking_mappedReduced()
|
||||
QList<int> list3 = QtConcurrent::blockingMappedReduced(list.constBegin(),
|
||||
list.constEnd(),
|
||||
intSquare,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list3, QList<int>() << 1 << 4 << 9);
|
||||
|
||||
QList<int> list4 = QtConcurrent::blockingMappedReduced(QList<int>(list),
|
||||
intSquare,
|
||||
&QList<int>::push_back,
|
||||
push_back,
|
||||
OrderedReduce);
|
||||
QCOMPARE(list, QList<int>() << 1 << 2 << 3);
|
||||
QCOMPARE(list4, QList<int>() << 1 << 4 << 9);
|
||||
@ -2118,7 +2122,6 @@ public:
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(QVector<MemFnTester>);
|
||||
Q_DECLARE_METATYPE(QList<MemFnTester>);
|
||||
|
||||
void tst_QtConcurrentMap::functionOverloads()
|
||||
{
|
||||
|
@ -1320,13 +1320,13 @@ void tst_QMetaObject::normalizedSignature_data()
|
||||
QTest::newRow("function ptr spaces") << "void foo( void ( * ) ( void ))" << "void foo(void(*)())";
|
||||
QTest::newRow("function ptr void*") << "void foo(void(*)(void*))" << "void foo(void(*)(void*))";
|
||||
QTest::newRow("function ptr void* spaces") << "void foo( void ( * ) ( void * ))" << "void foo(void(*)(void*))";
|
||||
QTest::newRow("template args") << " void foo( QMap<a, a>, QList<b>) "
|
||||
<< "void foo(QMap<a,a>,QList<b>)";
|
||||
QTest::newRow("template args") << " void foo( QMap<a, a>, QVector<b>) "
|
||||
<< "void foo(QMap<a,a>,QVector<b>)";
|
||||
QTest::newRow("void template args") << " void foo( Foo<void>, Bar<void> ) "
|
||||
<< "void foo(Foo<void>,Bar<void>)";
|
||||
QTest::newRow("void* template args") << " void foo( Foo<void*>, Bar<void *> ) "
|
||||
<< "void foo(Foo<void*>,Bar<void*>)";
|
||||
QTest::newRow("rettype") << "QList<int, int> foo()" << "QList<int,int>foo()";
|
||||
QTest::newRow("rettype") << "QVector<int, int> foo()" << "QVector<int,int>foo()";
|
||||
QTest::newRow("rettype void template") << "Foo<void> foo()" << "Foo<void>foo()";
|
||||
QTest::newRow("const rettype") << "const QString *foo()" << "const QString*foo()";
|
||||
QTest::newRow("const ref") << "const QString &foo()" << "const QString&foo()";
|
||||
@ -1337,15 +1337,16 @@ void tst_QMetaObject::normalizedSignature_data()
|
||||
QTest::newRow("const4") << "void foo(const int)" << "void foo(int)";
|
||||
QTest::newRow("const5") << "void foo(const int, int const, const int &, int const &)"
|
||||
<< "void foo(int,int,int,int)";
|
||||
QTest::newRow("const6") << "void foo(QList<const int>)" << "void foo(QList<const int>)";
|
||||
QTest::newRow("const7") << "void foo(QList<const int*>)" << "void foo(QList<const int*>)";
|
||||
QTest::newRow("const8") << "void foo(QList<int const*>)" << "void foo(QList<const int*>)";
|
||||
QTest::newRow("const6") << "void foo(QVector<const int>)" << "void foo(QVector<const int>)";
|
||||
QTest::newRow("const7") << "void foo(QVector<const int*>)" << "void foo(QVector<const int*>)";
|
||||
QTest::newRow("const8") << "void foo(QVector<int const*>)" << "void foo(QVector<const int*>)";
|
||||
QTest::newRow("const9") << "void foo(const Foo<Bar>)" << "void foo(Foo<Bar>)";
|
||||
QTest::newRow("const10") << "void foo(Foo<Bar>const)" << "void foo(Foo<Bar>)";
|
||||
QTest::newRow("const11") << "void foo(Foo<Bar> *const)" << "void foo(Foo<Bar>*const)";
|
||||
QTest::newRow("const12") << "void foo(Foo<Bar>const*const *const)" << "void foo(Foo<Bar>*const*const)";
|
||||
QTest::newRow("const13") << "void foo(const Foo<Bar>&)" << "void foo(Foo<Bar>)";
|
||||
QTest::newRow("const14") << "void foo(Foo<Bar>const&)" << "void foo(Foo<Bar>)";
|
||||
QTest::newRow("QList") << "void foo(QList<int>)" << "void foo(QVector<int>)";
|
||||
|
||||
QTest::newRow("invalid1") << "a( b" << "a(b";
|
||||
}
|
||||
@ -1367,13 +1368,13 @@ void tst_QMetaObject::normalizedType_data()
|
||||
QTest::newRow("white") << " int " << "int";
|
||||
QTest::newRow("const1") << "int const *" << "const int*";
|
||||
QTest::newRow("const2") << "const int *" << "const int*";
|
||||
QTest::newRow("template1") << "QList<int const *>" << "QList<const int*>";
|
||||
QTest::newRow("template2") << "QList<const int *>" << "QList<const int*>";
|
||||
QTest::newRow("template1") << "QVector<int const *>" << "QVector<const int*>";
|
||||
QTest::newRow("template2") << "QVector<const int *>" << "QVector<const int*>";
|
||||
QTest::newRow("template3") << "QMap<QString, int>" << "QMap<QString,int>";
|
||||
QTest::newRow("template4") << "const QMap<QString, int> &" << "QMap<QString,int>";
|
||||
QTest::newRow("template5") << "QList< ::Foo::Bar>" << "QList< ::Foo::Bar>";
|
||||
QTest::newRow("template6") << "QList<::Foo::Bar>" << "QList<::Foo::Bar>";
|
||||
QTest::newRow("template7") << "QList<QList<int> >" << "QList<QList<int> >";
|
||||
QTest::newRow("template5") << "QVector< ::Foo::Bar>" << "QVector< ::Foo::Bar>";
|
||||
QTest::newRow("template6") << "QVector<::Foo::Bar>" << "QVector<::Foo::Bar>";
|
||||
QTest::newRow("template7") << "QVector<QVector<int> >" << "QVector<QVector<int> >";
|
||||
QTest::newRow("template8") << "QMap<const int, const short*>" << "QMap<const int,const short*>";
|
||||
QTest::newRow("template9") << "QPair<const QPair<int, int const *> , QPair<QHash<int, const char*> > >" << "QPair<const QPair<int,const int*>,QPair<QHash<int,const char*> > >";
|
||||
QTest::newRow("value1") << "const QString &" << "QString";
|
||||
@ -1387,6 +1388,7 @@ void tst_QMetaObject::normalizedType_data()
|
||||
QTest::newRow("struct2") << "struct foo const*" << "const foo*";
|
||||
QTest::newRow("enum") << "enum foo" << "foo";
|
||||
QTest::newRow("void") << "void" << "void";
|
||||
QTest::newRow("QList") << "QList<int>" << "QVector<int>";
|
||||
}
|
||||
|
||||
void tst_QMetaObject::normalizedType()
|
||||
|
@ -460,7 +460,7 @@ void tst_QObject::connectSlotsByName()
|
||||
sender.setObjectName("Sender");
|
||||
|
||||
QTest::ignoreMessage(QtWarningMsg, "QMetaObject::connectSlotsByName: No matching signal for on_child_signal()");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QMetaObject::connectSlotsByName: Connecting slot on_Sender_signalManyParams() with the first of the following compatible signals: (\"signalManyParams(int,int,int,QString,bool)\", \"signalManyParams(int,int,int,QString,bool,bool)\")");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QMetaObject::connectSlotsByName: Connecting slot on_Sender_signalManyParams() with the first of the following compatible signals: QVector(\"signalManyParams(int,int,int,QString,bool)\", \"signalManyParams(int,int,int,QString,bool,bool)\")");
|
||||
QMetaObject::connectSlotsByName(&receiver);
|
||||
|
||||
receiver.called_slots.clear();
|
||||
|
@ -84,10 +84,6 @@ void foo()
|
||||
#include "qvector.h"
|
||||
#include "qqueue.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
template class QList<int>;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class tst_Collections : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -551,19 +547,12 @@ void tst_Collections::list()
|
||||
list << "foo" << "bar";
|
||||
QVERIFY(!list.isEmpty());
|
||||
|
||||
list.insert(-1, "lessthanzero");
|
||||
QCOMPARE(list.at(0), QString("lessthanzero"));
|
||||
|
||||
list.insert(0, "atzero");
|
||||
QCOMPARE(list.at(0), QString("atzero"));
|
||||
|
||||
int listCount = list.count();
|
||||
list.insert(listCount, "atcount");
|
||||
QCOMPARE(list.at(listCount), QString("atcount"));
|
||||
|
||||
listCount = list.count();
|
||||
list.insert(listCount + 1, "beyondcount");
|
||||
QCOMPARE(list.at(listCount), QString("beyondcount"));
|
||||
}
|
||||
|
||||
{
|
||||
@ -2336,12 +2325,6 @@ void populate(QLinkedList<int> &container)
|
||||
container << 1 << 2 << 4 << 8;
|
||||
}
|
||||
|
||||
template <>
|
||||
void populate(QVector<int> &container)
|
||||
{
|
||||
container << 1 << 2 << 4 << 8;
|
||||
}
|
||||
|
||||
template <>
|
||||
void populate(QMap<int, int> &container)
|
||||
{
|
||||
|
@ -579,9 +579,6 @@ struct ContainerDuplicatedValuesStrategy<QVarLengthArray<T...>> : ContainerAccep
|
||||
template<typename ... T>
|
||||
struct ContainerDuplicatedValuesStrategy<VarLengthArray<T...>> : ContainerAcceptsDuplicateValues {};
|
||||
|
||||
template<typename ... T>
|
||||
struct ContainerDuplicatedValuesStrategy<QList<T...>> : ContainerAcceptsDuplicateValues {};
|
||||
|
||||
template<typename ... T>
|
||||
struct ContainerDuplicatedValuesStrategy<std::list<T...>> : ContainerAcceptsDuplicateValues {};
|
||||
|
||||
|
1
tests/auto/corelib/tools/qlist/.gitignore
vendored
1
tests/auto/corelib/tools/qlist/.gitignore
vendored
@ -1 +0,0 @@
|
||||
tst_qlist
|
@ -1,6 +0,0 @@
|
||||
CONFIG += testcase
|
||||
TARGET = tst_qlist
|
||||
QT = core testlib
|
||||
qtConfig(c++14): CONFIG += c++14
|
||||
qtConfig(c++1z): CONFIG += c++1z
|
||||
SOURCES = $$PWD/tst_qlist.cpp
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
||||
include(../qlist/qlist.pro)
|
||||
TARGET = tst_qlist_strictiterators
|
||||
DEFINES += QT_STRICT_ITERATORS tst_QList=tst_QList_StrictIterators
|
@ -18,8 +18,6 @@ SUBDIRS=\
|
||||
qhashfunctions \
|
||||
qline \
|
||||
qlinkedlist \
|
||||
qlist \
|
||||
qlist_strictiterators \
|
||||
qmakearray \
|
||||
qmap \
|
||||
qmap_strictiterators \
|
||||
|
@ -402,7 +402,7 @@ void tst_QDBusMetaType::invalidTypes()
|
||||
else if (qstrcmp(QTest::currentDataTag(), "Invalid7") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type `Invalid7' produces invalid D-BUS signature `()' (Did you forget to call beginStructure() ?)");
|
||||
else if (qstrcmp(QTest::currentDataTag(), "QList<Invalid0>") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type `QList<Invalid0>' produces invalid D-BUS signature `a' (Did you forget to call beginStructure() ?)");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type `QVector<Invalid0>' produces invalid D-BUS signature `a' (Did you forget to call beginStructure() ?)");
|
||||
|
||||
staticTypes();
|
||||
staticTypes(); // run twice: the error messages should be printed once only
|
||||
|
@ -162,7 +162,6 @@ Q_DECLARE_METATYPE(QSslSocket::SslMode)
|
||||
Q_DECLARE_METATYPE(QSslSocket::PeerVerifyMode)
|
||||
Q_DECLARE_METATYPE(QList<QSslCertificate>)
|
||||
Q_DECLARE_METATYPE(QSslKey)
|
||||
Q_DECLARE_METATYPE(QVector<QSslError>)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -60,7 +60,6 @@ using VectorOfErrors = QT_PREPEND_NAMESPACE(QVector<SslError>);
|
||||
using Latin1String = QT_PREPEND_NAMESPACE(QLatin1String);
|
||||
|
||||
Q_DECLARE_METATYPE(SslError)
|
||||
Q_DECLARE_METATYPE(VectorOfErrors)
|
||||
Q_DECLARE_METATYPE(Latin1String)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
@ -542,7 +542,7 @@
|
||||
<Description><![CDATA[Signal: SignalSlotClass(_POINTER_) qByteArraySignal (QByteArray(Test bytearray))]]></Description>
|
||||
</Message>
|
||||
<Message type="info" file="" line="0">
|
||||
<Description><![CDATA[Signal: SignalSlotClass(_POINTER_) qListSignal (QList<int>())]]></Description>
|
||||
<Description><![CDATA[Signal: SignalSlotClass(_POINTER_) qListSignal (QVector<int>())]]></Description>
|
||||
</Message>
|
||||
<Message type="info" file="" line="0">
|
||||
<Description><![CDATA[Signal: SignalSlotClass(_POINTER_) qVectorSignal (QVector<int>())]]></Description>
|
||||
|
@ -134,7 +134,7 @@ ok 18 - slotEmittingSignalOldSyntax(queued)
|
||||
# Signal: SignalSlotClass(_POINTER_) qStringRefSignal ((QString&)@_POINTER_)
|
||||
# Signal: SignalSlotClass(_POINTER_) qStringConstRefSignal (QString(Test string))
|
||||
# Signal: SignalSlotClass(_POINTER_) qByteArraySignal (QByteArray(Test bytearray))
|
||||
# Signal: SignalSlotClass(_POINTER_) qListSignal (QList<int>())
|
||||
# Signal: SignalSlotClass(_POINTER_) qListSignal (QVector<int>())
|
||||
# Signal: SignalSlotClass(_POINTER_) qVectorSignal (QVector<int>())
|
||||
# Signal: SignalSlotClass(_POINTER_) qVectorRefSignal ((QVector<int>&)@_POINTER_)
|
||||
# Signal: SignalSlotClass(_POINTER_) qVectorConstRefSignal (QVector<int>())
|
||||
|
@ -54,7 +54,7 @@
|
||||
##teamcity[testStdOut name='slotEmittingSignalOldSyntax(queued)' out='INFO: Signal: SignalSlotClass(_POINTER_) signalWithoutParameters ()|nINFO: Signal: QEventDispatcherPlatform(_POINTER_) awake ()|nINFO: Signal: SignalSlotClass(_POINTER_) nestedSignal ()' flowId='tst_Signaldumper']
|
||||
##teamcity[testFinished name='slotEmittingSignalOldSyntax(queued)' flowId='tst_Signaldumper']
|
||||
##teamcity[testStarted name='variousTypes()' flowId='tst_Signaldumper']
|
||||
##teamcity[testStdOut name='variousTypes()' out='INFO: Signal: SignalSlotClass(_POINTER_) qStringSignal (QString(Test string))|nINFO: Signal: SignalSlotClass(_POINTER_) qStringRefSignal ((QString&)@_POINTER_)|nINFO: Signal: SignalSlotClass(_POINTER_) qStringConstRefSignal (QString(Test string))|nINFO: Signal: SignalSlotClass(_POINTER_) qByteArraySignal (QByteArray(Test bytearray))|nINFO: Signal: SignalSlotClass(_POINTER_) qListSignal (QList<int>())|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorSignal (QVector<int>())|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorRefSignal ((QVector<int>&)@_POINTER_)|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorConstRefSignal (QVector<int>())|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorConstPointerSignal ((const QVector<int>*)_POINTER_)|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorPointerConstSignal ()|nINFO: Signal: SignalSlotClass(_POINTER_) qVariantSignal (QVariant())|nINFO: Signal: SignalSlotClass(_POINTER_) qVariantSignal (QVariant())' flowId='tst_Signaldumper']
|
||||
##teamcity[testStdOut name='variousTypes()' out='INFO: Signal: SignalSlotClass(_POINTER_) qStringSignal (QString(Test string))|nINFO: Signal: SignalSlotClass(_POINTER_) qStringRefSignal ((QString&)@_POINTER_)|nINFO: Signal: SignalSlotClass(_POINTER_) qStringConstRefSignal (QString(Test string))|nINFO: Signal: SignalSlotClass(_POINTER_) qByteArraySignal (QByteArray(Test bytearray))|nINFO: Signal: SignalSlotClass(_POINTER_) qListSignal (QVector<int>())|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorSignal (QVector<int>())|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorRefSignal ((QVector<int>&)@_POINTER_)|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorConstRefSignal (QVector<int>())|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorConstPointerSignal ((const QVector<int>*)_POINTER_)|nINFO: Signal: SignalSlotClass(_POINTER_) qVectorPointerConstSignal ()|nINFO: Signal: SignalSlotClass(_POINTER_) qVariantSignal (QVariant())|nINFO: Signal: SignalSlotClass(_POINTER_) qVariantSignal (QVariant())' flowId='tst_Signaldumper']
|
||||
##teamcity[testFinished name='variousTypes()' flowId='tst_Signaldumper']
|
||||
##teamcity[testStarted name='deletingSender()' flowId='tst_Signaldumper']
|
||||
##teamcity[testStdOut name='deletingSender()' out='INFO: Signal: SignalSlotClass(_POINTER_) signalWithoutParameters ()' flowId='tst_Signaldumper']
|
||||
|
@ -134,7 +134,7 @@ INFO : tst_Signaldumper::variousTypes() Signal: SignalSlotClass(_POINTER_) qSt
|
||||
INFO : tst_Signaldumper::variousTypes() Signal: SignalSlotClass(_POINTER_) qStringRefSignal ((QString&)@_POINTER_)
|
||||
INFO : tst_Signaldumper::variousTypes() Signal: SignalSlotClass(_POINTER_) qStringConstRefSignal (QString(Test string))
|
||||
INFO : tst_Signaldumper::variousTypes() Signal: SignalSlotClass(_POINTER_) qByteArraySignal (QByteArray(Test bytearray))
|
||||
INFO : tst_Signaldumper::variousTypes() Signal: SignalSlotClass(_POINTER_) qListSignal (QList<int>())
|
||||
INFO : tst_Signaldumper::variousTypes() Signal: SignalSlotClass(_POINTER_) qListSignal (QVector<int>())
|
||||
INFO : tst_Signaldumper::variousTypes() Signal: SignalSlotClass(_POINTER_) qVectorSignal (QVector<int>())
|
||||
INFO : tst_Signaldumper::variousTypes() Signal: SignalSlotClass(_POINTER_) qVectorRefSignal ((QVector<int>&)@_POINTER_)
|
||||
INFO : tst_Signaldumper::variousTypes() Signal: SignalSlotClass(_POINTER_) qVectorConstRefSignal (QVector<int>())
|
||||
|
@ -544,7 +544,7 @@
|
||||
<Description><![CDATA[Signal: SignalSlotClass(_POINTER_) qByteArraySignal (QByteArray(Test bytearray))]]></Description>
|
||||
</Message>
|
||||
<Message type="info" file="" line="0">
|
||||
<Description><![CDATA[Signal: SignalSlotClass(_POINTER_) qListSignal (QList<int>())]]></Description>
|
||||
<Description><![CDATA[Signal: SignalSlotClass(_POINTER_) qListSignal (QVector<int>())]]></Description>
|
||||
</Message>
|
||||
<Message type="info" file="" line="0">
|
||||
<Description><![CDATA[Signal: SignalSlotClass(_POINTER_) qVectorSignal (QVector<int>())]]></Description>
|
||||
|
@ -142,7 +142,7 @@
|
||||
<!-- message="Signal: SignalSlotClass(_POINTER_) qStringRefSignal ((QString&)@_POINTER_)" type="info" -->
|
||||
<!-- message="Signal: SignalSlotClass(_POINTER_) qStringConstRefSignal (QString(Test string))" type="info" -->
|
||||
<!-- message="Signal: SignalSlotClass(_POINTER_) qByteArraySignal (QByteArray(Test bytearray))" type="info" -->
|
||||
<!-- message="Signal: SignalSlotClass(_POINTER_) qListSignal (QList<int>())" type="info" -->
|
||||
<!-- message="Signal: SignalSlotClass(_POINTER_) qListSignal (QVector<int>())" type="info" -->
|
||||
<!-- message="Signal: SignalSlotClass(_POINTER_) qVectorSignal (QVector<int>())" type="info" -->
|
||||
<!-- message="Signal: SignalSlotClass(_POINTER_) qVectorRefSignal ((QVector<int>&)@_POINTER_)" type="info" -->
|
||||
<!-- message="Signal: SignalSlotClass(_POINTER_) qVectorConstRefSignal (QVector<int>())" type="info" -->
|
||||
@ -274,7 +274,7 @@
|
||||
<![CDATA[Signal: SignalSlotClass(_POINTER_) qStringRefSignal ((QString&)@_POINTER_)]]>
|
||||
<![CDATA[Signal: SignalSlotClass(_POINTER_) qStringConstRefSignal (QString(Test string))]]>
|
||||
<![CDATA[Signal: SignalSlotClass(_POINTER_) qByteArraySignal (QByteArray(Test bytearray))]]>
|
||||
<![CDATA[Signal: SignalSlotClass(_POINTER_) qListSignal (QList<int>())]]>
|
||||
<![CDATA[Signal: SignalSlotClass(_POINTER_) qListSignal (QVector<int>())]]>
|
||||
<![CDATA[Signal: SignalSlotClass(_POINTER_) qVectorSignal (QVector<int>())]]>
|
||||
<![CDATA[Signal: SignalSlotClass(_POINTER_) qVectorRefSignal ((QVector<int>&)@_POINTER_)]]>
|
||||
<![CDATA[Signal: SignalSlotClass(_POINTER_) qVectorConstRefSignal (QVector<int>())]]>
|
||||
|
@ -313,7 +313,7 @@
|
||||
"read": "flagsList",
|
||||
"scriptable": true,
|
||||
"stored": true,
|
||||
"type": "QList<Foo::Bar::Flags>",
|
||||
"type": "QVector<Foo::Bar::Flags>",
|
||||
"user": false,
|
||||
"write": "setFlagsList"
|
||||
}
|
||||
@ -340,7 +340,7 @@
|
||||
"access": "public",
|
||||
"arguments": [
|
||||
{
|
||||
"type": "QList<QList<int> >"
|
||||
"type": "QVector<QVector<int> >"
|
||||
}
|
||||
],
|
||||
"name": "foo",
|
||||
@ -350,7 +350,7 @@
|
||||
"access": "public",
|
||||
"arguments": [
|
||||
{
|
||||
"type": "QList<QList<int> >"
|
||||
"type": "QVector<QVector<int> >"
|
||||
}
|
||||
],
|
||||
"name": "foo2",
|
||||
@ -360,7 +360,7 @@
|
||||
"access": "public",
|
||||
"arguments": [
|
||||
{
|
||||
"type": "QList< ::AAA::BaseA*>"
|
||||
"type": "QVector< ::AAA::BaseA*>"
|
||||
}
|
||||
],
|
||||
"name": "bar",
|
||||
@ -370,7 +370,7 @@
|
||||
"access": "public",
|
||||
"arguments": [
|
||||
{
|
||||
"type": "QList< ::AAA::BaseA*>"
|
||||
"type": "QVector< ::AAA::BaseA*>"
|
||||
}
|
||||
],
|
||||
"name": "bar2",
|
||||
@ -380,7 +380,7 @@
|
||||
"access": "public",
|
||||
"arguments": [
|
||||
{
|
||||
"type": "QList<const ::AAA::BaseA*>"
|
||||
"type": "QVector<const ::AAA::BaseA*>"
|
||||
}
|
||||
],
|
||||
"name": "bar3",
|
||||
|
Loading…
x
Reference in New Issue
Block a user