diff demos/deform/main.d @ 161:849b66609571

a few fixes
author mwarning
date Wed, 17 Jun 2009 22:39:42 +0000
parents 691e68637348
children ab01453c9d56
line wrap: on
line diff
--- a/demos/deform/main.d	Wed Jun 17 17:42:02 2009 +0000
+++ b/demos/deform/main.d	Wed Jun 17 22:39:42 2009 +0000
@@ -38,38 +38,37 @@
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
+module main;
 
-import
-    pathdeform,
-    arthurstyle,
-    qt.gui.QApplication;
+
+import qt.gui.QApplication;
+import pathdeform;
+import arthurstyle;
 
 
 int main(string[] args)
 {
-    //Q_INIT_RESOURCE(deform);
-
-    scope app = new QApplication(args);
+	scope app = new QApplication(args);
 
-    bool smallScreen = false;
-    foreach (arg; args)
-    {
-        if (arg == "-small-screen")
-            smallScreen = true;
-    }
+	bool smallScreen = false;
+	foreach (arg; args)
+	{
+		if (arg == "-small-screen")
+			smallScreen = true;
+	}
 
-    scope deformWidget = new PathDeformWidget(null, smallScreen);
+	scope deformWidget = new PathDeformWidget(null, smallScreen);
 
-    QStyle arthurStyle = new ArthurStyle();
-    deformWidget.setWidgetStyle(arthurStyle);
-    auto widgets = deformWidget.findChildren!(QWidget);
-    foreach (w; widgets)
-        w.setStyle(arthurStyle);
+	QStyle arthurStyle = new ArthurStyle();
+	deformWidget.setWidgetStyle(arthurStyle);
+	QWidget[] widgets; // = qFindChildren!(QWidget)(deformWidget); //TODO
+	foreach (w; widgets)
+		w.setStyle(arthurStyle);
 
-    if (smallScreen)
-        deformWidget.showFullScreen();
-    else
-        deformWidget.show();
+	if (smallScreen)
+		deformWidget.showFullScreen();
+	else
+		deformWidget.show();
 
-    return app.exec();
+	return app.exec();
 }