• J-P Nurmi's avatar
    Revise main() in examples · 1070aeb5
    J-P Nurmi authored
    
    Replace the inconvenient QT_QUICK_CONTROLS_EXAMPLE_MAIN macro with a
    simpler macro that merely defines the actual application type. This way
    it's easier to do tweaks to main() when for example testing a different
    application font size. Moreover, browsing the example code becomes more
    convenient (especially online).
    
    Task-number: QTBUG-35083
    Change-Id: I8203816a9112bf29b4661baa86bf4a196554db05
    Reviewed-by: default avatarJens Bache-Wiig <jens.bache-wiig@digia.com>
    1070aeb5
find-included-moc-files 325 bytes
#!/usr/bin/env python

import re, sys, os

includedMocs = set()
for f in filter(os.path.isfile, sys.argv[1:]):
    inBlockComment = False
    for line in open(f).readlines():
        m = re.search('#include "(moc_\w+.cpp)"', line)
        if m:
            includedMocs.add(m.group(1))
for moc in includedMocs:
    print moc