comparison examples/layouts/dynamiclayouts/dialog.d @ 406:778ef7374fb5

Fixes for 64 bit. Now all examples compile with gdc 64 bit
author Eldar Insafutdinov
date Fri, 18 Mar 2011 00:30:48 +0000
parents 185df9220ea7
children
comparison
equal deleted inserted replaced
403:8564ab82ea42 406:778ef7374fb5
115 foreach (QWidget widget; rotableWidgets) 115 foreach (QWidget widget; rotableWidgets)
116 rotableLayout.removeWidget(widget); 116 rotableLayout.removeWidget(widget);
117 117
118 rotableWidgets = rotableWidgets[1..$] ~ rotableWidgets[0]; 118 rotableWidgets = rotableWidgets[1..$] ~ rotableWidgets[0];
119 119
120 int n = rotableWidgets.length; 120 auto n = rotableWidgets.length;
121 for (int i = 0; i < n / 2; ++i) { 121 for (int i = 0; i < n / 2; ++i) {
122 rotableLayout.addWidget(rotableWidgets[n - i - 1], 0, i); 122 rotableLayout.addWidget(rotableWidgets[n - i - 1], 0, i);
123 rotableLayout.addWidget(rotableWidgets[i], 1, i); 123 rotableLayout.addWidget(rotableWidgets[i], 1, i);
124 } 124 }
125 } 125 }
144 rotableWidgets ~= a0; 144 rotableWidgets ~= a0;
145 rotableWidgets ~= a1; 145 rotableWidgets ~= a1;
146 rotableWidgets ~= a2; 146 rotableWidgets ~= a2;
147 rotableWidgets ~= a3; 147 rotableWidgets ~= a3;
148 148
149 int n = rotableWidgets.length; 149 auto n = rotableWidgets.length;
150 150
151 for (int i = 0; i < n; ++i) 151 for (int i = 0; i < n; ++i)
152 connect(rotableWidgets[i], "valueChanged", rotableWidgets[(i + 1) % n], "setValue"); 152 connect(rotableWidgets[i], "valueChanged", rotableWidgets[(i + 1) % n], "setValue");
153 153
154 rotableLayout = new QGridLayout; 154 rotableLayout = new QGridLayout;