Magne Sjaastad
33ffa10ec9
Janitor: Remove obsolete deleteChildren
...
Remove obsolete deleteChildren() in destructors. deleteChildren() is called in the destructor of PdmChildArrayField
2024-07-25 13:58:31 +02:00
Magne Sjaastad
a0ebb6e496
Add copyObject to PdmObjectHandle
...
New syntax to copy an object
auto curveCopy = curve->copyObject<RimSummaryCurve>();
Previous deprecated syntax
RimColorLegend* customLegend = dynamic_cast<RimColorLegend*>(
standardLegend->xmlCapability()->copyByXmlSerialization( caf::PdmDefaultObjectFactory::instance() ) );
2024-06-14 17:18:28 +02:00
Magne Sjaastad
41d5e498d7
Simplify PdmDocument class and move fileName to private
...
Remove resolveReferencesRecursively() and initAfterReadRecursively() from PdmDocument::readFile(). These functions will be called in RiaApplication::loadProject after the file paths modifications are done. This will ensure that file paths can be used in initAfterRead() functions.
2024-06-05 14:35:01 +02:00
Eirik Marthinsen
4c77090d8b
Add missing Qt component to silence CMake warnings
...
The project cafProjectDataModel_UnitTests was triggering multiple
CMake warnings saying that the Widget component was missing when trying
to collect dependencies.
2024-02-04 15:59:09 +01:00
Magne Sjaastad
edf44cb4c0
Prepare CMake to support both Qt5 andf Qt6
...
CEE_USE_QT6 controls if Qt6 is used.
Improved install and package for Qt6, target version Qt 6.5.3
Added Qt6 to github action for AppFwkUnitTest
2024-01-09 11:02:41 +01:00
Magne Sjaastad
8424c77167
Remove norwegian characters
...
On Qt6, text with norwegian characters causes build failure.
2024-01-09 11:02:41 +01:00
Magne Sjaastad
b5616561c2
Support use of of std::pair<T, QString>
2024-01-07 18:28:36 +01:00
Magne Sjaastad
b7f8d0e0f1
Increase warning level
...
* Set warning level to /W3 for MSVC to catch more warnings
* remove several excluded checks for clang
* removed several unused variables
* Hide warnings qwt
* add missing parentheses in logical expressions
* Remove double check on same logical expression
2023-04-17 15:57:39 +02:00
Magne Sjaastad
ee1b363ae0
Add support for field of std::pair<T, U>
2023-03-31 10:21:56 +02:00
Magne Sjaastad
2abfd08bd9
Fix typo
...
Use lowercase for function names
Use const
2023-03-23 15:46:24 +01:00
Magne Sjaastad
583c248cf9
Janitor issues
...
* Use horizontalAdvance
* Remove unused code
* Hide some warnings from Qt code
* Remove message for _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
* Use CMP0077 NEW
* Move roff libraries to folder Thirdparty
* avoid operator()==
* Remove cmake_minimum_required and set version to 3.15
2023-01-24 12:29:27 +01:00
Magne Sjaastad
abc9e82ff5
System: Enable and use c++20
...
Enable c++20 in top level cmake. Keep c++17 for GrpcInterface, as the protoc tool does not work with c++20.
Several code adjustments to fix compiler issues.
2023-01-19 08:33:02 +01:00
Magne Sjaastad
c74701b687
Rename several child() and children() functions
2022-05-31 15:05:07 +02:00
Magne Sjaastad
1b869a9356
#8250 AppFwk : Introduce variadic macros
...
Use variadic macros to to support optional parameters in initialization macros
2021-11-14 15:26:09 +01:00
Magne Sjaastad
638f926429
cmake-format: Allow dangling parenthesis
2021-09-01 08:13:16 +02:00
github-actions[bot]
223fe756fe
Fixes by cmake-format ( #6874 )
2020-10-30 12:31:16 +01:00
Magne Sjaastad
bdc536dfc4
#6106 Apply clang-format on AppFwk
2020-06-19 08:00:01 +02:00
Kristian Bendiksen
16c3ce1ca2
#6029 Update test helper to new gtest version.
2020-06-03 22:06:30 +02:00
Kristian Bendiksen
2eb18d8151
#6029 Upgrade gtest to v1.10 for Fwk/.
2020-06-03 22:06:30 +02:00
Magne Sjaastad
4b372b438e
System : Remove support for Qt4
2020-04-24 11:40:22 +02:00
Gaute Lindkvist
5365f4dd7d
Caf build fixes for CEE_USE_QT5
2019-05-31 11:00:32 +02:00
Gaute Lindkvist
10afe4987b
#4448 Clean up CAF Qt5-enabling/detection
2019-05-28 15:58:49 +02:00
Gaute Lindkvist
0544b19afe
Fix carriage return difference in CafPdmModel_UnitTests
2019-05-28 15:58:48 +02:00
Magne Sjaastad
387d7cf7c2
System : Use appropriate mode when displaying a cmake message
2019-04-08 12:32:14 +02:00
Magne Sjaastad
98da255772
System : Remove TR1 warnings from gtest
2019-01-07 14:32:29 +01:00
Gaute Lindkvist
b06097862f
Fix Linux build of caf unit tests
2018-12-03 15:00:53 +01:00
Gaute Lindkvist
8cd2d37b92
Quieten Qt5 check in caf unittests
2018-12-03 15:00:53 +01:00
Gaute Lindkvist
ddb546d877
#3754 Upgrade CAF CMake-system to support both Qt4 and Qt5
2018-11-30 09:47:53 +01:00
Gaute Lindkvist
cc7269c717
#3752 CAF code changes to build on both Qt4 and Qt5
2018-11-30 09:47:53 +01:00
Magne Sjaastad
3fbce58fa5
#2536 Build System AppFwk : Several updates
...
Simplified automoc
Use target_include_directories and target_link_libraries
Use CMake 2.8.12
2018-02-27 18:37:11 +01:00
Magne Sjaastad
65c3d6ff12
#2536 Build System AppFwk : Use target_include_directories
2018-02-27 17:19:23 +01:00
Magne Sjaastad
3bbc1c9885
System - Add pthread to unit test link parameters
2017-07-19 16:28:17 +02:00
Magne Sjaastad
63baebc698
#1292 Fixed CppCheck Issues in AppFwk/cafProjectDataModel
2017-03-06 19:03:31 +01:00
Magne Sjaastad
a5ed533c00
Improved unit test so they run correctly in debug
2017-03-06 18:33:03 +01:00
Magne Sjaastad
b9286dcd1d
[AppFwk] Updated destructors in unit tests to make sure memory is released correctly
2015-12-22 11:10:50 +01:00
Magne Sjaastad
1bdb68e3d7
[Fwk] Moved ProjectDataModel unit test
2015-11-26 14:22:50 +01:00