mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Get Source action
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user