summaryrefslogtreecommitdiffstats
path: root/qt-ui/metrics.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/metrics.h')
-rw-r--r--qt-ui/metrics.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/qt-ui/metrics.h b/qt-ui/metrics.h
index ba45ab916..30295a3d8 100644
--- a/qt-ui/metrics.h
+++ b/qt-ui/metrics.h
@@ -10,12 +10,23 @@
#include <QFont>
#include <QFontMetrics>
+#include <QSize>
QFont defaultModelFont();
QFontMetrics defaultModelFontMetrics();
-// return the default icon size, computed as the multiple of 16 closest to
-// the given height (that defaults to the default font height)
-int defaultIconSize(int height = defaultModelFontMetrics().height());
+// Collection of icon/picture sizes and other metrics, resolution independent
+struct IconMetrics {
+ // icon sizes
+ int sz_small; // ex 16px
+ int sz_med; // ex 24px
+ int sz_big; // ex 32px
+ // picture size
+ int sz_pic; // ex 128px
+ // icon spacing
+ int spacing; // ex 2px
+};
+
+const IconMetrics & defaultIconMetrics();
#endif // METRICS_H