Mercurial > projects > qtd
changeset 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 | 8564ab82ea42 |
children | eb959324f82a |
files | examples/itemviews/CMakeLists.txt examples/layouts/borderlayout/borderlayout.d examples/layouts/dynamiclayouts/dialog.d |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/itemviews/CMakeLists.txt Thu Mar 17 19:46:11 2011 +0000 +++ b/examples/itemviews/CMakeLists.txt Fri Mar 18 00:30:48 2011 +0000 @@ -1,2 +1,2 @@ - add_subdirectory(dirview) +add_subdirectory(dirview) add_subdirectory(customsortfiltermodel) \ No newline at end of file
--- a/examples/layouts/borderlayout/borderlayout.d Thu Mar 17 19:46:11 2011 +0000 +++ b/examples/layouts/borderlayout/borderlayout.d Fri Mar 18 00:30:48 2011 +0000 @@ -104,7 +104,7 @@ int count() const { - return list.length; + return cast(int)list.length; } IQLayoutItem itemAt(int index) const
--- a/examples/layouts/dynamiclayouts/dialog.d Thu Mar 17 19:46:11 2011 +0000 +++ b/examples/layouts/dynamiclayouts/dialog.d Fri Mar 18 00:30:48 2011 +0000 @@ -117,7 +117,7 @@ rotableWidgets = rotableWidgets[1..$] ~ rotableWidgets[0]; - int n = rotableWidgets.length; + auto n = rotableWidgets.length; for (int i = 0; i < n / 2; ++i) { rotableLayout.addWidget(rotableWidgets[n - i - 1], 0, i); rotableLayout.addWidget(rotableWidgets[i], 1, i); @@ -146,7 +146,7 @@ rotableWidgets ~= a2; rotableWidgets ~= a3; - int n = rotableWidgets.length; + auto n = rotableWidgets.length; for (int i = 0; i < n; ++i) connect(rotableWidgets[i], "valueChanged", rotableWidgets[(i + 1) % n], "setValue");