From e77124c39828cbc120f6bf566db084869a04b42d Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Mon, 7 Dec 2020 12:10:56 +0100 Subject: Slimdown moc_compilation.cpp The moc_compilation file became unbearable large, easily taking 10 minutes to compile whenever a Q_OBJECT changes. AUTOMOC scans for _moc.cpp includes and does not add the file to the moc_compilation whenever it is included in the propper cpp file. After this patch, moc_compilation.cpp is empty and the mocs are compiled with the approptial cpp, increasing recompile speeds by a factor of 10 when just a header file changed. --- src/widget/wlabel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/widget/wlabel.cpp') diff --git a/src/widget/wlabel.cpp b/src/widget/wlabel.cpp index 5a07154bc5..b9d5acb4c1 100644 --- a/src/widget/wlabel.cpp +++ b/src/widget/wlabel.cpp @@ -19,6 +19,7 @@ #include +#include "moc_wlabel.cpp" #include "widget/wskincolor.h" WLabel::WLabel(QWidget* pParent) -- cgit v1.2.3