diff examples/mainwindows/dockwidgets/mainwindow.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
line wrap: on
line diff
--- a/examples/mainwindows/dockwidgets/mainwindow.d	Mon May 17 21:48:15 2010 +0300
+++ b/examples/mainwindows/dockwidgets/mainwindow.d	Thu May 20 15:49:08 2010 +0300
@@ -56,10 +56,7 @@
 import qt.gui.QIcon;
 import qt.core.QDate;
 
-version(Tango)
-    import tango.text.Util;
-else
-    import std.string;
+import std.string : split;
 
 class MainWindow : public QMainWindow
 {
@@ -161,7 +158,7 @@
         {
             if (customer == "")
                 return;
-            
+
             string[] customerList = customer.split(", ");
             auto document = textEdit.document();
             QTextCursor cursor = document.find("NAME");
@@ -348,6 +345,6 @@
         QAction aboutAct;
         QAction aboutQtAct;
         QAction quitAct;
-        
+
         mixin Q_OBJECT;
 }