KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
qcoro.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11
12#pragma once
13
14#if defined(DOCKS_DEVELOPER_MODE) && defined(KDDW_FRONTEND_FLUTTER) && !defined(DARTAGNAN_BINDINGS_RUN)
15#define KDDW_FLUTTER_HAS_COROUTINES
16#endif
17
18#ifdef KDDW_FLUTTER_HAS_COROUTINES
19#include "../3rdparty/qcoro/qcorotask.h"
20#define KDDW_QCORO_TASK QCoro::Task<bool>
21#define KDDW_CO_AWAIT co_await
22#define KDDW_CO_RETURN co_return
23#endif

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8