summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/second_widget.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-03-25 00:26:27 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-03-25 00:39:03 (GMT)
commit71a11252e95797113ecb1a969386f496b7d4861b (patch)
treeb5cac8379fc7a3aa35a055ded585498195e7b930 /Tests/QtAutogen/second_widget.cpp
parent261acd91093ba5f2bf79f38a9632887ab2dd5f1c (diff)
downloadCMake-71a11252e95797113ecb1a969386f496b7d4861b.zip
CMake-71a11252e95797113ecb1a969386f496b7d4861b.tar.gz
CMake-71a11252e95797113ecb1a969386f496b7d4861b.tar.bz2
QtAutogen: Fix use of multiple ui files in a single target.
Don't store a mapping of the directory to the ui file. The directory will be a unique key, allowing only one ui file to be specified. Use the source file name instead as the mapping key.
Diffstat (limited to 'Tests/QtAutogen/second_widget.cpp')
-rw-r--r--Tests/QtAutogen/second_widget.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/QtAutogen/second_widget.cpp b/Tests/QtAutogen/second_widget.cpp
new file mode 100644
index 0000000..65ba962
--- /dev/null
+++ b/Tests/QtAutogen/second_widget.cpp
@@ -0,0 +1,14 @@
+
+#include "second_widget.h"
+#include "ui_second_widget.h"
+
+SecondWidget::SecondWidget(QWidget *parent)
+ : QWidget(parent), ui(new Ui::SecondWidget)
+{
+ ui->setupUi(this);
+}
+
+SecondWidget::~SecondWidget()
+{
+ delete ui;
+}