Commit c3db2972 authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated method

parent 2b6e75e4
......@@ -280,7 +280,7 @@ void dviRenderer::showThatSourceInformationIsPresent()
QWidget *topcontents = new QWidget (&dialog);
QVBoxLayout *topcontentsVBoxLayout = new QVBoxLayout(topcontents);
topcontentsVBoxLayout->setMargin(0);
topcontentsVBoxLayout->setContentsMargins(0, 0, 0, 0);
topcontentsVBoxLayout->setSpacing(KDialog::spacingHint()*2);
topcontentsVBoxLayout->setMargin(KDialog::marginHint()*2);
......
......@@ -172,7 +172,7 @@ PresentationWidget::PresentationWidget( QWidget * parent, Okular::Document * doc
m_topBar = new PresentationToolBar( this );
m_topBar->setObjectName( QStringLiteral( "presentationBar" ) );
m_topBar->setMovable( false );
m_topBar->layout()->setMargin(0);
m_topBar->layout()->setContentsMargins(0, 0, 0, 0);
m_topBar->addAction( QIcon::fromTheme( layoutDirection() == Qt::RightToLeft ? QStringLiteral("go-next") : QStringLiteral("go-previous") ), i18n( "Previous Page" ), this, SLOT(slotPrevPage()) );
m_pagesEdit = new KLineEdit( m_topBar );
QSizePolicy sp = m_pagesEdit->sizePolicy();
......@@ -238,7 +238,7 @@ PresentationWidget::PresentationWidget( QWidget * parent, Okular::Document * doc
// change topbar background color
QPalette p = m_topBar->palette();
p.setColor( QPalette::Active, QPalette::Button, Qt::gray );
p.setColor( QPalette::Active, QPalette::Background, Qt::darkGray );
p.setColor( QPalette::Active, QPalette::Window, Qt::darkGray );
m_topBar->setPalette( p );
// Grab swipe gestures to change pages
......
......@@ -80,7 +80,7 @@ class ThumbnailsBox : public QWidget
Q_OBJECT
public:
explicit ThumbnailsBox( QWidget * parent ) : QWidget( parent ) { QVBoxLayout *vbox = new QVBoxLayout(this); vbox->setMargin(0); vbox->setSpacing(0);}
explicit ThumbnailsBox( QWidget * parent ) : QWidget( parent ) { QVBoxLayout *vbox = new QVBoxLayout(this); vbox->setContentsMargins(0, 0, 0, 0); vbox->setSpacing(0);}
QSize sizeHint() const override { return QSize(); }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment