added signal emissions

Thu, 15 Mar 2018 10:46:46 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 15 Mar 2018 10:46:46 +0200
changeset 1285
0d165d277562
parent 1284
7da74697b7d2
child 1286
2a0316eb374c

added signal emissions

src/primitives.cpp file | annotate | diff | comparison | revisions
--- a/src/primitives.cpp	Wed Mar 14 12:18:52 2018 +0200
+++ b/src/primitives.cpp	Thu Mar 15 10:46:46 2018 +0200
@@ -63,6 +63,9 @@
 	}
 	else
 	{
+		emit layoutAboutToBeChanged();
+		m_primitives.clear();
+
 		while (not primitivesFile.atEnd())
 		{
 			QString line = primitivesFile.readLine().simplified();
@@ -78,6 +81,7 @@
 		}
 
 		populateCategories();
+		emit layoutChanged();
 		print(tr("%1 primitives loaded.") + "\n", countof(m_primitives));
 	}
 }

mercurial