mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
lround() -> qRound()
BUG: 147540 svn path=/trunk/KDE/kdegraphics/okular/; revision=683290
This commit is contained in:
parent
723c3a482a
commit
80d7b04b0f
|
@ -23,9 +23,6 @@
|
|||
#include <kactioncollection.h>
|
||||
#include <kicon.h>
|
||||
|
||||
// system includes
|
||||
#include <math.h>
|
||||
|
||||
// local includes
|
||||
#include "pagepainter.h"
|
||||
#include "core/area.h"
|
||||
|
@ -508,7 +505,7 @@ ThumbnailWidget::ThumbnailWidget( QWidget * parent, const Okular::Document * doc
|
|||
void ThumbnailWidget::resizeFitWidth( int width )
|
||||
{
|
||||
m_pixmapWidth = width - m_margin;
|
||||
m_pixmapHeight = lround( m_page->ratio() * (double)m_pixmapWidth );
|
||||
m_pixmapHeight = qRound( m_page->ratio() * (double)m_pixmapWidth );
|
||||
setFixedSize( QSize( width, heightHint() ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue