ruby-qt6-qtcore 6.3.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/qt6/qtcore/qfile-rb.cpp +8 -0
- data/ext/qt6/qtcore/qt-enum-mr-rb.cpp +0 -9
- data/lib/qt6/qtcore/qt.rb +0 -2
- data/lib/qt6/qtcore/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 421d59b25d06d17788bce00fee83b9918feff74eae210387095fae8aa97b4b5d
|
|
4
|
+
data.tar.gz: 938dda0b1baecee01b7dd32d3c2e808c5e751c5754d6b5f28222bc706e3a14cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c07341cefee080ecd0d8baec2713d3ab950666a547246059c365553482e8b735c9be843e05e9127eeb192ab46fb1caa947cd93762555bd801bdea374b1b919e2
|
|
7
|
+
data.tar.gz: f2acfcfd13bcaa0c906c9d39ad55f875c7d246ee85f2c48cad02920f86409359911766e57973793ec62e7d4fa2856530f3d3a98e6edb973bdcfbfaf675a8a5de
|
data/ext/qt6/qtcore/qfile-rb.cpp
CHANGED
|
@@ -16,7 +16,11 @@ void Init_qfile(Module rb_mQt6QtCore)
|
|
|
16
16
|
// Constructor
|
|
17
17
|
.define_constructor(Constructor<QFile, const QString &>(), Arg("name"))
|
|
18
18
|
// Public Functions
|
|
19
|
+
#if QT_VERSION >= QT_VERSION_CHECK(6, 12, 0)
|
|
20
|
+
.define_method<bool (QFile::*)(const QString &, std::optional<QFileDevice::Permissions>)>("copy", &QFile::copy, Arg("new_name"), Arg("perm") = static_cast<std::optional<QFileDevice::Permissions>>(std::nullopt))
|
|
21
|
+
#else
|
|
19
22
|
.define_method<bool (QFile::*)(const QString &)>("copy", &QFile::copy, Arg("new_name"))
|
|
23
|
+
#endif
|
|
20
24
|
.define_method<bool (QFile::*)() const>("exists", &QFile::exists)
|
|
21
25
|
.define_method("file_name", &QFile::fileName)
|
|
22
26
|
.define_method("filesystem_file_name", &QFile::filesystemFileName)
|
|
@@ -36,7 +40,11 @@ void Init_qfile(Module rb_mQt6QtCore)
|
|
|
36
40
|
.define_method("size", &QFile::size)
|
|
37
41
|
.define_method<QString (QFile::*)() const>("sym_link_target", &QFile::symLinkTarget)
|
|
38
42
|
// Static Public Members
|
|
43
|
+
#if QT_VERSION >= QT_VERSION_CHECK(6, 12, 0)
|
|
44
|
+
.define_singleton_function<bool (*)(const QString &, const QString &, std::optional<QFileDevice::Permissions>)>("copy", &QFile::copy, Arg("file_name"), Arg("new_name"), Arg("perm") = static_cast<std::optional<QFileDevice::Permissions>>(std::nullopt))
|
|
45
|
+
#else
|
|
39
46
|
.define_singleton_function<bool (*)(const QString &, const QString &)>("copy", &QFile::copy, Arg("file_name"), Arg("new_name"))
|
|
47
|
+
#endif
|
|
40
48
|
.define_singleton_function<QString (*)(const QByteArray &)>("decode_name", &QFile::decodeName, Arg("local_file_name"))
|
|
41
49
|
.define_singleton_function<QString (*)(const char *)>("decode_name", &QFile::decodeName, Arg("local_file_name"))
|
|
42
50
|
.define_singleton_function("encode_name", &QFile::encodeName, Arg("file_name"))
|
|
@@ -107,15 +107,6 @@ void Init_qt_enum_mr(Module rb_mQt6QtCore)
|
|
|
107
107
|
define_qenum_value_under(rb_cQtNativeGestureType, "RotateNativeGesture", Qt::NativeGestureType::RotateNativeGesture);
|
|
108
108
|
define_qenum_value_under(rb_cQtNativeGestureType, "SwipeNativeGesture", Qt::NativeGestureType::SwipeNativeGesture);
|
|
109
109
|
|
|
110
|
-
Data_Type<Qt::NavigationMode> rb_cQtNavigationMode =
|
|
111
|
-
// RubyQt6::QtCore::Qt::NavigationMode
|
|
112
|
-
define_qenum_under<Qt::NavigationMode>(rb_mQt, "NavigationMode");
|
|
113
|
-
define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeNone", Qt::NavigationMode::NavigationModeNone);
|
|
114
|
-
define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeKeypadTabOrder", Qt::NavigationMode::NavigationModeKeypadTabOrder);
|
|
115
|
-
define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeKeypadDirectional", Qt::NavigationMode::NavigationModeKeypadDirectional);
|
|
116
|
-
define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeCursorAuto", Qt::NavigationMode::NavigationModeCursorAuto);
|
|
117
|
-
define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeCursorForceVisible", Qt::NavigationMode::NavigationModeCursorForceVisible);
|
|
118
|
-
|
|
119
110
|
Data_Type<Qt::Orientation> rb_cQtOrientation =
|
|
120
111
|
// RubyQt6::QtCore::Qt::Orientation
|
|
121
112
|
define_qenum_under<Qt::Orientation>(rb_mQt, "Orientation");
|
data/lib/qt6/qtcore/qt.rb
CHANGED
|
@@ -56,7 +56,6 @@ module RubyQt6
|
|
|
56
56
|
# @!parse class MouseEventFlag ; end
|
|
57
57
|
# @!parse class MouseEventSource ; end
|
|
58
58
|
# @!parse class NativeGestureType ; end
|
|
59
|
-
# @!parse class NavigationMode ; end
|
|
60
59
|
# @!parse class Orientation ; end
|
|
61
60
|
# @!parse class PenCapStyle ; end
|
|
62
61
|
# @!parse class PenJoinStyle ; end
|
|
@@ -140,7 +139,6 @@ module RubyQt6
|
|
|
140
139
|
rubyqt6_declare_enum_under Qt, Qt::MouseEventFlag
|
|
141
140
|
rubyqt6_declare_enum_under Qt, Qt::MouseEventSource
|
|
142
141
|
rubyqt6_declare_enum_under Qt, Qt::NativeGestureType
|
|
143
|
-
rubyqt6_declare_enum_under Qt, Qt::NavigationMode
|
|
144
142
|
rubyqt6_declare_enum_under Qt, Qt::Orientation
|
|
145
143
|
rubyqt6_declare_enum_under Qt, Qt::PenCapStyle
|
|
146
144
|
rubyqt6_declare_enum_under Qt, Qt::PenJoinStyle
|
data/lib/qt6/qtcore/version.rb
CHANGED