From e5244615e09da4f6f9b332c36992985eeae30a5a Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 11 Aug 2026 07:08:56 +0000 Subject: [PATCH 5/5] Include where the streaming qWarning() is used Qt4's headers are leaner than Qt5's and do not drag QDebug in transitively, so qWarning() << ... hits an incomplete type: thumbnailgeneratorthread.cpp:132: error: invalid use of incomplete type 'class QDebug' converter.cpp, dialogmultipageeditor.cpp and multipageconverter.cpp already include it; thumbnailgeneratorthread.cpp and mainwindowimpl.cpp did not. translator.cpp and updatechecker.cpp are left alone: their only qDebug() calls are commented out. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01PYgCCiu49ZE7W7TqTdxhBi --- src/mainwindowimpl.cpp | 1 + src/thumbnailgeneratorthread.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mainwindowimpl.cpp b/src/mainwindowimpl.cpp index 907d403..3789926 100755 --- a/src/mainwindowimpl.cpp +++ b/src/mainwindowimpl.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include "qt4compat.h" diff --git a/src/thumbnailgeneratorthread.cpp b/src/thumbnailgeneratorthread.cpp index 40087d1..2ca11d4 100755 --- a/src/thumbnailgeneratorthread.cpp +++ b/src/thumbnailgeneratorthread.cpp @@ -22,6 +22,7 @@ */ #include +#include #include "formats.h" #include "thumbnailgeneratorthread.h" #include "globals.h"