Get Source action

This commit is contained in:
Jakub Melka
2021-05-03 18:37:27 +02:00
parent 9618c3cf62
commit 2c03d0b4f3
6 changed files with 25 additions and 0 deletions

View File

@ -499,6 +499,10 @@ void PDFProgramController::initialize(Features features,
{
connect(action, &QAction::triggered, this, &PDFProgramController::onActionDeveloperCreateInstaller);
}
if (QAction* action = m_actionManager->getAction(PDFActionManager::GetSource))
{
connect(action, &QAction::triggered, this, &PDFProgramController::onActionGetSource);
}
if (m_recentFileManager)
{
@ -2071,6 +2075,11 @@ void PDFProgramController::onActionDeveloperCreateInstaller()
}
}
void PDFProgramController::onActionGetSource()
{
QDesktopServices::openUrl(QUrl("https://github.com/JakubMelka/PdfForQt"));
}
void PDFProgramController::onPageRenderingErrorsChanged(pdf::PDFInteger pageIndex, int errorsCount)
{
if (errorsCount > 0)