summaryrefslogtreecommitdiff
path: root/tests/designer
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2013-11-21 15:48:23 +0100
committerErik Verbruggen <erik.verbruggen@digia.com>2013-11-22 17:50:37 +0100
commit92c73465625835adfe29c3d94a5292dae162a58b (patch)
treefbabcda261759c4807f2f86b47d6f04e949ccfc0 /tests/designer
parent8a1e2d0fc5a451524821fd1e5a9353abd6c045b1 (diff)
downloadqt-creator-92c73465625835adfe29c3d94a5292dae162a58b.tar.gz
Designer: Clean up tests
* Make test data driven * Compare with reference files Change-Id: I0fed8fcd689da17229853afc940e575b6f22babe Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'tests/designer')
-rw-r--r--tests/designer/gotoslot_withoutProject/reference_form.cpp22
-rw-r--r--tests/designer/gotoslot_withoutProject/reference_form.h27
2 files changed, 49 insertions, 0 deletions
diff --git a/tests/designer/gotoslot_withoutProject/reference_form.cpp b/tests/designer/gotoslot_withoutProject/reference_form.cpp
new file mode 100644
index 0000000000..fc313de178
--- /dev/null
+++ b/tests/designer/gotoslot_withoutProject/reference_form.cpp
@@ -0,0 +1,22 @@
+// Copyright header
+
+#include "form.h"
+#include "ui_form.h"
+
+Form::Form(QWidget *parent) :
+ QWidget(parent),
+ ui(new Ui::Form)
+{
+ ui->setupUi(this);
+}
+
+Form::~Form()
+{
+ delete ui;
+}
+
+
+void Form::on_pushButton_clicked()
+{
+
+}
diff --git a/tests/designer/gotoslot_withoutProject/reference_form.h b/tests/designer/gotoslot_withoutProject/reference_form.h
new file mode 100644
index 0000000000..68e66ff679
--- /dev/null
+++ b/tests/designer/gotoslot_withoutProject/reference_form.h
@@ -0,0 +1,27 @@
+// Copyright header
+
+#ifndef FORM_H
+#define FORM_H
+
+#include <QWidget>
+
+namespace Ui {
+class Form;
+}
+
+class Form : public QWidget
+{
+ Q_OBJECT
+
+public:
+ explicit Form(QWidget *parent = 0);
+ ~Form();
+
+private slots:
+ void on_pushButton_clicked();
+
+private:
+ Ui::Form *ui;
+};
+
+#endif // FORM_H