|
QString | marginsToString (const QMargins &margins) |
| QETUtils::marginsToString.
|
|
QMargins | marginsFromString (const QString &string) |
| QETUtils::marginsFromString.
|
|
qreal | graphicsHandlerSize (QGraphicsItem *item) |
| QETUtils::graphicsHandlerSize.
|
|
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 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 > > | sharedVectorToWeak (const QVector< QSharedPointer< T > > &vector) |
|
template<typename T > |
QVector< QSharedPointer< T > > | weakVectorToShared (const QVector< QWeakPointer< T > > &vector) |
|
Provide some small utils function
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".
- Parameters
-
- Returns