Qt4 - Remove useless things from uic output.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Dec 2007 20:17:24 +0000 (20:17 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Dec 2007 20:17:24 +0000 (20:17 +0000)
modules/gui/qt4/Modules.am

index 3807d12..b2b8047 100644 (file)
@@ -76,7 +76,7 @@ resources.cpp: res.qrc
        mkdir -p -- ui
        rm -f $@ $@.tmp
        echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
-       $(UIC) -tr "Q_" $< >> $@.tmp
+       $(UIC) -tr "Q_" $< | grep -v setObjectName | grep -v objectName >> $@.tmp
        sed -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp >$@
        rm -f $@.tmp