vcl/inc/qt5/QtPainter.hxx |    1 +
 vcl/qt5/QtFrame.cxx       |    1 +
 vcl/qt5/QtMenu.cxx        |    1 +
 3 files changed, 3 insertions(+)

New commits:
commit eeb042482edb3aa5d4cd979bf00fc7d219a69d21
Author:     Michael Weghorn <[email protected]>
AuthorDate: Tue Feb 24 15:59:16 2026 +0100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Tue Feb 24 22:30:24 2026 +0100

    qt: Include QtTools header in QtFrame.cxx
    
    Required for `toColor` and more helper functions.
    
    Fixes build failures like this one seen on Windows
    when experimenting with Hossein's WIP Gerrit change [1]:
    
        C:\Users\mwegh\development\git\libreoffice
cl\qt6\../qt5/QtFrame.cxx(1036): error C3861: 'toColor': identifier not found
    
    [1] https://gerrit.libreoffice.org/c/core/+/199615
    
    Change-Id: I9f118c37989d2d3d489d553cf8258418875e20cc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200229
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <[email protected]>

diff --git a/vcl/qt5/QtFrame.cxx b/vcl/qt5/QtFrame.cxx
index 1c63d8b42670..021ae4f5d9ea 100644
--- a/vcl/qt5/QtFrame.cxx
+++ b/vcl/qt5/QtFrame.cxx
@@ -27,6 +27,7 @@
 #include <QtInstance.hxx>
 #include <QtMainWindow.hxx>
 #include <QtSvpGraphics.hxx>
+#include <QtTools.hxx>
 #include <QtTransferable.hxx>
 #if CHECK_ANY_QT_USING_X11
 #include <QtX11Support.hxx>
commit dcd9ee55703692b546542ab66f140fe071c39272
Author:     Michael Weghorn <[email protected]>
AuthorDate: Tue Feb 24 13:51:42 2026 +0100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Tue Feb 24 22:30:17 2026 +0100

    qt: Include QtTools header in QtMenu.cxx
    
    Required for `toImage` and more helper functions.
    
    Fixes this build failure seen on Windows with
    Hossein's WIP Gerrit change [1]:
    
        C:\Users\mwegh\development\git\libreoffice
cl\qt6\../qt5/QtMenu.cxx(611): error C3861: 'toQImage': identifier not found
    
    [1] https://gerrit.libreoffice.org/c/core/+/199615
    
    Change-Id: I37b1f55a199e411c0b2dfbfbfe465b24c25f3c85
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200195
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <[email protected]>

diff --git a/vcl/qt5/QtMenu.cxx b/vcl/qt5/QtMenu.cxx
index 815404df75f2..69c88432f031 100644
--- a/vcl/qt5/QtMenu.cxx
+++ b/vcl/qt5/QtMenu.cxx
@@ -15,6 +15,7 @@
 #include <QtFrame.hxx>
 #include <QtInstance.hxx>
 #include <QtMainWindow.hxx>
+#include <QtTools.hxx>
 
 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
 #include <QtWidgets/QActionGroup>
commit 59cc6da6e543843bdb9d28533b80449290021a2c
Author:     Michael Weghorn <[email protected]>
AuthorDate: Tue Feb 24 13:43:56 2026 +0100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Tue Feb 24 22:30:11 2026 +0100

    qt: Include QtTools header in QtPainter.hxx
    
    Required for `scaledQRect`.
    Fixes this build failure seen on Windows with
    Hossein's WIP Gerrit change [1]:
    
        C:\Users\mwegh\development\git\libreoffice
cl\inc\qt6\../qt5/QtPainter.hxx(46): error C3861: 'scaledQRect': identifier not 
found
    
    [1] https://gerrit.libreoffice.org/c/core/+/199615
    
    Change-Id: I8a8e21c6aedf8ab29a0f228887ac1f82928aa687
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200194
    Reviewed-by: Michael Weghorn <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/inc/qt5/QtPainter.hxx b/vcl/inc/qt5/QtPainter.hxx
index 6a14e9e13b16..90d3c08bd708 100644
--- a/vcl/inc/qt5/QtPainter.hxx
+++ b/vcl/inc/qt5/QtPainter.hxx
@@ -25,6 +25,7 @@
 
 #include "QtFrame.hxx"
 #include "QtGraphics.hxx"
+#include "QtTools.hxx"
 
 class QtPainter final : public QPainter
 {

Reply via email to