diff qt/qtd/MOC.d @ 323:7a3c43424dca signals

make all examples compile with new signals/slots
author eldar_ins@eldar-laptop
date Mon, 28 Dec 2009 16:28:55 +0500
parents 7c2cf27391c4
children c97e5d15bf95
line wrap: on
line diff
--- a/qt/qtd/MOC.d	Sun Dec 27 21:13:38 2009 +0500
+++ b/qt/qtd/MOC.d	Mon Dec 28 16:28:55 2009 +0500
@@ -4,6 +4,7 @@
 
 import std.typetuple;
 
+import qt.QGlobal;
 import qt.Signal;
 import qt.qtd.MetaMarshall;
 import qt.qtd.Meta;
@@ -15,10 +16,6 @@
    Utils.
   */
 
-T qMin(T)(T a,T b) { if (a < b) return a; return b; }
-T qMax(T)(T a, T b) { if (a < b) return b; return a; }
-T qBound(T)(T min, T val,T max) { return qMax(min, qMin(max, val)); }
-
 bool is_digit_char(const char s)
 {
     return (s >= '0' && s <= '9');
@@ -461,7 +458,7 @@
 {
     string res;
     res ~= "
-    QMetaObject metaObject() { return staticMetaObject; }
+    public QMetaObject metaObject() { return staticMetaObject; }
     private static QMetaObject _staticMetaObject;
     private static QMetaObjectNative _nativeStaticMetaObject;
     public static QMetaObject staticMetaObject() { return _staticMetaObject; }
@@ -558,5 +555,6 @@
     alias toMetaEntries!(SlotFuncs) SlotMetaEntries;
 
     mixin(generateMetaInfo!(typeof(this), SignalMetaEntries, SlotMetaEntries)());
-    pragma(msg, generateMetaInfo!(typeof(this), SignalMetaEntries, SlotMetaEntries)());
+    // debug output
+//    pragma(msg, generateMetaInfo!(typeof(this), SignalMetaEntries, SlotMetaEntries)());
 }
\ No newline at end of file