blob: ba45ab916677e6f84d6a9e4ef77d3b3a30f79e53 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* metrics.h
*
* header file for common function to find/compute essential UI metrics
* (font properties, icon sizes, etc)
*
*/
#ifndef METRICS_H
#define METRICS_H
#include <QFont>
#include <QFontMetrics>
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());
#endif // METRICS_H
|