--Boundary-00=_N+iy/CS1m7O0hNu Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I've seen that the month-label showing month+year in the navbar was too sma= ll=20 to hold some large month names (e.g. November, September). I created a patch, which now calculates the width using QFontMetrics instea= d=20 of asking the label itself for the width, and this in fact gives a differen= t=20 value, which is now correct. =2D --=20 Best regards/Sch=F6ne Gr=FC=DFe Martin registered as user #332716 with the Linux Counter, http://counter.li.org Some operating systems are called 'user friendly', Linux however is 'expert friendly'. =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/yi+PHmdPoI37D4YRAsyXAJ4t3ayQjmlujwcKLNda2LSfsZd3dACeNhdR zm8mcHNignbjLdOgte9JSdc=3D =3DncE3 =2D----END PGP SIGNATURE----- --Boundary-00=_N+iy/CS1m7O0hNu Content-Type: text/x-diff; charset="iso-8859-15"; name="navbar.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="navbar.patch" ? navbar.patch Index: navigatorbar.cpp =================================================================== RCS file: /home/kde/kdepim/korganizer/navigatorbar.cpp,v retrieving revision 1.9 diff -u -3 -p -r1.9 navigatorbar.cpp --- navigatorbar.cpp 4 Oct 2003 16:04:43 -0000 1.9 +++ navigatorbar.cpp 30 Nov 2003 17:52:53 -0000 @@ -86,8 +86,8 @@ NavigatorBar::NavigatorBar( const QDate const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem(); for( i = 1; i <= calSys->monthsInYear(date); ++i ) { - mMonth->setText( QString("%1 8888").arg(calSys->monthName( i, calSys->year(date) )) ); - if ( mMonth->width() > maxwidth ) maxwidth = mMonth->width(); + int w = QFontMetrics(tfont).width( QString("%1 8888").arg(calSys->monthName( i, calSys->year(date) )) ); + if ( w > maxwidth ) maxwidth = w; } mMonth->setMinimumWidth( maxwidth ); --Boundary-00=_N+iy/CS1m7O0hNu Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kde-pim mailing list kde-pim@mail.kde.org https://mail.kde.org/mailman/listinfo/kde-pim kde-pim home page at http://pim.kde.org/ --Boundary-00=_N+iy/CS1m7O0hNu--