summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-06-20 08:41:57 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-06-20 08:49:00 (GMT)
commit50b3837c6420865f46911f7359040dcb65fc112f (patch)
tree6328a14b0c60745f92b40d23281cb0de3519f660 /Tests/QtAutogen
parent01d2b745aa8f2fd27addbd4f94d3f7d5acb35a15 (diff)
downloadCMake-50b3837c6420865f46911f7359040dcb65fc112f.zip
CMake-50b3837c6420865f46911f7359040dcb65fc112f.tar.gz
CMake-50b3837c6420865f46911f7359040dcb65fc112f.tar.bz2
Autogen: Q_OBJECT behind brace test
Diffstat (limited to 'Tests/QtAutogen')
-rw-r--r--Tests/QtAutogen/CMakeLists.txt24
-rw-r--r--Tests/QtAutogen/mocOnlySource/StyleA.cpp5
-rw-r--r--Tests/QtAutogen/mocOnlySource/StyleA.hpp15
-rw-r--r--Tests/QtAutogen/mocOnlySource/StyleB.cpp5
-rw-r--r--Tests/QtAutogen/mocOnlySource/StyleB.hpp16
-rw-r--r--Tests/QtAutogen/mocOnlySource/main.cpp9
6 files changed, 65 insertions, 9 deletions
diff --git a/Tests/QtAutogen/CMakeLists.txt b/Tests/QtAutogen/CMakeLists.txt
index 3c6b2b3..89d2b80 100644
--- a/Tests/QtAutogen/CMakeLists.txt
+++ b/Tests/QtAutogen/CMakeLists.txt
@@ -61,6 +61,21 @@ if(NON_ASCII_BDIR AND WIN32)
endif()
# -- Test
+# MOC only
+add_executable(mocOnly mocOnlySource/main.cpp mocOnlySource/StyleA.cpp mocOnlySource/StyleB.cpp)
+set_property(TARGET mocOnly PROPERTY AUTOMOC ON)
+target_link_libraries(mocOnly ${QT_LIBRARIES})
+
+# -- Test
+# UIC only
+if(ALLOW_WRAP_CPP)
+ qtx_wrap_cpp(uicOnlyMoc uicOnlySource/uiconly.h)
+ add_executable(uicOnly uicOnlySource/uiconly.cpp ${uicOnlyMoc})
+ set_property(TARGET uicOnly PROPERTY AUTOUIC ON)
+ target_link_libraries(uicOnly ${QT_LIBRARIES})
+endif()
+
+# -- Test
# RCC only
add_executable(rccOnly rccOnly.cpp rccOnlyRes.qrc)
set_property(TARGET rccOnly PROPERTY AUTORCC ON)
@@ -73,15 +88,6 @@ set_property(TARGET rccEmpty PROPERTY AUTORCC ON)
target_link_libraries(rccEmpty ${QT_QTCORE_TARGET})
# -- Test
-# UIC only
-if(ALLOW_WRAP_CPP)
- qtx_wrap_cpp(uicOnlyMoc uicOnlySource/uiconly.h)
- add_executable(uicOnly uicOnlySource/uiconly.cpp ${uicOnlyMoc})
- set_property(TARGET uicOnly PROPERTY AUTOUIC ON)
- target_link_libraries(uicOnly ${QT_LIBRARIES})
-endif()
-
-# -- Test
# Add not_generated_file.qrc to the source list to get the file-level
# dependency, but don't generate a c++ file from it. Disable the AUTORCC
# feature for this target. This tests that qrc files in the sources don't
diff --git a/Tests/QtAutogen/mocOnlySource/StyleA.cpp b/Tests/QtAutogen/mocOnlySource/StyleA.cpp
new file mode 100644
index 0000000..ced1dd1
--- /dev/null
+++ b/Tests/QtAutogen/mocOnlySource/StyleA.cpp
@@ -0,0 +1,5 @@
+#include "StyleA.hpp"
+
+StyleA::StyleA()
+{
+}
diff --git a/Tests/QtAutogen/mocOnlySource/StyleA.hpp b/Tests/QtAutogen/mocOnlySource/StyleA.hpp
new file mode 100644
index 0000000..66735b6
--- /dev/null
+++ b/Tests/QtAutogen/mocOnlySource/StyleA.hpp
@@ -0,0 +1,15 @@
+#ifndef STYLEA_HPP
+#define STYLEA_HPP
+
+#include <QObject>
+
+/// Q_OBJECT on a single new line
+///
+class StyleA : public QObject
+{
+ Q_OBJECT
+public:
+ StyleA();
+};
+
+#endif
diff --git a/Tests/QtAutogen/mocOnlySource/StyleB.cpp b/Tests/QtAutogen/mocOnlySource/StyleB.cpp
new file mode 100644
index 0000000..bec6c1c
--- /dev/null
+++ b/Tests/QtAutogen/mocOnlySource/StyleB.cpp
@@ -0,0 +1,5 @@
+#include "StyleB.hpp"
+
+StyleB::StyleB()
+{
+}
diff --git a/Tests/QtAutogen/mocOnlySource/StyleB.hpp b/Tests/QtAutogen/mocOnlySource/StyleB.hpp
new file mode 100644
index 0000000..425daf8
--- /dev/null
+++ b/Tests/QtAutogen/mocOnlySource/StyleB.hpp
@@ -0,0 +1,16 @@
+#ifndef STYLEB_HPP
+#define STYLEB_HPP
+
+#include <QObject>
+
+/* clang-format off */
+/// Q_OBJECT behind a brace
+///
+class StyleB : public QObject
+{ Q_OBJECT
+public:
+ StyleB();
+};
+/* clang-format on */
+
+#endif
diff --git a/Tests/QtAutogen/mocOnlySource/main.cpp b/Tests/QtAutogen/mocOnlySource/main.cpp
new file mode 100644
index 0000000..06f8d81
--- /dev/null
+++ b/Tests/QtAutogen/mocOnlySource/main.cpp
@@ -0,0 +1,9 @@
+#include "StyleA.hpp"
+#include "StyleB.hpp"
+
+int main(int argv, char** args)
+{
+ StyleA styleA;
+ StyleB styleB;
+ return 0;
+}
rc'>core_8_6_4_rc Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/tests/fileSystem.test
Commit message (Expand)AuthorAgeFilesLines
...
* | fix to glob with volume relative paths, bug 898238vincentdarley2004-03-301-0/+22
* | fixed another volume-relative file normalization problemvincentdarley2004-03-261-0/+14
* | fix to windows volume-relative path normalizationvincentdarley2004-03-261-0/+28
* | Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-5/+5
* | more robust testsvincentdarley2004-02-281-12/+28
* | * doc/clock.n: Removed reference to non-existent [file ctime].dgp2004-02-061-1/+0
* | fix to test and commentvincentdarley2004-01-291-2/+11
* | filesystem fixes for '-force' consistency and picky compilersvincentdarley2004-01-291-6/+136
* | file normalize bug fixes for .. and .vincentdarley2004-01-231-0/+41
* | filesystem optimisation -- Three main issues accomplished: (1) cleaned up var...vincentdarley2004-01-211-4/+4
* | fix to file normalization with relative linksvincentdarley2003-12-171-6/+10
* | fix to fs norm bug 860402vincentdarley2003-12-171-20/+30
* | fix to fs norm bug 860402vincentdarley2003-12-171-0/+24
* | better filesystem tests with more informative resultsvincentdarley2003-12-121-8/+16
* | new filesystem testsvincentdarley2003-12-121-0/+114
* | * tests/cmdAH.test:dgp2003-10-071-1/+0
* | * tests/reg.test: Corrected duplicate test names.dgp2003-10-061-1/+1
* | fix 5 small filesystem bugs, and some typosvincentdarley2003-04-111-2/+6
|/
* * tests/fileSystem.test: added test 8.3hobbs2003-02-111-0/+10
* filesystem speed up round 2vincentdarley2003-02-101-1/+16
* first speedups to Win filesystemvincentdarley2003-02-071-0/+25
* fix to crashing filesystem testvincentdarley2003-02-071-5/+6
* added regression test for recent bug fixvincentdarley2003-02-051-0/+15
* finalization and test fixesvincentdarley2003-02-041-1/+1
* Marked filesystem-7.1 as known bug.andreas_kupries2003-02-041-1/+1
* filesystem bug fix and new testvincentdarley2003-01-281-0/+14
* fix to knownBug testvincentdarley2002-07-181-1/+1
* empty path name error msgsvincentdarley2002-06-261-1/+133
* tip99tip_99vincentdarley2002-06-211-6/+6
* tip99vincentdarley2002-06-211-14/+57
* vfs, winfs testsuitevincentdarley2002-06-13