summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2022-01-21 23:32:30 +0900
committerMichele Calgaro <[email protected]>2022-01-23 10:23:19 +0900
commit09659a5623bcb28a6234c0fe2357b8eca56c240f (patch)
tree3a96abc738f048881217d715605261e632912134 /qmake
parentfef67fdc511ba55f4c9eff8e6451240fede2e94f (diff)
downloadtqt3-09659a5623bcb28a6234c0fe2357b8eca56c240f.tar.gz
tqt3-09659a5623bcb28a6234c0fe2357b8eca56c240f.zip
TQt Designer: use global includes instead of includehints and
remove duplicated include directives if found in UI files. Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/makefile.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index 38f881f66..d11243728 100644
--- a/qmake/generators/makefile.cpp
+++ b/qmake/generators/makefile.cpp
@@ -359,14 +359,7 @@ MakefileGenerator::generateDependencies(TQPtrList<MakefileDependDir> &dirs, cons
x++;
if(*(big_buffer + x) == '<') {
x++;
- if(total_size_read >= x + 12 && !strncmp(big_buffer + x, "includehint", 11) &&
- (*(big_buffer + x + 11) == ' ' || *(big_buffer + x + 11) == '>')) {
- for(x += 11; *(big_buffer + x) != '>'; x++);
- int inc_len = 0;
- for(x += 1 ; *(big_buffer + x + inc_len) != '<'; inc_len++);
- *(big_buffer + x + inc_len) = '\0';
- inc = big_buffer + x;
- } else if(total_size_read >= x + 13 && !strncmp(big_buffer + x, "customwidget", 12) &&
+ if(total_size_read >= x + 13 && !strncmp(big_buffer + x, "customwidget", 12) &&
(*(big_buffer + x + 12) == ' ' || *(big_buffer + x + 12) == '>')) {
for(x += 13; *(big_buffer + x) != '>'; x++); //skip up to >
while(x < total_size_read) {