#ifndef METRICS_H #define METRICS_H #include class QRect; class QRectF; class QFontMetrics; class QFontMetricsF; template struct Metrics {}; template<> struct Metrics { using Rect = QRect; using FontMetrics = QFontMetrics; }; template<> struct Metrics { using Rect = QRectF; using FontMetrics = QFontMetricsF; }; #endif //METRICS_H