QtWidgets: mark some private types movable or primitive
They are held in Qt containers or QVariant. Change-Id: Ida1b904120d4fb53a5596f1c3cbc973bd2ca315e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
c19e67eb73
commit
f5243c0591
@ -318,6 +318,7 @@ public:
|
||||
QList<Fetching> toFetch;
|
||||
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QFileSystemModelPrivate::Fetching, Q_MOVABLE_TYPE);
|
||||
#endif // QT_NO_FILESYSTEMMODEL
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -170,6 +170,7 @@ public:
|
||||
const char *changedSignal)
|
||||
: className(className), property(property), changedSignal(changedSignal) {}
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QWizardDefaultProperty, Q_MOVABLE_TYPE);
|
||||
|
||||
class QWizardField
|
||||
{
|
||||
@ -189,6 +190,7 @@ public:
|
||||
QByteArray changedSignal;
|
||||
QVariant initialValue;
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QWizardField, Q_MOVABLE_TYPE);
|
||||
|
||||
QWizardField::QWizardField(QWizardPage *page, const QString &spec, QObject *object,
|
||||
const char *property, const char *changedSignal)
|
||||
|
@ -317,6 +317,7 @@ public:
|
||||
QSet<AnchorData *> positives;
|
||||
QSet<AnchorData *> negatives;
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(GraphPath, Q_MOVABLE_TYPE);
|
||||
|
||||
class QGraphicsAnchorLayoutPrivate;
|
||||
/*!
|
||||
|
@ -369,6 +369,7 @@ public:
|
||||
#endif
|
||||
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QHeaderViewPrivate::SectionItem, Q_PRIMITIVE_TYPE);
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -93,6 +93,7 @@ private:
|
||||
mutable int indexHint;
|
||||
uint visited;
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QListViewItem, Q_PRIMITIVE_TYPE);
|
||||
|
||||
struct QListViewLayoutInfo
|
||||
{
|
||||
@ -105,6 +106,7 @@ struct QListViewLayoutInfo
|
||||
QListView::Flow flow;
|
||||
int max;
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QListViewLayoutInfo, Q_PRIMITIVE_TYPE);
|
||||
|
||||
class QListView;
|
||||
class QListViewPrivate;
|
||||
|
@ -58,6 +58,7 @@ public:
|
||||
QVariant value;
|
||||
inline bool operator==(const QWidgetItemData &other) const { return role == other.role && value == other.value; }
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QWidgetItemData, Q_MOVABLE_TYPE);
|
||||
|
||||
#ifndef QT_NO_DATASTREAM
|
||||
|
||||
|
@ -196,6 +196,9 @@ public:
|
||||
|
||||
QScroller *q_ptr;
|
||||
};
|
||||
template <>
|
||||
class QTypeInfo<QScrollerPrivate::ScrollSegment>
|
||||
: public QTypeInfoMerger<QScrollerPrivate::ScrollSegment, QEasingCurve> {};
|
||||
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -139,6 +139,7 @@ public:
|
||||
int lastKeypadScrollValue;
|
||||
#endif
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QTextBrowserPrivate::HistoryEntry, Q_MOVABLE_TYPE);
|
||||
|
||||
QString QTextBrowserPrivate::findFile(const QUrl &name) const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user