Grah

Thu, 09 Feb 2017 23:45:53 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 09 Feb 2017 23:45:53 +0200
changeset 1118
3eeb258f1fb9
parent 1117
efcb47c64a72
child 1119
749fdf61b5cd

Grah

src/ldDocument.cpp file | annotate | diff | comparison | revisions
src/ldDocument.h file | annotate | diff | comparison | revisions
--- a/src/ldDocument.cpp	Thu Feb 09 22:46:37 2017 +0200
+++ b/src/ldDocument.cpp	Thu Feb 09 23:45:53 2017 +0200
@@ -298,7 +298,7 @@
 {
 	Model::insertObject(pos, obj);
 	history()->add(new AddHistoryEntry {pos, obj});
-	connect(obj, SIGNAL(codeChanged(int,QString,QString)), this, SLOT(objectChanged(int,QString,QString)));
+	connect(obj, SIGNAL(codeChanged(QString,QString)), this, SLOT(objectChanged(QString,QString)));
 
 #ifdef DEBUG
 	if (not isFrozen())
@@ -306,7 +306,7 @@
 #endif
 }
 
-void LDDocument::objectChanged(int position, QString before, QString after)
+void LDDocument::objectChanged(QString before, QString after)
 {
 	LDObject* object = static_cast<LDObject*>(sender());
 	addToHistory(new EditHistoryEntry {object->lineNumber(), before, after});
@@ -475,7 +475,7 @@
 //
 void LDDocument::clearSelection()
 {
-	for (LDObject* object : m_selection)
+	for (LDObject* object : m_selection.toList())
 		removeFromSelection(object);
 }
 
--- a/src/ldDocument.h	Thu Feb 09 22:46:37 2017 +0200
+++ b/src/ldDocument.h	Thu Feb 09 23:45:53 2017 +0200
@@ -88,7 +88,7 @@
 	static QString shortenName (QString a); // Turns a full path into a relative path
 
 public slots:
-	void objectChanged(int position, QString before, QString after);
+	void objectChanged(QString before, QString after);
 
 protected:
 	LDObject* withdrawAt(int position);

mercurial