| 1 | //in Qt5 I get many deprcation warnings but the code still needs to be compatible with qt4 so this is thougt to be useful |
| 2 | #ifndef XLEDEPR_H |
| 3 | #define XLEDEPR_H 1 |
| 4 | #if (QT_VERSION >= 0x050e00) |
| 5 | #define skipEmptyParts Qt::SkipEmptyParts |
| 6 | #define keepEmptyParts Qt::KeepEmptyParts |
| 7 | #else |
| 8 | #define skipEmptyParts QString::SkipEmptyParts |
| 9 | #define keepEmptyParts QString::KeepEmptyParts |
| 10 | #endif |
| 11 | |
| 12 | #endif |