#include <QMargins>
#include <QWeakPointer>
Go to the source code of this file.
|
QString | QETUtils::marginsToString (const QMargins &margins) |
| QETUtils::marginsToString.
|
|
QMargins | QETUtils::marginsFromString (const QString &string) |
| QETUtils::marginsFromString.
|
|
qreal | QETUtils::graphicsHandlerSize (QGraphicsItem *item) |
| QETUtils::graphicsHandlerSize.
|
|
bool | QETUtils::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 an int to sort it as int and not as string in this case. For example if we have to sort the string : "3str", 10str", "100str", "2str", "20str".
The default behavior when sorting QString with the comparison operator will be:
"10str" "100str" "2str", "20str", "3str"
When sorting with this function, the result will be :
"10str", "2str", "3str", "20str", "100str".
|
|
template<typename T > |
QVector< QWeakPointer< T > > | QETUtils::sharedVectorToWeak (const QVector< QSharedPointer< T > > &vector) |
|
template<typename T > |
QVector< QSharedPointer< T > > | QETUtils::weakVectorToShared (const QVector< QWeakPointer< T > > &vector) |
|