ui: added universal font size setting and shortcuts for changing it
This change adds font size and font family to the ApplicationSettings to have a single point for manipulating them. The font size can also be changed via the menu or the zoomIn and zoomOut shortcuts on all platforms.
This commit is contained in:
@@ -145,7 +145,7 @@ void QtAutocompletionDelegate::paint(QPainter* painter, const QStyleOptionViewIt
|
||||
if (font.pointSize() > 0)
|
||||
{
|
||||
QFont typeFont = font;
|
||||
typeFont.setPointSize(10);
|
||||
typeFont.setPointSize(ApplicationSettings::getInstance()->getFontSize() - 4);
|
||||
painter->setFont(typeFont);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user