USe new connect api

This commit is contained in:
Montel Laurent 2015-03-17 09:08:04 +01:00
parent 3580f0089b
commit ae30a7fc51
5 changed files with 7 additions and 7 deletions

View file

@ -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)),

View file

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

View file

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

View file

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

View file

@ -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