changeset 19 | fcece45ef507 |
parent 18 | 2f34d5167611 |
18:2f34d5167611 | 19:fcece45ef507 |
---|---|
133 void g() { |
133 void g() { |
134 tr("namespaced class def 2"); |
134 tr("namespaced class def 2"); |
135 } |
135 } |
136 }; |
136 }; |
137 |
137 |
138 // QTBUG-8360 |
|
139 namespace A { |
|
140 |
|
141 void foo() |
|
142 { |
|
143 using namespace A; |
|
144 } |
|
145 |
|
146 void goo() |
|
147 { |
|
148 return QObject::tr("Bla"); |
|
149 } |
|
150 |
|
151 } |
|
152 |
|
153 |
|
154 namespace AA { |
|
155 namespace B { |
|
156 |
|
157 using namespace AA; |
|
158 |
|
159 namespace C { |
|
160 |
|
161 class Test : public QObject { |
|
162 Q_OBJECT |
|
163 }; |
|
164 |
|
165 } |
|
166 |
|
167 } |
|
168 |
|
169 using namespace B; |
|
170 using namespace C; |
|
171 |
|
172 void goo() |
|
173 { |
|
174 AA::Test::tr("howdy?"); |
|
175 } |
|
176 |
|
177 } |
|
178 |
|
179 |
|
180 namespace A1 { |
|
181 namespace B { |
|
182 |
|
183 class Test : public QObject { |
|
184 Q_OBJECT |
|
185 }; |
|
186 |
|
187 using namespace A1; |
|
188 |
|
189 void foo() |
|
190 { |
|
191 B::B::B::Test::tr("yeeee-ha!"); |
|
192 } |
|
193 |
|
194 } |
|
195 } |
|
196 |
|
197 |
|
138 #include "main.moc" |
198 #include "main.moc" |