diff --git a/CHANGELOG.md b/CHANGELOG.md index 550e84d58..8dae1da90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Libraries can pass build information to cxx-qt-build in the form of a `cxx_qt_build::Interface` - Add CMake wrappers around corrosion to simplify importing crates and qml modules that were built with cxx-qt-build - CMake code has been extracted into a separate repository for faster downloads (kdab/cxx-qt-cmake) +- Folder structure of Rust bridges is now considered in the same way as CXX in `CxxQtBuilder` ### Removed diff --git a/crates/cxx-qt-build/src/lib.rs b/crates/cxx-qt-build/src/lib.rs index dbe6dbf52..9c21e5207 100644 --- a/crates/cxx-qt-build/src/lib.rs +++ b/crates/cxx-qt-build/src/lib.rs @@ -68,7 +68,10 @@ struct GeneratedCpp { impl GeneratedCpp { /// Generate QObject and cxx header/source C++ file contents - pub fn new(rust_file_path: impl AsRef) -> Result { + pub fn new( + rust_file_path: impl AsRef, + relative_path: impl AsRef, + ) -> Result { let to_diagnostic = |err| Diagnostic::new(rust_file_path.as_ref().to_owned(), err); let rust_file_path = rust_file_path.as_ref(); @@ -98,15 +101,13 @@ impl GeneratedCpp { rust_file_path.display()); } - // Match upstream where they use the file name as the ident + // Match upstream where they use the file name and folders as the ident // - // TODO: what happens if there are folders? - // - // TODO: ideally CXX-Qt would also use the file name - // https://github.com/KDAB/cxx-qt/pull/200/commits/4861c92e66c3a022d3f0dedd9f8fd20db064b42b - rust_file_path - .file_stem() - .unwrap() + // We need the relative path here as we want the folders + relative_path + .as_ref() + // Remove the .rs extension + .with_extension("") .to_str() .unwrap() .clone_into(&mut file_ident); @@ -135,7 +136,18 @@ impl GeneratedCpp { .map_err(GeneratedError::from) .map_err(to_diagnostic)?; let rust_tokens = write_rust(&generated_rust); - file_ident.clone_from(&parser.cxx_file_stem); + + // Use the relative path with the cxx_file_stem + // + // TODO: ideally CXX-Qt would also use the file name + // but it uses the module or cxx_file_stem for now + // https://github.com/KDAB/cxx-qt/pull/200/commits/4861c92e66c3a022d3f0dedd9f8fd20db064b42b + file_ident = relative_path + .as_ref() + .with_file_name(parser.cxx_file_stem) + .to_str() + .unwrap() + .clone_into(&mut file_ident); // We need to do this and can't rely on the macro, as we need to generate the // CXX bridge Rust code that is then fed into the cxx_gen generation. @@ -168,10 +180,6 @@ impl GeneratedCpp { ) -> GeneratedCppFilePaths { let cpp_directory = cpp_directory.as_ref(); let header_directory = header_directory.as_ref(); - for directory in [cpp_directory, header_directory] { - std::fs::create_dir_all(directory) - .expect("Could not create directory to write cxx-qt generated files"); - } let mut cpp_file_paths = GeneratedCppFilePaths { plain_cpp: PathBuf::new(), @@ -184,6 +192,10 @@ impl GeneratedCpp { header_directory.display(), self.file_ident )); + if let Some(directory) = header_path.parent() { + std::fs::create_dir_all(directory) + .expect("Could not create directory to write cxx-qt generated files"); + } let mut header = File::create(&header_path).expect("Could not create cxx-qt header file"); let header_generated = match cxx_qt_generated { @@ -201,6 +213,10 @@ impl GeneratedCpp { cpp_directory.display(), self.file_ident )); + if let Some(directory) = cpp_path.parent() { + std::fs::create_dir_all(directory) + .expect("Could not create directory to write cxx-qt generated files"); + } let mut cpp = File::create(&cpp_path).expect("Could not create cxx-qt source file"); let source_generated = match cxx_qt_generated { CppFragment::Pair { header: _, source } => source, @@ -217,6 +233,10 @@ impl GeneratedCpp { header_directory.display(), self.file_ident )); + if let Some(directory) = header_path.parent() { + std::fs::create_dir_all(directory) + .expect("Could not create directory to write cxx-qt generated header files"); + } let mut header = File::create(header_path).expect("Could not create cxx header file"); header .write_all(&self.cxx.header) @@ -227,6 +247,10 @@ impl GeneratedCpp { cpp_directory.display(), self.file_ident )); + if let Some(directory) = cpp_path.parent() { + std::fs::create_dir_all(directory) + .expect("Could not create directory to write cxx-qt generated source files"); + } let mut cpp = File::create(&cpp_path).expect("Could not create cxx source file"); cpp.write_all(&self.cxx.implementation) .expect("Could not write cxx source file"); @@ -255,7 +279,7 @@ fn generate_cxxqt_cpp_files( let path = manifest_dir.join(rs_path); println!("cargo:rerun-if-changed={}", path.to_string_lossy()); - let generated_code = match GeneratedCpp::new(&path) { + let generated_code = match GeneratedCpp::new(&path, rs_path) { Ok(v) => v, Err(diagnostic) => { diagnostic.report(); diff --git a/examples/demo_threading/cpp/helpers/energyusageproxymodel.h b/examples/demo_threading/cpp/helpers/energyusageproxymodel.h index 6af092a00..8876fe7fc 100644 --- a/examples/demo_threading/cpp/helpers/energyusageproxymodel.h +++ b/examples/demo_threading/cpp/helpers/energyusageproxymodel.h @@ -12,7 +12,7 @@ #include #include -#include "cxx_qt_demo_threading/energy_usage.cxxqt.h" +#include "cxx_qt_demo_threading/src/energy_usage.cxxqt.h" class EnergyUsageProxyModel : public QAbstractListModel { diff --git a/tests/basic_cxx_only/cpp/main.cpp b/tests/basic_cxx_only/cpp/main.cpp index 331b94319..1d3f68704 100644 --- a/tests/basic_cxx_only/cpp/main.cpp +++ b/tests/basic_cxx_only/cpp/main.cpp @@ -7,7 +7,7 @@ // SPDX-License-Identifier: MIT OR Apache-2.0 #include -#include "basic_cxx_only/lib.cxx.h" +#include "basic_cxx_only/src/lib.cxx.h" #include "cxx_test.h" class CxxTest : public QObject diff --git a/tests/basic_cxx_qt/cpp/main.cpp b/tests/basic_cxx_qt/cpp/main.cpp index 85b41f4a1..cc3f8ddea 100644 --- a/tests/basic_cxx_qt/cpp/main.cpp +++ b/tests/basic_cxx_qt/cpp/main.cpp @@ -10,11 +10,11 @@ #include #include -#include "basic_cxx_qt/empty.cxxqt.h" -#include "basic_cxx_qt/locking.cxxqt.h" -#include "basic_cxx_qt/my_data.cxxqt.h" -#include "basic_cxx_qt/my_object.cxxqt.h" -#include "basic_cxx_qt/my_types.cxxqt.h" +#include "basic_cxx_qt/src/empty.cxxqt.h" +#include "basic_cxx_qt/src/locking.cxxqt.h" +#include "basic_cxx_qt/src/my_data.cxxqt.h" +#include "basic_cxx_qt/src/my_object.cxxqt.h" +#include "basic_cxx_qt/src/my_types.cxxqt.h" class LockingWorkerThread : public QThread { diff --git a/tests/qt_types_standalone/cpp/qbytearray.h b/tests/qt_types_standalone/cpp/qbytearray.h index 17374d107..2ac7c2929 100644 --- a/tests/qt_types_standalone/cpp/qbytearray.h +++ b/tests/qt_types_standalone/cpp/qbytearray.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qbytearray.cxx.h" +#include "qt_types_standalone/src/qbytearray.cxx.h" class QByteArrayTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qcolor.h b/tests/qt_types_standalone/cpp/qcolor.h index b6d951fb0..58f648a6d 100644 --- a/tests/qt_types_standalone/cpp/qcolor.h +++ b/tests/qt_types_standalone/cpp/qcolor.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qcolor.cxx.h" +#include "qt_types_standalone/src/qcolor.cxx.h" class QColorTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qcoreapplication.h b/tests/qt_types_standalone/cpp/qcoreapplication.h index cad2cd882..b838519fd 100644 --- a/tests/qt_types_standalone/cpp/qcoreapplication.h +++ b/tests/qt_types_standalone/cpp/qcoreapplication.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qcoreapplication.cxx.h" +#include "qt_types_standalone/src/qcoreapplication.cxx.h" class QCoreApplicationTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qdate.h b/tests/qt_types_standalone/cpp/qdate.h index c23912409..24fec0b2e 100644 --- a/tests/qt_types_standalone/cpp/qdate.h +++ b/tests/qt_types_standalone/cpp/qdate.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qdate.cxx.h" +#include "qt_types_standalone/src/qdate.cxx.h" class QDateTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qdatetime.h b/tests/qt_types_standalone/cpp/qdatetime.h index e8c59de60..50272af8f 100644 --- a/tests/qt_types_standalone/cpp/qdatetime.h +++ b/tests/qt_types_standalone/cpp/qdatetime.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qdatetime.cxx.h" +#include "qt_types_standalone/src/qdatetime.cxx.h" class QDateTimeTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qguiapplication.h b/tests/qt_types_standalone/cpp/qguiapplication.h index 4857878ff..ecfd00087 100644 --- a/tests/qt_types_standalone/cpp/qguiapplication.h +++ b/tests/qt_types_standalone/cpp/qguiapplication.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qguiapplication.cxx.h" +#include "qt_types_standalone/src/qguiapplication.cxx.h" class QGuiApplicationTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qhash.h b/tests/qt_types_standalone/cpp/qhash.h index bf1834f82..98d2e64bf 100644 --- a/tests/qt_types_standalone/cpp/qhash.h +++ b/tests/qt_types_standalone/cpp/qhash.h @@ -10,7 +10,7 @@ #include #include -#include "qt_types_standalone/qhash.cxx.h" +#include "qt_types_standalone/src/qhash.cxx.h" class QHashTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qline.h b/tests/qt_types_standalone/cpp/qline.h index e9d6a458a..329d7a47b 100644 --- a/tests/qt_types_standalone/cpp/qline.h +++ b/tests/qt_types_standalone/cpp/qline.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qline.cxx.h" +#include "qt_types_standalone/src/qline.cxx.h" class QLineTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qlinef.h b/tests/qt_types_standalone/cpp/qlinef.h index 53a2fd25e..bde13b577 100644 --- a/tests/qt_types_standalone/cpp/qlinef.h +++ b/tests/qt_types_standalone/cpp/qlinef.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qlinef.cxx.h" +#include "qt_types_standalone/src/qlinef.cxx.h" class QLineFTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qlist.h b/tests/qt_types_standalone/cpp/qlist.h index ed1c0d436..d901afda2 100644 --- a/tests/qt_types_standalone/cpp/qlist.h +++ b/tests/qt_types_standalone/cpp/qlist.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qlist.cxx.h" +#include "qt_types_standalone/src/qlist.cxx.h" class QListTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qmap.h b/tests/qt_types_standalone/cpp/qmap.h index ef6884b84..99e087089 100644 --- a/tests/qt_types_standalone/cpp/qmap.h +++ b/tests/qt_types_standalone/cpp/qmap.h @@ -10,7 +10,7 @@ #include #include -#include "qt_types_standalone/qmap.cxx.h" +#include "qt_types_standalone/src/qmap.cxx.h" class QMapTest : public QObject { @@ -49,4 +49,4 @@ private Q_SLOTS: QVERIFY(!c.contains(QStringLiteral("github"))); QCOMPARE(c.size(), 2); } -}; \ No newline at end of file +}; diff --git a/tests/qt_types_standalone/cpp/qmargins.h b/tests/qt_types_standalone/cpp/qmargins.h index 1612d1592..12b360027 100644 --- a/tests/qt_types_standalone/cpp/qmargins.h +++ b/tests/qt_types_standalone/cpp/qmargins.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qmargins.cxx.h" +#include "qt_types_standalone/src/qmargins.cxx.h" class QMarginsTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qmarginsf.h b/tests/qt_types_standalone/cpp/qmarginsf.h index ec9c3b6d2..953fd11b4 100644 --- a/tests/qt_types_standalone/cpp/qmarginsf.h +++ b/tests/qt_types_standalone/cpp/qmarginsf.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qmarginsf.cxx.h" +#include "qt_types_standalone/src/qmarginsf.cxx.h" class QMarginsFTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qmetaobjectconnection.h b/tests/qt_types_standalone/cpp/qmetaobjectconnection.h index 79eeba56c..70bce0005 100644 --- a/tests/qt_types_standalone/cpp/qmetaobjectconnection.h +++ b/tests/qt_types_standalone/cpp/qmetaobjectconnection.h @@ -11,7 +11,7 @@ #include #include -#include "qt_types_standalone/qmetaobjectconnection.cxx.h" +#include "qt_types_standalone/src/qmetaobjectconnection.cxx.h" class MyObject : public QObject { diff --git a/tests/qt_types_standalone/cpp/qmodelindex.h b/tests/qt_types_standalone/cpp/qmodelindex.h index 4855e4486..60860f2bc 100644 --- a/tests/qt_types_standalone/cpp/qmodelindex.h +++ b/tests/qt_types_standalone/cpp/qmodelindex.h @@ -11,7 +11,7 @@ #include #include -#include "qt_types_standalone/qmodelindex.cxx.h" +#include "qt_types_standalone/src/qmodelindex.cxx.h" // We subclass from QAbstractListModel to have a valid model to use for // access to createIndex(); diff --git a/tests/qt_types_standalone/cpp/qpen.h b/tests/qt_types_standalone/cpp/qpen.h index 3850ea394..2ece36dff 100644 --- a/tests/qt_types_standalone/cpp/qpen.h +++ b/tests/qt_types_standalone/cpp/qpen.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qpen.cxx.h" +#include "qt_types_standalone/src/qpen.cxx.h" class QPenTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qpersistentmodelindex.h b/tests/qt_types_standalone/cpp/qpersistentmodelindex.h index a3f3deda4..ce38d2b45 100644 --- a/tests/qt_types_standalone/cpp/qpersistentmodelindex.h +++ b/tests/qt_types_standalone/cpp/qpersistentmodelindex.h @@ -11,7 +11,7 @@ #include #include -#include "qt_types_standalone/qpersistentmodelindex.cxx.h" +#include "qt_types_standalone/src/qpersistentmodelindex.cxx.h" class QPersistentModelIndexTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qpoint.h b/tests/qt_types_standalone/cpp/qpoint.h index cc3a52029..a1035eb48 100644 --- a/tests/qt_types_standalone/cpp/qpoint.h +++ b/tests/qt_types_standalone/cpp/qpoint.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qpoint.cxx.h" +#include "qt_types_standalone/src/qpoint.cxx.h" class QPointTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qpointf.h b/tests/qt_types_standalone/cpp/qpointf.h index 1e0042fcc..6c88b02fe 100644 --- a/tests/qt_types_standalone/cpp/qpointf.h +++ b/tests/qt_types_standalone/cpp/qpointf.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qpointf.cxx.h" +#include "qt_types_standalone/src/qpointf.cxx.h" class QPointFTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qpolygon.h b/tests/qt_types_standalone/cpp/qpolygon.h index 951024816..f28c1a5ef 100644 --- a/tests/qt_types_standalone/cpp/qpolygon.h +++ b/tests/qt_types_standalone/cpp/qpolygon.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qpolygon.cxx.h" +#include "qt_types_standalone/src/qpolygon.cxx.h" class QPolygonTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qpolygonf.h b/tests/qt_types_standalone/cpp/qpolygonf.h index 1af4007c8..e741fec97 100644 --- a/tests/qt_types_standalone/cpp/qpolygonf.h +++ b/tests/qt_types_standalone/cpp/qpolygonf.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qpolygonf.cxx.h" +#include "qt_types_standalone/src/qpolygonf.cxx.h" class QPolygonFTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qqmlapplicationengine.h b/tests/qt_types_standalone/cpp/qqmlapplicationengine.h index b07c40f42..fdeb484a4 100644 --- a/tests/qt_types_standalone/cpp/qqmlapplicationengine.h +++ b/tests/qt_types_standalone/cpp/qqmlapplicationengine.h @@ -10,7 +10,7 @@ #include #include -#include "qt_types_standalone/qqmlapplicationengine.cxx.h" +#include "qt_types_standalone/src/qqmlapplicationengine.cxx.h" class QQmlApplicationEngineTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qqmlengine.h b/tests/qt_types_standalone/cpp/qqmlengine.h index 7b95f172c..44d47cf03 100644 --- a/tests/qt_types_standalone/cpp/qqmlengine.h +++ b/tests/qt_types_standalone/cpp/qqmlengine.h @@ -10,7 +10,7 @@ #include #include -#include "qt_types_standalone/qqmlengine.cxx.h" +#include "qt_types_standalone/src/qqmlengine.cxx.h" class QQmlEngineTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qrect.h b/tests/qt_types_standalone/cpp/qrect.h index 167c113a7..868564140 100644 --- a/tests/qt_types_standalone/cpp/qrect.h +++ b/tests/qt_types_standalone/cpp/qrect.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qrect.cxx.h" +#include "qt_types_standalone/src/qrect.cxx.h" class QRectTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qrectf.h b/tests/qt_types_standalone/cpp/qrectf.h index 272629b16..9551eacab 100644 --- a/tests/qt_types_standalone/cpp/qrectf.h +++ b/tests/qt_types_standalone/cpp/qrectf.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qrectf.cxx.h" +#include "qt_types_standalone/src/qrectf.cxx.h" class QRectFTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qregion.h b/tests/qt_types_standalone/cpp/qregion.h index 614f1348d..e1d8168ec 100644 --- a/tests/qt_types_standalone/cpp/qregion.h +++ b/tests/qt_types_standalone/cpp/qregion.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qregion.cxx.h" +#include "qt_types_standalone/src/qregion.cxx.h" class QRegionTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qset.h b/tests/qt_types_standalone/cpp/qset.h index 1eeb0fa4b..846ef40b0 100644 --- a/tests/qt_types_standalone/cpp/qset.h +++ b/tests/qt_types_standalone/cpp/qset.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qset.cxx.h" +#include "qt_types_standalone/src/qset.cxx.h" class QSetTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qsize.h b/tests/qt_types_standalone/cpp/qsize.h index c753ad4ff..0824115df 100644 --- a/tests/qt_types_standalone/cpp/qsize.h +++ b/tests/qt_types_standalone/cpp/qsize.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qsize.cxx.h" +#include "qt_types_standalone/src/qsize.cxx.h" class QSizeTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qsizef.h b/tests/qt_types_standalone/cpp/qsizef.h index fabb6d5a9..bd71acf0a 100644 --- a/tests/qt_types_standalone/cpp/qsizef.h +++ b/tests/qt_types_standalone/cpp/qsizef.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qsizef.cxx.h" +#include "qt_types_standalone/src/qsizef.cxx.h" class QSizeFTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qstring.h b/tests/qt_types_standalone/cpp/qstring.h index 98be871d9..93a08da8e 100644 --- a/tests/qt_types_standalone/cpp/qstring.h +++ b/tests/qt_types_standalone/cpp/qstring.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qstring.cxx.h" +#include "qt_types_standalone/src/qstring.cxx.h" class QStringTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qstringlist.h b/tests/qt_types_standalone/cpp/qstringlist.h index 2bfd5334e..f1963fa59 100644 --- a/tests/qt_types_standalone/cpp/qstringlist.h +++ b/tests/qt_types_standalone/cpp/qstringlist.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qstringlist.cxx.h" +#include "qt_types_standalone/src/qstringlist.cxx.h" class QStringListTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qtime.h b/tests/qt_types_standalone/cpp/qtime.h index 1a70c8f3b..ac195293d 100644 --- a/tests/qt_types_standalone/cpp/qtime.h +++ b/tests/qt_types_standalone/cpp/qtime.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qtime.cxx.h" +#include "qt_types_standalone/src/qtime.cxx.h" class QTimeTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qtimezone.h b/tests/qt_types_standalone/cpp/qtimezone.h index 34575e9a0..b571ee2e4 100644 --- a/tests/qt_types_standalone/cpp/qtimezone.h +++ b/tests/qt_types_standalone/cpp/qtimezone.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qtimezone.cxx.h" +#include "qt_types_standalone/src/qtimezone.cxx.h" class QTimeZoneTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qurl.h b/tests/qt_types_standalone/cpp/qurl.h index 327cb71f5..34ead1998 100644 --- a/tests/qt_types_standalone/cpp/qurl.h +++ b/tests/qt_types_standalone/cpp/qurl.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qurl.cxx.h" +#include "qt_types_standalone/src/qurl.cxx.h" class QUrlTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qvariant.h b/tests/qt_types_standalone/cpp/qvariant.h index 5db3e9c33..1c1b29d7a 100644 --- a/tests/qt_types_standalone/cpp/qvariant.h +++ b/tests/qt_types_standalone/cpp/qvariant.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qvariant.cxx.h" +#include "qt_types_standalone/src/qvariant.cxx.h" // We use VariantTest in data driven tests, so register to Qt metatype system Q_DECLARE_METATYPE(VariantTest) diff --git a/tests/qt_types_standalone/cpp/qvector.h b/tests/qt_types_standalone/cpp/qvector.h index cb9003d7e..f1979d989 100644 --- a/tests/qt_types_standalone/cpp/qvector.h +++ b/tests/qt_types_standalone/cpp/qvector.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qvector.cxx.h" +#include "qt_types_standalone/src/qvector.cxx.h" class QVectorTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qvector2d.h b/tests/qt_types_standalone/cpp/qvector2d.h index 77c8c86bc..1ffd508fe 100644 --- a/tests/qt_types_standalone/cpp/qvector2d.h +++ b/tests/qt_types_standalone/cpp/qvector2d.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qvector2d.cxx.h" +#include "qt_types_standalone/src/qvector2d.cxx.h" class QVector2DTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qvector3d.h b/tests/qt_types_standalone/cpp/qvector3d.h index 7cbeb672d..123d56310 100644 --- a/tests/qt_types_standalone/cpp/qvector3d.h +++ b/tests/qt_types_standalone/cpp/qvector3d.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qvector3d.cxx.h" +#include "qt_types_standalone/src/qvector3d.cxx.h" class QVector3DTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qvector4d.h b/tests/qt_types_standalone/cpp/qvector4d.h index f480f7638..c928911df 100644 --- a/tests/qt_types_standalone/cpp/qvector4d.h +++ b/tests/qt_types_standalone/cpp/qvector4d.h @@ -9,7 +9,7 @@ #include #include -#include "qt_types_standalone/qvector4d.cxx.h" +#include "qt_types_standalone/src/qvector4d.cxx.h" class QVector4DTest : public QObject {