# HG changeset patch # User Santeri Piippo # Date 1375314582 -10800 # Node ID a5aebcf4a1c87a63256a3e8ca2bdb02618ed6333 # Parent 8da2563c645a9fbc8a9edcf7920d99dabd2eaf0b Include the moc files in the source cpp files to reduce compile time diff -r 8da2563c645a -r a5aebcf4a1c8 src/aboutDialog.cpp --- a/src/aboutDialog.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/aboutDialog.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -42,4 +42,6 @@ void AboutDialog::slot_mail() { QDesktopServices::openUrl( QUrl( "mailto:Santeri Piippo ?subject=LDForge" )); -} \ No newline at end of file +} + +#include "build/moc_aboutDialog.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/addObjectDialog.cpp --- a/src/addObjectDialog.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/addObjectDialog.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -402,4 +402,6 @@ } g_win->fullRefresh (); -} \ No newline at end of file +} + +#include "build/moc_addObjectDialog.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/colorSelectDialog.cpp --- a/src/colorSelectDialog.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/colorSelectDialog.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -197,4 +197,6 @@ } return false; -} \ No newline at end of file +} + +#include "build/moc_colorSelectDialog.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/configDialog.cpp --- a/src/configDialog.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/configDialog.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -659,4 +659,6 @@ void KeySequenceDialog::keyPressEvent (QKeyEvent* ev) { seq = ev->key() + ev->modifiers(); updateOutput(); -} \ No newline at end of file +} + +#include "build/moc_configDialog.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/dialogs.cpp --- a/src/dialogs.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/dialogs.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -267,4 +267,6 @@ { m_progress = progress; updateValues (); -} \ No newline at end of file +} + +#include "build/moc_dialogs.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/file.cpp --- a/src/file.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/file.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -962,4 +962,6 @@ { delete g_loadedFiles[0]; } -} \ No newline at end of file +} + +#include "build/moc_file.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/gldraw.cpp --- a/src/gldraw.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/gldraw.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -1709,4 +1709,6 @@ if (g_win->R() == this) g_win->refresh(); -} \ No newline at end of file +} + +#include "build/moc_gldraw.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/gui.cpp --- a/src/gui.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/gui.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -915,4 +915,6 @@ QImage imageFromScreencap (uchar* data, ushort w, ushort h) { // GL and Qt formats have R and B swapped. Also, GL flips Y - correct it as well. return QImage (data, w, h, QImage::Format_ARGB32).rgbSwapped().mirrored(); -} \ No newline at end of file +} + +#include "build/moc_gui.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/messagelog.cpp --- a/src/messagelog.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/messagelog.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -136,4 +136,6 @@ // Also print it to stdout print( "%1\n", msg ); -} \ No newline at end of file +} + +#include "build/moc_messagelog.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/primitives.cpp --- a/src/primitives.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/primitives.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -565,4 +565,6 @@ // spinbox to 48. if( on && ui->sb_segs->value() == lores ) ui->sb_segs->setValue( hires ); -} \ No newline at end of file +} + +#include "build/moc_primitives.cpp" \ No newline at end of file diff -r 8da2563c645a -r a5aebcf4a1c8 src/widgets.cpp --- a/src/widgets.cpp Thu Aug 01 02:33:07 2013 +0300 +++ b/src/widgets.cpp Thu Aug 01 02:49:42 2013 +0300 @@ -133,4 +133,6 @@ RadioBox::it RadioBox::end() { return m_objects.end (); -} \ No newline at end of file +} + +#include "build/moc_widgets.cpp" \ No newline at end of file