diff examples/draganddrop/dropsite/dropsitewindow.d @ 350:31520b2c0b3c

Removed dependency on parent trait and stringof
author Max Samukha <maxter@spambox.com>
date Thu, 20 May 2010 15:49:08 +0300
parents 7a3c43424dca
children a032df77b6ab
line wrap: on
line diff
--- a/examples/draganddrop/dropsite/dropsitewindow.d	Mon May 17 21:48:15 2010 +0300
+++ b/examples/draganddrop/dropsite/dropsitewindow.d	Thu May 20 15:49:08 2010 +0300
@@ -41,7 +41,7 @@
 
 module dropsitewindow;
 
-import std.string;
+import std.string : format, strip, toupper;
 
 import qt.gui.QWidget;
 import qt.gui.QLabel;
@@ -56,13 +56,13 @@
 class DropSiteWindow : public QWidget
 {
 public:
-	
+
 	this()
 	{
 		abstractLabel = new QLabel(tr("This example accepts drags from other "
 			"applications and displays the MIME types "
 			"provided by the drag object."));
-		
+
 		abstractLabel.setWordWrap(true);
 		abstractLabel.adjustSize();
 
@@ -125,7 +125,7 @@
 			} else {
 				QByteArray data = mimeData.data(format);
 				for (int i = 0; i < data.size() && i < 32; ++i) {
-					string hex = toupper(std.string.format("%x", data.at(i)));					
+					string hex = toupper(std.string.format("%x", data.at(i)));
 					text ~= hex ~ " ";
 				}
 			}
@@ -148,6 +148,6 @@
 	QPushButton clearButton;
 	QPushButton quitButton;
 	QDialogButtonBox buttonBox;
-    
+
     mixin Q_OBJECT;
 }