LibrePCB Developers Documentation
|
Qt compatibility helper class. More...
#include <qtcompat.h>
Public Types | |
using | Hash = uint |
Return type of Qt's qHash() function. More... | |
Public Member Functions | |
QtCompat ()=delete | |
QtCompat (const QtCompat &other)=delete | |
~QtCompat ()=delete | |
QtCompat & | operator= (const QtCompat &rhs)=delete |
Static Public Member Functions | |
static constexpr Qt::SplitBehavior | keepEmptyParts () noexcept |
String split behavior. More... | |
static constexpr Qt::SplitBehavior | skipEmptyParts () noexcept |
static QStringRef | midRef (const QString &s, int pos, int n=-1) noexcept |
Wrapper for QString::midRef() More... | |
Qt compatibility helper class.
This class provides some helpers to simplify keeping compatibility with various Qt versions without getting deprecation warnings.
|
delete |
|
delete |
|
inlinestaticconstexprnoexcept |
String split behavior.
Used for QString::split() which changed its function signature in Qt 5.15.
|
inlinestaticconstexprnoexcept |
|
inlinestaticnoexcept |
Wrapper for QString::midRef()