summaryrefslogtreecommitdiffstats
path: root/src/tests/kretest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use TQImage rather than TQPixmap in the backend-oriented coder14.1.xAlexander Golubev2025-08-081-2/+2
| | | | | | | | | | | | | | | | | TQImage is more suitable for i/o operations and long-term storage rather than TQPixmap (which is better for immediate display on the screen). The UI rarely does displays all those photos and does it one-by-one (i.e. there is no big gallery), so there is no significant performance penalty for the use of TQImage. On the contrary this way we should save some memory on allocations associated X11 stuff for pixmaps and loading time when the database contains a lot of photos. Note that there is yet another use of TQPixmap in `htmlexporter` which cannot be replaced because it uses TQPainter, which didn't supported QImage until Qt5. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit a6ab7f1c6dcf3076aa5488a790d81f42cbc93b48)
* Fix tests' execution without X11Alexander Golubev2025-08-051-0/+1
| | | | | | | Note: kretest segfaults without a GUI because it makes use of TQPicture Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 19201b658c807f6ffa3c9dcaa02c90b38312e2d7)
* Fix importers/exporters bugs. Fix tests and add them to build process.Michele Calgaro2025-08-031-6/+5
| | | | | | | | | The file `mx2test.txt` is taken from KRecipes 2.1 source code. Other tests have been adjusted based on the tests in KRecipes 2.1 source code. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit dfbafdbb2f7369438a750327544f9084a765e407)
* Add cmake rules for tests files and make tests runnable.Michele Calgaro2025-05-221-1/+6
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 99e16012c2ddbfa877a77c2176e15c3fea5643e6)
* Rearrange folders structure to remove unnecessary 'krecipes' second level ↵Michele Calgaro2024-10-291-0/+191
subfolder Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 0c8ed6c9a4000af8f48581a81c4b5c2f5b9fd502)