~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/mainwindow.cpp

  • Committer: Adam Reichold
  • Date: 2013-01-27 09:23:28 UTC
  • Revision ID: adamreichold@myopera.com-20130127092328-tz4tbscp7nyd8ey0
implement links to external documents in MainWindow and update translation templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
        connect(newTab, SIGNAL(scaleFactorChanged(qreal)), SLOT(on_currentTab_scaleFactorChanged(qreal)));
208
208
        connect(newTab, SIGNAL(rotationChanged(Rotation)), SLOT(on_currentTab_rotationChanged(Rotation)));
209
209
 
 
210
        connect(newTab, SIGNAL(linkClicked(QString,int)), SLOT(on_currentTab_linkClicked(QString,int)));
 
211
 
210
212
        connect(newTab, SIGNAL(highlightAllChanged(bool)), SLOT(on_currentTab_highlightAllChanged(bool)));
211
213
        connect(newTab, SIGNAL(rubberBandModeChanged(RubberBandMode)), SLOT(on_currentTab_rubberBandModeChanged(RubberBandMode)));
212
214
 
584
586
    }
585
587
}
586
588
 
 
589
void MainWindow::on_currentTab_linkClicked(const QString& filePath, int page)
 
590
{
 
591
    jumpToPageOrOpenInNewTab(filePath, page, true);
 
592
}
 
593
 
587
594
void MainWindow::on_currentTab_highlightAllChanged(bool highlightAll)
588
595
{
589
596
    if(senderIsCurrentTab())