Changeset View
Changeset View
Standalone View
Standalone View
liboxygen/liboxygen.h
Show All 20 Lines | |||||
21 | *************************************************************************/ | 21 | *************************************************************************/ | ||
22 | 22 | | |||
23 | #include <QFlags> | 23 | #include <QFlags> | ||
24 | #include <QWeakPointer> | 24 | #include <QWeakPointer> | ||
25 | 25 | | |||
26 | namespace Oxygen | 26 | namespace Oxygen | ||
27 | { | 27 | { | ||
28 | 28 | | |||
29 | #if QT_VERSION >= 0x050000 | | |||
30 | //* scoped pointer convenience typedef | 29 | //* scoped pointer convenience typedef | ||
31 | template <typename T> using WeakPointer = QPointer<T>; | 30 | template <typename T> using WeakPointer = QPointer<T>; | ||
32 | #else | | |||
33 | //* scoped pointer convenience typedef | | |||
34 | template <typename T> using WeakPointer = QWeakPointer<T>; | | |||
35 | #endif | | |||
36 | | ||||
37 | //* disable QStringLiteral for older Qt version | | |||
38 | #if QT_VERSION < 0x050000 | | |||
39 | using QStringLiteral = QString; | | |||
40 | #endif | | |||
41 | 31 | | |||
42 | //* corners | 32 | //* corners | ||
43 | enum Corner | 33 | enum Corner | ||
44 | { | 34 | { | ||
45 | CornerTopLeft = 0x1, | 35 | CornerTopLeft = 0x1, | ||
46 | CornerTopRight = 0x2, | 36 | CornerTopRight = 0x2, | ||
47 | CornerBottomLeft = 0x4, | 37 | CornerBottomLeft = 0x4, | ||
48 | CornerBottomRight = 0x8, | 38 | CornerBottomRight = 0x8, | ||
Show All 13 Lines |