mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
Remove deprecated method
This commit is contained in:
parent
2b6e75e411
commit
c3db297225
3 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue