Remove deprecated method

remotes/origin/Applications/19.04
Laurent Montel 7 years ago
parent 2b6e75e411
commit c3db297225
  1. 2
      generators/dvi/dviRenderer.cpp
  2. 4
      ui/presentationwidget.cpp
  3. 2
      ui/thumbnaillist.h

@ -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(); }
};

Loading…
Cancel
Save