From 6e832efbde3944a6e92454f9b9e08026f1a12af9 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Thu, 24 Oct 2024 19:53:01 +0200 Subject: [PATCH] QHeaderView is unecessarily heavy to include everywhere --- src/frontends/qt/ButtonController.cpp | 1 + src/frontends/qt/GuiAbout.cpp | 1 + src/frontends/qt/GuiApplication.cpp | 1 + src/frontends/qt/GuiDialog.cpp | 1 + src/frontends/qt/GuiFontMetrics.cpp | 1 + src/frontends/qt/LaTeXHighlighter.cpp | 2 ++ src/frontends/qt/qt_helpers.cpp | 1 + src/frontends/qt/qt_helpers.h | 3 ++- 8 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt/ButtonController.cpp b/src/frontends/qt/ButtonController.cpp index e347f2df05..26e650705a 100644 --- a/src/frontends/qt/ButtonController.cpp +++ b/src/frontends/qt/ButtonController.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include diff --git a/src/frontends/qt/GuiAbout.cpp b/src/frontends/qt/GuiAbout.cpp index 0cfc86ba2d..44f30ae81a 100644 --- a/src/frontends/qt/GuiAbout.cpp +++ b/src/frontends/qt/GuiAbout.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include using namespace lyx::support; diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp index 83844d5a6c..9ea148135a 100644 --- a/src/frontends/qt/GuiApplication.cpp +++ b/src/frontends/qt/GuiApplication.cpp @@ -113,6 +113,7 @@ #include #include #include +#include #include #include #include diff --git a/src/frontends/qt/GuiDialog.cpp b/src/frontends/qt/GuiDialog.cpp index 491cbeca34..c52bbb4d9c 100644 --- a/src/frontends/qt/GuiDialog.cpp +++ b/src/frontends/qt/GuiDialog.cpp @@ -22,6 +22,7 @@ #include #include #include +#include using namespace std; diff --git a/src/frontends/qt/GuiFontMetrics.cpp b/src/frontends/qt/GuiFontMetrics.cpp index 7ad13fa3ea..28f9a5ab54 100644 --- a/src/frontends/qt/GuiFontMetrics.cpp +++ b/src/frontends/qt/GuiFontMetrics.cpp @@ -28,6 +28,7 @@ #include "support/pmprof.h" #include +#include #include #include diff --git a/src/frontends/qt/LaTeXHighlighter.cpp b/src/frontends/qt/LaTeXHighlighter.cpp index dba92704a3..0a0c0b5000 100644 --- a/src/frontends/qt/LaTeXHighlighter.cpp +++ b/src/frontends/qt/LaTeXHighlighter.cpp @@ -13,6 +13,8 @@ #include "LaTeXHighlighter.h" #include "qt_helpers.h" +#include +#include #include #include diff --git a/src/frontends/qt/qt_helpers.cpp b/src/frontends/qt/qt_helpers.cpp index 8d7fa807d0..713753a773 100644 --- a/src/frontends/qt/qt_helpers.cpp +++ b/src/frontends/qt/qt_helpers.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/src/frontends/qt/qt_helpers.h b/src/frontends/qt/qt_helpers.h index fe712dcc0f..d3ffb5b75f 100644 --- a/src/frontends/qt/qt_helpers.h +++ b/src/frontends/qt/qt_helpers.h @@ -21,12 +21,13 @@ #include -#include +#include class QComboBox; class QLineEdit; class QString; class QWidget; +class QAbstractItemView; namespace lyx {