From 453a3a24c73948eb857012a21edef0091d250a23 Mon Sep 17 00:00:00 2001 From: Jakub Melka Date: Mon, 31 May 2021 18:59:12 +0200 Subject: [PATCH] Bugfixing: plugin toolbar, missing progress --- Pdf4QtLib/sources/pdfprogress.h | 3 ++- Pdf4QtViewer/pdfprogramcontroller.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Pdf4QtLib/sources/pdfprogress.h b/Pdf4QtLib/sources/pdfprogress.h index 12f33b0..b141647 100644 --- a/Pdf4QtLib/sources/pdfprogress.h +++ b/Pdf4QtLib/sources/pdfprogress.h @@ -45,7 +45,8 @@ public: void finish(); signals: - void progressStarted(ProgressStartupInfo info); + // Namespace pdf:: must be here, due to queued signals calling + void progressStarted(pdf::ProgressStartupInfo info); void progressStep(int percentage); void progressFinished(); diff --git a/Pdf4QtViewer/pdfprogramcontroller.cpp b/Pdf4QtViewer/pdfprogramcontroller.cpp index 4a571dc..6564487 100644 --- a/Pdf4QtViewer/pdfprogramcontroller.cpp +++ b/Pdf4QtViewer/pdfprogramcontroller.cpp @@ -1789,6 +1789,7 @@ void PDFProgramController::loadPlugins() if (!actions.empty()) { QToolBar* toolBar = m_mainWindow->addToolBar(plugin.first.name); + toolBar->setObjectName(QString("Plugin_Toolbar_%1").arg(plugin.first.name)); m_mainWindowInterface->adjustToolbar(toolBar); QMenu* menu = m_mainWindowInterface->addToolMenu(plugin.first.name); for (QAction* action : actions)