diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-09-16 23:23:57 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-09-18 07:41:16 (GMT) |
commit | e3c97a1914aa0a521b55b53ab1b0d71732c5e466 (patch) | |
tree | 2bf4429537174c4457b7ba9b6cc431f3a7013c88 /Tests/QtAutogen/multiplewidgets.cpp | |
parent | b8877b1d62599bba7a014e95fbbd670f177243ce (diff) | |
download | CMake-e3c97a1914aa0a521b55b53ab1b0d71732c5e466.zip CMake-e3c97a1914aa0a521b55b53ab1b0d71732c5e466.tar.gz CMake-e3c97a1914aa0a521b55b53ab1b0d71732c5e466.tar.bz2 |
QtAutogen: Process all ui files in a source file (#14981).
Use a vector to store a list of matched ui_ includes, instead of
overwriting the previous match.
Diffstat (limited to 'Tests/QtAutogen/multiplewidgets.cpp')
-rw-r--r-- | Tests/QtAutogen/multiplewidgets.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/QtAutogen/multiplewidgets.cpp b/Tests/QtAutogen/multiplewidgets.cpp new file mode 100644 index 0000000..f143875 --- /dev/null +++ b/Tests/QtAutogen/multiplewidgets.cpp @@ -0,0 +1,19 @@ + +#include "multiplewidgets.h" + +#include "ui_widget1.h" +#include "ui_widget2.h" + +Widget1::Widget1(QWidget *parent) + : QWidget(parent), + ui(new Ui::Widget1) +{ + ui->setupUi(this); +} + +Widget2::Widget2(QWidget *parent) + : QWidget(parent), + ui(new Ui::Widget2) +{ + ui->setupUi(this); +} |