-
-
Notifications
You must be signed in to change notification settings - Fork 577
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kazakov/lager-mypaint-engine-port' into kazakov/lager-b…
…ased-brush-editor # Conflicts: # libs/ui/CMakeLists.txt # plugins/paintops/libpaintop/KisCurveOptionWidget2.cpp # plugins/paintops/libpaintop/KisCurveOptionWidget2.h
- Loading branch information
Showing
137 changed files
with
4,568 additions
and
2,876 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
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,37 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 Dmitry Kazakov <[email protected]> | ||
* | ||
* SPDX-License-Identifier: GPL-2.0-or-later | ||
*/ | ||
#include "KisMplTest.h" | ||
|
||
#include <simpletest.h> | ||
|
||
#include <optional> | ||
#include <QDebug> | ||
|
||
#include <KisMpl.h> | ||
|
||
|
||
void KisMplTest::test() | ||
{ | ||
std::optional<int> a(0x1); | ||
std::optional<int> b(0x2); | ||
std::optional<int> c(0x4); | ||
std::optional<int> d; | ||
std::optional<int> e; | ||
|
||
QCOMPARE(kismpl::fold_optional(std::plus{}, a, b, c, d, e), std::optional<int>(7)); | ||
QCOMPARE(kismpl::fold_optional(std::plus{}, e, a, b, c, d), std::optional<int>(7)); | ||
QCOMPARE(kismpl::fold_optional(std::plus{}, d, e, a, b, c), std::optional<int>(7)); | ||
QCOMPARE(kismpl::fold_optional(std::plus{}, c, d, e, a, b), std::optional<int>(7)); | ||
QCOMPARE(kismpl::fold_optional(std::plus{}, b, c, d, e, a), std::optional<int>(7)); | ||
|
||
QCOMPARE(kismpl::fold_optional(std::plus{}, b, c, d, e), std::optional<int>(6)); | ||
QCOMPARE(kismpl::fold_optional(std::plus{}, c, d, e), std::optional<int>(4)); | ||
QCOMPARE(kismpl::fold_optional(std::plus{}, d, e), std::optional<int>()); | ||
QCOMPARE(kismpl::fold_optional(std::plus{}, e), std::optional<int>()); | ||
|
||
} | ||
|
||
SIMPLE_TEST_MAIN(KisMplTest) |
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,18 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 Dmitry Kazakov <[email protected]> | ||
* | ||
* SPDX-License-Identifier: GPL-2.0-or-later | ||
*/ | ||
#ifndef KISMPLTEST_H | ||
#define KISMPLTEST_H | ||
|
||
#include <QtTest/QtTest> | ||
|
||
class KisMplTest : public QObject | ||
{ | ||
Q_OBJECT | ||
private Q_SLOTS: | ||
void test(); | ||
}; | ||
|
||
#endif // KISMPLTEST_H |
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,26 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 L. E. Segovia <[email protected]> | ||
* SPDX-FileCopyrightText: 2022 Dmitry Kazakov <[email protected]> | ||
* | ||
* SPDX-License-Ref: GPL-2.0-or-later | ||
*/ | ||
|
||
#ifndef KRITAUI_EXPORT_INSTANCE_H | ||
#define KRITAUI_EXPORT_INSTANCE_H | ||
|
||
#include "kritaui_export.h" | ||
|
||
/* See https://reviews.llvm.org/D61118 */ | ||
|
||
#if defined(__MINGW64__) || defined(__MINGW32__) | ||
#define KRITAUI_EXPORT_TEMPLATE KRITAUI_EXPORT | ||
#define KRITAUI_EXPORT_INSTANCE | ||
#elif defined(_MSC_VER) | ||
#define KRITAUI_EXPORT_TEMPLATE | ||
#define KRITAUI_EXPORT_INSTANCE KRITAUI_EXPORT | ||
#else | ||
#define KRITAUI_EXPORT_TEMPLATE KRITAUI_EXPORT | ||
#define KRITAUI_EXPORT_INSTANCE KRITAUI_EXPORT | ||
#endif | ||
|
||
#endif // KRITAUI_EXPORT_INSTANCE_H |
Oops, something went wrong.