git-svn-id: svn://db.shs.com.ru/libs@395 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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.);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user