diff --git a/v2/example/qt/qt4/uic/main.cpp b/v2/example/qt/qt4/uic/main.cpp index 9cc4648ce..fc72fd5e6 100644 --- a/v2/example/qt/qt4/uic/main.cpp +++ b/v2/example/qt/qt4/uic/main.cpp @@ -3,7 +3,7 @@ // (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) -#include "hello_world_widget.h" +#include "ui_hello_world_widget.h" #include #include diff --git a/v2/tools/qt4.jam b/v2/tools/qt4.jam index 29025a50a..f510579f8 100644 --- a/v2/tools/qt4.jam +++ b/v2/tools/qt4.jam @@ -204,8 +204,9 @@ class uic-h-generator : generator local a = [ new action $(sources[1]) : qt4.uic-h : $(property-set) ] ; + # The 'ui_' prefix is to match qmake's default behavior. local target = [ - new file-target $(name) : H : $(project) : $(a) ] ; + new file-target ui_$(name) : H : $(project) : $(a) ] ; # Since this generator will return H target, the linking generator # won't use it at all, and won't set any dependency on it.