diff examples/draganddrop/dropsite/dropsitewindow.d @ 282:256ab6cb8e85

Signals look-up andNew syntax for connect. The old one will not work from now on. This will allow for the signals overload. Although changes are done for both D1 and D2 versions, D1 won't work because of compiler bugs. I am tired of waiting for fixes.
author eldar
date Fri, 16 Oct 2009 02:43:59 +0000
parents 8aaa84d48451
children 7a3c43424dca
line wrap: on
line diff
--- a/examples/draganddrop/dropsite/dropsitewindow.d	Sun Oct 11 05:23:41 2009 +0000
+++ b/examples/draganddrop/dropsite/dropsitewindow.d	Fri Oct 16 02:43:59 2009 +0000
@@ -67,7 +67,7 @@
 		abstractLabel.adjustSize();
 
 		dropArea = new DropArea;
-		dropArea.changed.connect(&updateFormatsTable);
+		connect!("changed")(dropArea, &updateFormatsTable);
 
 		string[] labels;
 		labels ~= tr("Format");
@@ -86,8 +86,8 @@
 		buttonBox.addButton(clearButton, QDialogButtonBox.ActionRole);
 		buttonBox.addButton(quitButton, QDialogButtonBox.RejectRole);
 
-		quitButton.pressed.connect(&close);
-		clearButton.pressed.connect(&dropArea.clearArea);
+		connect!("pressed")(quitButton, &close);
+		connect!("pressed")(clearButton, &dropArea.clearArea);
 
 		QVBoxLayout mainLayout = new QVBoxLayout;
 		mainLayout.addWidget(abstractLabel);