Commit Graph

31 Commits

Author SHA1 Message Date
Rahul Paul
8dd8b49f9c Test: Add copy button (#25979)
* added a copy button which copies all the errors and traceback to clipboard

* removed unused variable

* removed space at end of Copy string

* copied text notification in status bar

* removed unwanted header

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Test: Address review comments

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2026-01-12 06:35:23 +00:00
pre-commit-ci[bot]
9fe130cd73 All: Reformat according to new standard 2025-11-11 13:49:01 +01:00
Markus Reitböck
715fc873fd Test: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
 should be considered an optimization, not a requirement. In particular, do not explicitly include a
 precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
 generated precompile header on the compiler command line instead. This is more portable across
 the major compilers and is likely to be easier to maintain. It will also avoid warnings being
 generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-24 20:08:57 +02:00
Benjamin Bræstrup Sayoc
24ac19e261 Test: Use QStringLiteral 2025-02-10 18:34:57 +01:00
pre-commit-ci[bot]
e92ed45df9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
wmayer
e48964fad5 Test: apply clang format 2023-09-04 07:22:09 -05:00
wmayer
142b86fde2 Mod: modernize C++: use equals default 2023-08-21 20:21:30 +02:00
wmayer
e2aa8660a3 Test: avoid to expand test dialog if label text is too long 2023-08-10 19:51:48 +02:00
wmayer
9aadf2cd79 Test: fix -Wclazy-connect-by-name 2023-04-05 00:44:13 +02:00
wmayer
fa6dc8d0e1 Gui: make unit tests working from command line if Gui is up 2022-12-24 19:13:40 +01:00
Uwe
4531349539 [Test] enable precompiled headers
- also remove unused headers
2022-12-14 04:25:52 +01:00
Uwe
140e89e858 Mod: remove some more superfluous Boolean checks 2022-07-19 02:40:59 +02:00
luz paz
ad067cdf7e [TestWB] fix source comment typo in
[skip ci]
2022-05-17 02:28:47 +02:00
wmayer
2615e249c2 Test: [skip ci] limit the text in the error dialog to 1000 chars as otherwise it can become larger than the available vertical space of the desktop 2022-02-14 10:29:41 +01:00
wmayer
60d32ee475 Test: modernize C++11
* remove redundant void-arg
* use nullptr
2022-01-26 17:46:02 +01:00
wmayer
c701c2f3d2 Test: [skip ci] handle std. and unknown exceptions in unit test dialog 2021-10-11 16:09:23 +02:00
Chris Hennes
93f2166d2b [Test] Remove deprecated Qt < 5.9 code 2021-04-01 19:30:30 +02:00
luz paz
26636dbbad Test: Fix header uniformity, whitespace, doxygen headers 2020-11-18 08:58:06 +01:00
wmayer
52b9d66004 Qt5: 'void QTreeWidgetItem::setTextColor(int, const QColor&)' is deprecated: Use QTreeWidgetItem::setForeground() instead [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
8fdb29c842 Mod: [skip ci] implementation classes don't inherit from UI classes any more 2020-01-10 16:19:35 +01:00
luz.paz
8057a45d4b Crowdin: more fixes 2018-05-02 00:50:06 -04:00
luz.paz
a463c94796 Crowdin: fix in different WBs 2018-05-02 00:50:06 -04:00
wmayer
feaaf452fb Qt5: set color to progress bar using style sheet 2017-06-19 18:54:25 +02:00
wmayer
69de741365 set layout of text of progress bar in unit test dialog 2017-01-16 18:48:18 +01:00
wmayer
b34c9fec96 fix -Wextra in Test 2016-09-21 21:15:10 +02:00
Mateusz Skowroński
6942c23895 Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
158f39ec78

This change is Qt4/Qt5 neutral.
2016-01-05 16:43:33 +01:00
Mateusz Skowroński
f48f0f69be Qt::WFlags is obsolete in Qt5. Replace it with Qt::WindowFlags.
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:58 +01:00
Mateusz Skowroński
c275b35d48 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
wmayer
b0d6ffc5b2 + clean-up, fix and new methods added in unit test module 2015-10-19 21:51:43 +02:00
wmayer
91a0203981 + truncate text when too long in message box in unit test panel and show the full text in detailed section 2015-10-17 14:33:54 +02:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00