From kde-commits Fri May 04 07:10:51 2007 From: Thomas Zander Date: Fri, 04 May 2007 07:10:51 +0000 To: kde-commits Subject: Re: koffice/libs/kofficecore Message-Id: <200705040910.51904.zander () kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117826268600726 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1187751.ohDClnoEsC" --nextPart1187751.ohDClnoEsC Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Why the hardcoded minimum font size (of 8) ? =46ont 8 is still pretty big IMOHO. On Thursday 03 May 2007 22:16:56 Robert Knight wrote: > SVN commit 660806 by knight: > > Fix the miniscule dock widget fonts. Please shout if this solution is > incorrect. > > M +4 -4 KoMainWindow.cpp > > > --- trunk/koffice/libs/kofficecore/KoMainWindow.cpp #660805:660806 > @@ -1787,12 +1787,12 @@ > > KConfigGroup group( KGlobal::config(), "GUI" ); > QFont f =3D KGlobalSettings::generalFont(); > - double ps =3D qMin(9.0, f.pointSize() * 0.8); > - ps =3D group.readEntry("palettefontsize", ps); > - if (ps < 6) ps =3D 6; > + double ps =3D group.readEntry("palettefontsize", f.pointSize()); > + ps =3D qMax(8.0 , ps); > + f.setPointSizeF(ps); > > - f.setPointSize(6); > dockWidget->setFont(f); > + > return dockWidget; > } =2D-=20 Thomas Zander --nextPart1187751.ohDClnoEsC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGOtx7CojCW6H2z/QRAg+pAKC1TyxmQuIhEkSlWwKen9HC6X9i4QCghFGj ICibNdFsLzcbw6Dszl8sPYU= =HFS8 -----END PGP SIGNATURE----- --nextPart1187751.ohDClnoEsC--