QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Namespaces | Functions
qetutils.h File Reference
#include <QMargins>
#include <QWeakPointer>
Include dependency graph for qetutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  QETUtils
 

Functions

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)