-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qmake/cmake disabled deprecated APIs for Qt <=6.7
- for Qt <6 disabled deprecated APIs for Qt <=6.0 - added temporary workaround for QVERIFY_EXCEPTION_THROWN() vs QVERIFY_THROWS_EXCEPTION(), to support Qt v6.8 and also older version at the same time
- Loading branch information
Showing
40 changed files
with
309 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
#ifndef TINYUTILS_MACROS_HPP | ||
#define TINYUTILS_MACROS_HPP | ||
|
||
#include <QtGlobal> | ||
|
||
#ifndef sl | ||
/*! Alias for the QStringLiteral(). */ | ||
# define sl(str) QStringLiteral(str) | ||
#endif | ||
|
||
#ifndef TVERIFY_THROWS_EXCEPTION | ||
# if QT_VERSION >= QT_VERSION_CHECK(6, 3, 0) | ||
/*! Alias for QVERIFY_THROWS_EXCEPTION() (temporary workaround for Qt v6.8). */ | ||
# define TVERIFY_THROWS_EXCEPTION(exceptiontype, ...) \ | ||
QVERIFY_THROWS_EXCEPTION(exceptiontype, __VA_ARGS__) | ||
# else | ||
/*! Alias for QVERIFY_EXCEPTION_THROWN(). */ | ||
# define TVERIFY_THROWS_EXCEPTION(exceptiontype, expression) \ | ||
QVERIFY_EXCEPTION_THROWN(expression, exceptiontype) | ||
# endif | ||
#endif | ||
|
||
#endif // TINYUTILS_MACROS_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.