comparison 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
comparison
equal deleted inserted replaced
281:7f2e3ffa1c33 282:256ab6cb8e85
65 65
66 abstractLabel.setWordWrap(true); 66 abstractLabel.setWordWrap(true);
67 abstractLabel.adjustSize(); 67 abstractLabel.adjustSize();
68 68
69 dropArea = new DropArea; 69 dropArea = new DropArea;
70 dropArea.changed.connect(&updateFormatsTable); 70 connect!("changed")(dropArea, &updateFormatsTable);
71 71
72 string[] labels; 72 string[] labels;
73 labels ~= tr("Format"); 73 labels ~= tr("Format");
74 labels ~= tr("Content"); 74 labels ~= tr("Content");
75 75
84 84
85 buttonBox = new QDialogButtonBox; 85 buttonBox = new QDialogButtonBox;
86 buttonBox.addButton(clearButton, QDialogButtonBox.ActionRole); 86 buttonBox.addButton(clearButton, QDialogButtonBox.ActionRole);
87 buttonBox.addButton(quitButton, QDialogButtonBox.RejectRole); 87 buttonBox.addButton(quitButton, QDialogButtonBox.RejectRole);
88 88
89 quitButton.pressed.connect(&close); 89 connect!("pressed")(quitButton, &close);
90 clearButton.pressed.connect(&dropArea.clearArea); 90 connect!("pressed")(clearButton, &dropArea.clearArea);
91 91
92 QVBoxLayout mainLayout = new QVBoxLayout; 92 QVBoxLayout mainLayout = new QVBoxLayout;
93 mainLayout.addWidget(abstractLabel); 93 mainLayout.addWidget(abstractLabel);
94 mainLayout.addWidget(dropArea); 94 mainLayout.addWidget(dropArea);
95 mainLayout.addWidget(formatsTable); 95 mainLayout.addWidget(formatsTable);