mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
USe new connect api
This commit is contained in:
parent
3580f0089b
commit
ae30a7fc51
|
@ -39,8 +39,8 @@ DocumentItem::DocumentItem(QObject *parent)
|
|||
m_document = new Okular::Document(0);
|
||||
m_tocModel = new TOCModel(m_document, this);
|
||||
|
||||
connect(m_document, SIGNAL(searchFinished(int,Okular::Document::SearchStatus)),
|
||||
this, SLOT(searchFinished(int,Okular::Document::SearchStatus)));
|
||||
connect(m_document, &Okular::Document::searchFinished,
|
||||
this, &DocumentItem::searchFinished);
|
||||
connect(m_document->bookmarkManager(), SIGNAL(bookmarksChanged(QUrl)),
|
||||
this, SIGNAL(bookmarkedPagesChanged()));
|
||||
connect(m_document->bookmarkManager(), SIGNAL(bookmarksChanged(QUrl)),
|
||||
|
|
|
@ -51,7 +51,7 @@ PageItem::PageItem(QQuickItem *parent)
|
|||
m_redrawTimer = new QTimer(this);
|
||||
m_redrawTimer->setInterval(REDRAW_TIMEOUT);
|
||||
m_redrawTimer->setSingleShot(true);
|
||||
connect(m_redrawTimer, SIGNAL(timeout()), this, SLOT(delayedRedraw()));
|
||||
connect(m_redrawTimer, &QTimer::timeout, this, &PageItem::delayedRedraw);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -499,7 +499,7 @@ PageViewToolBar::PageViewToolBar( PageView * parent, QWidget * anchorWidget )
|
|||
|
||||
// create the animation timer
|
||||
d->animTimer = new QTimer( this );
|
||||
connect( d->animTimer, SIGNAL(timeout()), this, SLOT(slotAnimate()) );
|
||||
connect( d->animTimer, &QTimer::timeout, this, &PageViewToolBar::slotAnimate );
|
||||
|
||||
// apply a filter to get notified when anchor changes geometry
|
||||
d->anchorWidget->installEventFilter( this );
|
||||
|
|
|
@ -80,7 +80,7 @@ PresentationSearchBar::PresentationSearchBar( Okular::Document *document, QWidge
|
|||
|
||||
m_anchor->installEventFilter( this );
|
||||
|
||||
connect( closeBtn, SIGNAL(clicked()), this, SLOT(close()) );
|
||||
connect( closeBtn, &QAbstractButton::clicked, this, &QWidget::close );
|
||||
connect(findNextBtn, &QPushButton::clicked, m_search, &SearchLineEdit::findNext);
|
||||
}
|
||||
|
||||
|
|
|
@ -1417,8 +1417,8 @@ void PresentationWidget::slotDelayedEvents()
|
|||
if ( m_screenSelect )
|
||||
{
|
||||
m_screenSelect->setCurrentItem( m_screen );
|
||||
connect( m_screenSelect->selectableActionGroup(), SIGNAL(triggered(QAction*)),
|
||||
this, SLOT(chooseScreen(QAction*)) );
|
||||
connect( m_screenSelect->selectableActionGroup(), &QActionGroup::triggered,
|
||||
this, &PresentationWidget::chooseScreen );
|
||||
}
|
||||
|
||||
// show widget and take control
|
||||
|
|
Loading…
Reference in a new issue