22#include <QWeakPointer>
40 QVector<QWeakPointer<T>> return_vector;
41 for (
const auto shared : vector) {
42 return_vector.append(shared.toWeakRef());
51 QVector<QSharedPointer<T>> return_vector;
52 for (
const auto weak : vector) {
53 return_vector.append(weak.toStrongRef());
QString marginsToString(const QMargins &margins)
QETUtils::marginsToString.
Definition qetutils.cpp:30
bool sortBeginIntString(const QString &str_a, const QString &str_b)
QETUtils::sortBeginIntString Sort the string str_a and str_b and take in count if string begin with a...
Definition qetutils.cpp:106
QVector< QWeakPointer< T > > sharedVectorToWeak(const QVector< QSharedPointer< T > > &vector)
Definition qetutils.h:38
qreal graphicsHandlerSize(QGraphicsItem *item)
QETUtils::graphicsHandlerSize.
Definition qetutils.cpp:70
QMargins marginsFromString(const QString &string)
QETUtils::marginsFromString.
Definition qetutils.cpp:49
QVector< QSharedPointer< T > > weakVectorToShared(const QVector< QWeakPointer< T > > &vector)
Definition qetutils.h:49