Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3D] Add tests for Qgscameracontroller #56824

Merged
merged 2 commits into from Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/3d/qgscameracontroller.h
Expand Up @@ -48,7 +48,6 @@ class QgsCameraPose;
class QgsVector3D;
class QgsWindow3DEngine;
class Qgs3DMapScene;
class QgsCameraController4Test;

/**
* \ingroup 3d
Expand Down Expand Up @@ -356,7 +355,9 @@ class _3D_EXPORT QgsCameraController : public QObject

MouseOperation mCurrentOperation = MouseOperation::None;

friend QgsCameraController4Test;
// To test the cameracontroller
friend class TestQgs3DRendering;
friend class TestQgs3DCameraController;
};

#endif // QGSCAMERACONTROLLER_H
1 change: 1 addition & 0 deletions tests/src/3d/CMakeLists.txt
Expand Up @@ -20,6 +20,7 @@ include_directories(SYSTEM
add_subdirectory(sandbox)

set(TESTS
testqgs3dcameracontroller.cpp
testqgs3dmaterial.cpp
testqgs3drendering.cpp
testqgs3dsymbolregistry.cpp
Expand Down