On Mon, May 19, 2025 at 10:01:52PM +0000, Pavel Sanda wrote:
commit d37c771c1c3bf6aa5a12b9c4d1f0287189b731bb Author: Pavel Sanda <sa...@lyx.org> Date: Tue May 20 00:00:40 2025 +0200 Pass through all qt include candidates in .cpp files. Automatically find those QClass instances which appears only in include but nowhere as a string "QClass" in the body.
This is with Qt6: ../../../../src/frontends/qt/GuiApplication.cpp: In member function ‘QPixmap lyx::frontend::GuiApplication::prepareForDarkMode(QPixmap) const’: ../../../../src/frontends/qt/GuiApplication.cpp:647:49: error: invalid use of incomplete type ‘class QStyle’ 647 | QColor text_color = theGuiApp()->style()->standardPalette().color(QPalette::Active, QPalette::WindowText); | ^~ In file included from /usr/local/qt6/include/QtWidgets/QApplication:1, from ../../../../src/frontends/qt/GuiApplication.h:21, from ../../../../src/frontends/qt/GuiApplication.cpp:15: /usr/local/qt6/include/QtWidgets/qapplication.h:18:7: note: forward declaration of ‘class QStyle’ 18 | class QStyle; | ^~~~~~ ../../../../src/frontends/qt/GuiApplication.cpp: In static member function ‘static void lyx::frontend::Application::applyPrefs()’: ../../../../src/frontends/qt/GuiApplication.cpp:1271:37: error: invalid use of incomplete type ‘class QStyleHints’ 1271 | guiApp->styleHints()->setColorScheme(Qt::ColorScheme::Dark); | ^~ In file included from /usr/local/qt6/include/QtWidgets/qapplication.h:13: /usr/local/qt6/include/QtGui/qguiapplication.h:24:7: note: forward declaration of ‘class QStyleHints’ 24 | class QStyleHints; | ^~~~~~~~~~~ ../../../../src/frontends/qt/GuiApplication.cpp:1273:37: error: invalid use of incomplete type ‘class QStyleHints’ 1273 | guiApp->styleHints()->setColorScheme(Qt::ColorScheme::Light); | ^~ /usr/local/qt6/include/QtGui/qguiapplication.h:24:7: note: forward declaration of ‘class QStyleHints’ 24 | class QStyleHints; | ^~~~~~~~~~~ make[6]: *** [Makefile:945: GuiApplication.o] Error 1 make[6]: *** Attesa per i processi non terminati.... ../../../../src/frontends/qt/GuiPrefs.cpp: In member function ‘virtual void lyx::frontend::PrefUserInterface::applyRC(lyx::LyXRC&) const’: ../../../../src/frontends/qt/GuiPrefs.cpp:3291:45: error: invalid use of incomplete type ‘class QStyleHints’ 3291 | guiApp->styleHints()->setColorScheme(Qt::ColorScheme::Dark); | ^~ In file included from /usr/local/qt6/include/QtWidgets/qapplication.h:13, from /usr/local/qt6/include/QtWidgets/QApplication:1, from ./ui_PrefsUi.h:14, from ../../../../src/frontends/qt/GuiPrefs.h:27, from ../../../../src/frontends/qt/GuiPrefs.cpp:14: /usr/local/qt6/include/QtGui/qguiapplication.h:24:7: note: forward declaration of ‘class QStyleHints’ 24 | class QStyleHints; | ^~~~~~~~~~~ ../../../../src/frontends/qt/GuiPrefs.cpp:3293:45: error: invalid use of incomplete type ‘class QStyleHints’ 3293 | guiApp->styleHints()->setColorScheme(Qt::ColorScheme::Light); | ^~ /usr/local/qt6/include/QtGui/qguiapplication.h:24:7: note: forward declaration of ‘class QStyleHints’ 24 | class QStyleHints; | ^~~~~~~~~~~ ../../../../src/frontends/qt/GuiPrefs.cpp:3295:45: error: invalid use of incomplete type ‘class QStyleHints’ 3295 | guiApp->styleHints()->unsetColorScheme(); | ^~ /usr/local/qt6/include/QtGui/qguiapplication.h:24:7: note: forward declaration of ‘class QStyleHints’ 24 | class QStyleHints; | ^~~~~~~~~~~ make[6]: *** [Makefile:945: GuiPrefs.o] Error 1 -- Enrico -- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel