Mercurial > projects > qtd
comparison examples/draganddrop/dropsite/dropsitewindow.d @ 211:7ea67ec3cf29
another fixes in examples
author | SokoL_SD |
---|---|
date | Tue, 14 Jul 2009 12:50:04 +0000 |
parents | aeeaae4dd540 |
children | 8aaa84d48451 |
comparison
equal
deleted
inserted
replaced
210:3ea0efe4d31e | 211:7ea67ec3cf29 |
---|---|
42 module dropsitewindow; | 42 module dropsitewindow; |
43 | 43 |
44 version(Tango) { | 44 version(Tango) { |
45 import tango.text.Util; | 45 import tango.text.Util; |
46 import tango.text.Ascii; | 46 import tango.text.Ascii; |
47 import tango.text.convert.Format: format = Format; | 47 import tango.text.convert.Format; |
48 } else { | 48 } else { |
49 import std.string; | 49 import std.string; |
50 alias strip trim; | 50 alias strip trim; |
51 } | 51 } |
52 | 52 |
131 } | 131 } |
132 } else { | 132 } else { |
133 QByteArray data = mimeData.data(format); | 133 QByteArray data = mimeData.data(format); |
134 for (int i = 0; i < data.size() && i < 32; ++i) { | 134 for (int i = 0; i < data.size() && i < 32; ++i) { |
135 version(Tango) | 135 version(Tango) |
136 string hex = toUupper(Format("{0:x}", data.at(i))); | 136 string hex = toUpper(Format("{0:x}", data.at(i))); |
137 else | 137 else |
138 string hex = toupper(std.string.format("%x", data.at(i))); | 138 string hex = toupper(std.string.format("%x", data.at(i))); |
139 text ~= hex ~ " "; | 139 text ~= hex ~ " "; |
140 } | 140 } |
141 } | 141 } |