MCPcopy Create free account
hub / github.com/KDE/konsole / decreaseFontSize

Method decreaseFontSize

src/terminalDisplay/TerminalFonts.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void TerminalFont::decreaseFontSize()
139{
140 const qreal MinimumFontSize = 6;
141
142 QFont font = qobject_cast<QWidget *>(m_parent)->font();
143 font.setPointSizeF(qMax(font.pointSizeF() - 1, MinimumFontSize));
144 setVTFont(font);
145}
146
147void TerminalFont::resetFontSize()
148{

Callers 1

wheelEventMethod · 0.45

Calls 1

fontMethod · 0.80

Tested by

no test coverage detected