Skip to content

Commit 17c21f6

Browse files
QuentinLeeWeberQuentin Weber
and
Quentin Weber
authored
cxx-qt-lib: create individual header files
* create individual header files The files were created because the Rust bridges, which are specific, included headers, which is generic. This, in turn, included all possible types, even though only the type required by the bridge was actually needed. (Run-time n^2) With the change, each spefific bridge now has its own specific header that it can include. The only downside is, that the user has to manually include the specific header. * Add missing header files * Add missing gitattributes - set qset/qlist-headers to autogenerated/linguist-generated * remove code duplication * fixing clang-format errors * fixing clang-format errors --------- Co-authored-by: Quentin Weber <[email protected]>
1 parent 295e7e7 commit 17c21f6

File tree

107 files changed

+866
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+866
-143
lines changed

crates/cxx-qt-lib/.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ src/core/qvariant/qvariant_*.rs linguist-generated=true
99
src/core/qvector/qvector_*.rs linguist-generated=true
1010
include/core/qvector/qvector_*.h linguist-generated=true
1111
include/core/qvector/qvector_private.h linguist-generated=false
12+
include/core/qset/qset_*.h linguist-generated=true
13+
include/core/qset/qset_private.h linguist-generated=false
14+
include/core/qlist/qlist_*.h linguist-generated=true
15+
include/core/qlist/qlist_private.h linguist-generated=false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// clang-format off
2+
// SPDX-FileCopyrightText: 2022 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
3+
// clang-format on
4+
// SPDX-FileContributor: Andrew Hayzen <[email protected]>
5+
//
6+
// SPDX-License-Identifier: MIT OR Apache-2.0
7+
#pragma once
8+
9+
#include "qlist_bool.h"
10+
#include "qlist_f32.h"
11+
#include "qlist_f64.h"
12+
#include "qlist_i16.h"
13+
#include "qlist_i32.h"
14+
#include "qlist_i64.h"
15+
#include "qlist_i8.h"
16+
#ifdef CXX_QT_GUI_FEATURE
17+
#include "qlist_QColor.h"
18+
#endif
19+
#include "qlist_QByteArray.h"
20+
#include "qlist_QDate.h"
21+
#include "qlist_QDateTime.h"
22+
#include "qlist_QLine.h"
23+
#include "qlist_QLineF.h"
24+
#include "qlist_QMargins.h"
25+
#include "qlist_QMarginsF.h"
26+
#include "qlist_QPersistentModelIndex.h"
27+
#include "qlist_QPoint.h"
28+
#include "qlist_QPointF.h"
29+
#include "qlist_QRect.h"
30+
#include "qlist_QRectF.h"
31+
#include "qlist_QSize.h"
32+
#include "qlist_QSizeF.h"
33+
#include "qlist_QString.h"
34+
#include "qlist_QTime.h"
35+
#include "qlist_QUrl.h"
36+
#include "qlist_QUuid.h"
37+
#include "qlist_QVariant.h"
38+
#include "qlist_u16.h"
39+
#include "qlist_u32.h"
40+
#include "qlist_u64.h"
41+
#include "qlist_u8.h"

crates/cxx-qt-lib/include/core/qlist/qlist_QByteArray.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QColor.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QDate.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QDateTime.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QLine.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QLineF.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QMargins.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QMarginsF.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QPersistentModelIndex.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QPoint.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QPointF.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QRect.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QRectF.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QSize.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QSizeF.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QString.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QTime.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QUrl.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QUuid.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_QVariant.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_bool.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_f32.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_f64.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cxx-qt-lib/include/core/qlist/qlist_i16.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)