https://bugs.kde.org/show_bug.cgi?id=446163
Bug ID: 446163 Summary: kalarm: src/messagewindow.cpp:1258:45: error: invalid use of incomplete type ‘class QScreen’ Product: kalarm Version: 3.3.3 Platform: Gentoo Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: djar...@kde.org Reporter: ast...@gentoo.org Target Milestone: --- Created attachment 143998 --> https://bugs.kde.org/attachment.cgi?id=143998&action=edit build.log When building without X11, QScreen include is hidden behind #ifdef KDEPIM_HAVE_X11 inside src/messagewindow.cpp, but the code still depends on QScreen: src/messagewindow.cpp: In member function ‘bool MessageWindow::getWorkAreaAndModal()’: src/messagewindow.cpp:1258:45: error: invalid use of incomplete type ‘class QScreen’ 1258 | if (QGuiApplication::primaryScreen()->virtualSiblings().size() > 1) | ^~ In file included from /usr/include/qt5/QtWidgets/qwidget.h:55, from /usr/include/qt5/QtWidgets/qmainwindow.h:44, from /usr/include/qt5/QtWidgets/QMainWindow:1, from /usr/include/KF5/KXmlGui/kmainwindow.h:20, from /usr/include/KF5/KXmlGui/kxmlguiwindow.h:17, from /usr/include/KF5/KXmlGui/KXmlGuiWindow:1, from src/mainwindowbase.h:11, from src/messagewindow.h:11, from src/messagewindow.cpp:9: /usr/include/qt5/QtGui/qcursor.h:51:7: note: forward declaration of ‘class QScreen’ 51 | class QScreen; | ^~~~~~~ src/messagewindow.cpp:1265:44: error: invalid use of incomplete type ‘class QScreen’ 1265 | screenRects[s] = screens[s]->geometry(); | ^~ In file included from /usr/include/qt5/QtWidgets/qwidget.h:55, from /usr/include/qt5/QtWidgets/qmainwindow.h:44, from /usr/include/qt5/QtWidgets/QMainWindow:1, from /usr/include/KF5/KXmlGui/kmainwindow.h:20, from /usr/include/KF5/KXmlGui/kxmlguiwindow.h:17, from /usr/include/KF5/KXmlGui/KXmlGuiWindow:1, from src/mainwindowbase.h:11, from src/messagewindow.h:11, from src/messagewindow.cpp:9: /usr/include/qt5/QtGui/qcursor.h:51:7: note: forward declaration of ‘class QScreen’ 51 | class QScreen; | ^~~~~~~ Attaching full build.log. -- You are receiving this mail because: You are watching all bug changes.