mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Sponsor button
This commit is contained in:
@ -530,6 +530,10 @@ void PDFProgramController::initialize(Features features,
|
||||
{
|
||||
connect(action, &QAction::triggered, this, &PDFProgramController::onActionGetSource);
|
||||
}
|
||||
if (QAction* action = m_actionManager->getAction(PDFActionManager::BecomeSponsor))
|
||||
{
|
||||
connect(action, &QAction::triggered, this, &PDFProgramController::onActionBecomeSponsor);
|
||||
}
|
||||
if (QAction* action = m_actionManager->getAction(PDFActionManager::AutomaticDocumentRefresh))
|
||||
{
|
||||
connect(action, &QAction::triggered, this, &PDFProgramController::onActionAutomaticDocumentRefresh);
|
||||
@ -2460,6 +2464,11 @@ void PDFProgramController::onActionGetSource()
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/JakubMelka/PDF4QT"));
|
||||
}
|
||||
|
||||
void PDFProgramController::onActionBecomeSponsor()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/sponsors/JakubMelka"));
|
||||
}
|
||||
|
||||
void PDFProgramController::onActionAutomaticDocumentRefresh()
|
||||
{
|
||||
updateFileWatcher();
|
||||
|
Reference in New Issue
Block a user