##// END OF EJS Templates
Fix Creator crash when opening Charts project...
Titta Heikkala -
r2641:614285c5dc95
parent child
Show More
@@ -105,23 +105,32 RCC_DIR = $$CHART_BUILD_DIR/lib
105
105
106 for(file, PUBLIC_HEADERS) {
106 for(file, PUBLIC_HEADERS) {
107 name = $$split(file,'/')
107 name = $$split(file,'/')
108 name = $$last(name)
108 last_name = $$last(name)
109 class = "$$cat($$file)"
109 class = "$$cat($$file)"
110 class = $$find(class,class)
110 found_class = $$find(class,class)
111 !isEmpty(class){
111 !isEmpty(found_class){
112 class = $$split(class,QTCOMMERCIALCHART_EXPORT)
112 split_class = $$split(found_class,QTCOMMERCIALCHART_EXPORT)
113 class = $$member(class,1)
113 member_class = $$member(split_class,1)
114 class = $$split(class,' ')
114 member_split_class = $$split(member_class,' ')
115 class = $$replace(class,' ','')
115 modified_class = $$replace(member_split_class,' ','')
116 class = $$member(class,0)
116 final_class = $$member(modified_class,0)
117 contains(QMAKE_HOST.os, Windows) {
117 contains(QMAKE_HOST.os, Windows) {
118 command = "echo $${LITERAL_HASH}include \"$$name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class"
118 command = "echo $${LITERAL_HASH}include \"$$last_name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$final_class"
119 }else{
119 }else{
120 command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class"
120 command = "echo \"$${LITERAL_HASH}include \\\"$$last_name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$final_class"
121 }
121 }
122 PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class
122 PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$final_class
123 system($$command)
123 system($$command)
124 }
124 }
125 unset(name)
126 unset(last_name)
127 unset(class)
128 unset(found_class)
129 unset(split_class)
130 unset(member_class)
131 unset(member_split_class)
132 unset(modified_class)
133 unset(final_class)
125 }
134 }
126
135
127 ############################# INSTALLERS ##########################################
136 ############################# INSTALLERS ##########################################
General Comments 0
You need to be logged in to leave comments. Login now