mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
New feature: rotating pages in viewer
This commit is contained in:
@ -107,6 +107,8 @@ PDFViewerMainWindow::PDFViewerMainWindow(QWidget* parent) :
|
||||
ui->actionSelectTextAll->setShortcut(QKeySequence::SelectAll);
|
||||
ui->actionDeselectText->setShortcut(QKeySequence::Deselect);
|
||||
ui->actionCopyText->setShortcut(QKeySequence::Copy);
|
||||
ui->actionRotateRight->setShortcut(QKeySequence("Ctrl+Shift++"));
|
||||
ui->actionRotateLeft->setShortcut(QKeySequence("Ctrl+Shift+-"));
|
||||
|
||||
for (QAction* action : m_recentFileManager->getActions())
|
||||
{
|
||||
@ -1146,4 +1148,14 @@ void PDFViewerMainWindow::on_actionSend_by_E_Mail_triggered()
|
||||
}
|
||||
}
|
||||
|
||||
void PDFViewerMainWindow::on_actionRotateRight_triggered()
|
||||
{
|
||||
m_pdfWidget->getDrawWidgetProxy()->performOperation(pdf::PDFDrawWidgetProxy::RotateRight);
|
||||
}
|
||||
|
||||
void PDFViewerMainWindow::on_actionRotateLeft_triggered()
|
||||
{
|
||||
m_pdfWidget->getDrawWidgetProxy()->performOperation(pdf::PDFDrawWidgetProxy::RotateLeft);
|
||||
}
|
||||
|
||||
} // namespace pdfviewer
|
||||
|
Reference in New Issue
Block a user