diff options
author | Daniel Poelzleithner <git@poelzi.org> | 2020-12-07 12:10:56 +0100 |
---|---|---|
committer | Daniel Poelzleithner <git@poelzi.org> | 2020-12-07 12:10:56 +0100 |
commit | e77124c39828cbc120f6bf566db084869a04b42d (patch) | |
tree | 46020dafe469eed4f04bf7d8081935ae1338a28d /src/widget/wpushbutton.cpp | |
parent | bf343d2677f19d1886682c4bd15e26f70884ce27 (diff) |
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 <basename>_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.
Diffstat (limited to 'src/widget/wpushbutton.cpp')
-rw-r--r-- | src/widget/wpushbutton.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/widget/wpushbutton.cpp b/src/widget/wpushbutton.cpp index 339c61f7d2..768a1ed031 100644 --- a/src/widget/wpushbutton.cpp +++ b/src/widget/wpushbutton.cpp @@ -17,18 +17,19 @@ #include "widget/wpushbutton.h" -#include <QStylePainter> -#include <QStyleOption> -#include <QPixmap> -#include <QtDebug> +#include <QApplication> #include <QMouseEvent> -#include <QTouchEvent> #include <QPaintEvent> -#include <QApplication> +#include <QPixmap> +#include <QStyleOption> +#include <QStylePainter> +#include <QTouchEvent> +#include <QtDebug> #include "control/controlbehavior.h" #include "control/controlobject.h" #include "control/controlpushbutton.h" +#include "moc_wpushbutton.cpp" #include "util/debug.h" #include "util/math.h" #include "widget/wpixmapstore.h" |