Include the moc files in the source cpp files to reduce compile time

Thu, 01 Aug 2013 02:49:42 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 01 Aug 2013 02:49:42 +0300
changeset 410
a5aebcf4a1c8
parent 409
8da2563c645a
child 411
fd90677cec8d

Include the moc files in the source cpp files to reduce compile time

src/aboutDialog.cpp file | annotate | diff | comparison | revisions
src/addObjectDialog.cpp file | annotate | diff | comparison | revisions
src/colorSelectDialog.cpp file | annotate | diff | comparison | revisions
src/configDialog.cpp file | annotate | diff | comparison | revisions
src/dialogs.cpp file | annotate | diff | comparison | revisions
src/file.cpp file | annotate | diff | comparison | revisions
src/gldraw.cpp file | annotate | diff | comparison | revisions
src/gui.cpp file | annotate | diff | comparison | revisions
src/messagelog.cpp file | annotate | diff | comparison | revisions
src/primitives.cpp file | annotate | diff | comparison | revisions
src/widgets.cpp file | annotate | diff | comparison | revisions
--- 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 <arezey@gmail.com>?subject=LDForge" ));
-}
\ No newline at end of file
+}
+
+#include "build/moc_aboutDialog.cpp"
\ No newline at end of file
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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
--- 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

mercurial