|
|
|
|
@ -30,6 +30,7 @@ |
|
|
|
|
#include <QFlags> |
|
|
|
|
#include <QPointer> |
|
|
|
|
#include <QScopedPointer> |
|
|
|
|
#include <QWeakPointer> |
|
|
|
|
|
|
|
|
|
namespace Breeze |
|
|
|
|
{ |
|
|
|
|
@ -37,12 +38,22 @@ namespace Breeze |
|
|
|
|
//!@name convenience typedef
|
|
|
|
|
//@{
|
|
|
|
|
|
|
|
|
|
#if QT_VERSION >= 0x050000 |
|
|
|
|
//! scoped pointer convenience typedef
|
|
|
|
|
template <typename T> using WeakPointer = QPointer<T>; |
|
|
|
|
#else |
|
|
|
|
//! scoped pointer convenience typedef
|
|
|
|
|
template <typename T> using WeakPointer = QWeakPointer<T>; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
//! scoped pointer convenience typedef
|
|
|
|
|
template <typename T> using ScopedPointer = QScopedPointer<T, QScopedPointerPodDeleter>; |
|
|
|
|
|
|
|
|
|
//! disable QStringLiteral for older Qt version
|
|
|
|
|
#if QT_VERSION < 0x050000 |
|
|
|
|
using QStringLiteral = QString; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
//@}
|
|
|
|
|
|
|
|
|
|
//! metrics
|
|
|
|
|
|