mkqrc.sh@2fe0b7e0da7b
mkqrc.sh
Sun, 08 Sep 2013 17:17:13 +0300
- author
- Teemu Piippo <crimsondusk64@gmail.com>
- date
- Sun, 08 Sep 2013 17:17:13 +0300
- changeset 22
- 2fe0b7e0da7b
- parent 19
-
c9b6dd9dd4cd
- child 30
-
6b82f6a3ad53
- permissions
- -rwxr-xr-x
For some God-knows-why reason, adding operator>> overloads to QDataStream leads into crashes with QFileDialog. Fixed by removing these overloads.
#!/bin/bash
QRCFILE=zandemo.qrc
FILES=$(echo ./icons/*.* LICENSE)
printf "" > $QRCFILE
printf "<!DOCTYPE RCC>\n<RCC version=\"1.0\">\n<qresource>\n" >> $QRCFILE
for f in $FILES; do
printf "\t<file>$f</file>\n" >> $QRCFILE
done
printf "</qresource>\n</RCC>\n" >> $QRCFILE