[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/okular/ui
From:       Pino Toscano <pino () kde ! org>
Date:       2010-08-21 15:48:56
Message-ID: 20100821154856.1AD5EAC876 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1166348 by pino:

take into account also the width of the details text


 M  +1 -0      pageviewutils.cpp  


--- trunk/KDE/kdegraphics/okular/ui/pageviewutils.cpp #1166347:1166348
@@ -261,6 +261,7 @@
         QRect detailsRect = fontMetrics().boundingRect( m_details );
         detailsRect.translate( -detailsRect.left(), -detailsRect.top() );
         detailsRect.adjust( 0, 0, 2, 2 );
+        width = qMax( width, detailsRect.width() );
         height += detailsRect.height();
 
         // plus add a ~60% line spacing
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic