git-svn-id: svn://db.shs.com.ru/libs@395 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2018-06-04 13:34:16 +00:00
parent cd63546e74
commit 700e331cb9
6 changed files with 21 additions and 2 deletions

View File

@@ -139,3 +139,8 @@ QSize preferredIconSize(float x) {
int s = qMax<int>(8, qRound(fontHeight() * x));
return QSize(s, s);
}
double appScale() {
return qMax<double>(fontHeight() / 15., 1.);
}

View File

@@ -120,6 +120,7 @@ QString uniqueName(QString n, const QStringList & names);
int fontHeight();
int lineThickness();
QSize preferredIconSize(float x = 1.f);
double appScale();
#endif // QAD_TYPES_H