ruby-qt6-qtcore 6.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afdfc02cad6e0ad73e561b45af066266c61d4debc0a6289b0ffe7028b32511e9
4
- data.tar.gz: 0d83c79ca5b2bfc2197d274be2de4a0b798638937c7e1f4a9c28e761b264155d
3
+ metadata.gz: 421d59b25d06d17788bce00fee83b9918feff74eae210387095fae8aa97b4b5d
4
+ data.tar.gz: 938dda0b1baecee01b7dd32d3c2e808c5e751c5754d6b5f28222bc706e3a14cc
5
5
  SHA512:
6
- metadata.gz: f79e1b506a11c629347b1c9ce779496bab7a501cbccb92decc6fec97a9a8dceb628cb6485ddaf21f166de7675f53a7a4d6212f6a14608c5638172cff13802f10
7
- data.tar.gz: 2e0cb048cdd0789a3856223fbd269f7b24f8ab4e5a021f31cae19dc88a753575dcf05f294ffafb567709c2c354186e95d787182ecc13f34d1af758ef9a1c34a6
6
+ metadata.gz: c07341cefee080ecd0d8baec2713d3ab950666a547246059c365553482e8b735c9be843e05e9127eeb192ab46fb1caa947cd93762555bd801bdea374b1b919e2
7
+ data.tar.gz: f2acfcfd13bcaa0c906c9d39ad55f875c7d246ee85f2c48cad02920f86409359911766e57973793ec62e7d4fa2856530f3d3a98e6edb973bdcfbfaf675a8a5de
@@ -1,4 +1,5 @@
1
1
  #include "qanystringview-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qanystringview.h>
3
4
 
4
5
  #include <QString>
@@ -1,4 +1,5 @@
1
1
  #include "qdatetime-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qdatetime.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
 
@@ -96,7 +96,6 @@ void Init_qdir(Module rb_mQt6QtCore)
96
96
  define_qenum_value_under(rb_cQDirFilter, "Writable", QDir::Filter::Writable);
97
97
  define_qenum_value_under(rb_cQDirFilter, "Executable", QDir::Filter::Executable);
98
98
  define_qenum_value_under(rb_cQDirFilter, "PermissionMask", QDir::Filter::PermissionMask);
99
- define_qenum_value_under(rb_cQDirFilter, "Modified", QDir::Filter::Modified);
100
99
  define_qenum_value_under(rb_cQDirFilter, "Hidden", QDir::Filter::Hidden);
101
100
  define_qenum_value_under(rb_cQDirFilter, "System", QDir::Filter::System);
102
101
  define_qenum_value_under(rb_cQDirFilter, "AccessMask", QDir::Filter::AccessMask);
@@ -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"))
@@ -1,4 +1,5 @@
1
1
  #include "qiodevicebase-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qiodevicebase.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
  #include <rice/qt6/qflags.hpp>
@@ -1,4 +1,5 @@
1
1
  #include "qlocale-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qlocale.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
  #include <rice/qt6/qflags.hpp>
@@ -1,4 +1,5 @@
1
1
  #include "qmetaclassinfo-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qmetaobject.h>
3
4
 
4
5
  RICE4RUBYQT6_USE_NAMESPACE
@@ -1,4 +1,5 @@
1
1
  #include "qmetamethod-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qmetaobject.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
 
@@ -1,4 +1,5 @@
1
1
  #include "qmetaobject-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qmetaobject.h>
3
4
  #include <qobjectdefs.h>
4
5
 
@@ -1,4 +1,5 @@
1
1
  #include "qmetatype-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qmetatype.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
 
@@ -1,4 +1,5 @@
1
1
  #include "qt-enum-af-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qnamespace.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
 
@@ -1,4 +1,5 @@
1
1
  #include "qt-enum-gl-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qnamespace.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
 
@@ -1,4 +1,5 @@
1
1
  #include "qt-enum-mr-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qnamespace.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
 
@@ -106,15 +107,6 @@ void Init_qt_enum_mr(Module rb_mQt6QtCore)
106
107
  define_qenum_value_under(rb_cQtNativeGestureType, "RotateNativeGesture", Qt::NativeGestureType::RotateNativeGesture);
107
108
  define_qenum_value_under(rb_cQtNativeGestureType, "SwipeNativeGesture", Qt::NativeGestureType::SwipeNativeGesture);
108
109
 
109
- Data_Type<Qt::NavigationMode> rb_cQtNavigationMode =
110
- // RubyQt6::QtCore::Qt::NavigationMode
111
- define_qenum_under<Qt::NavigationMode>(rb_mQt, "NavigationMode");
112
- define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeNone", Qt::NavigationMode::NavigationModeNone);
113
- define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeKeypadTabOrder", Qt::NavigationMode::NavigationModeKeypadTabOrder);
114
- define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeKeypadDirectional", Qt::NavigationMode::NavigationModeKeypadDirectional);
115
- define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeCursorAuto", Qt::NavigationMode::NavigationModeCursorAuto);
116
- define_qenum_value_under(rb_cQtNavigationMode, "NavigationModeCursorForceVisible", Qt::NavigationMode::NavigationModeCursorForceVisible);
117
-
118
110
  Data_Type<Qt::Orientation> rb_cQtOrientation =
119
111
  // RubyQt6::QtCore::Qt::Orientation
120
112
  define_qenum_under<Qt::Orientation>(rb_mQt, "Orientation");
@@ -1,4 +1,5 @@
1
1
  #include "qt-enum-sz-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qnamespace.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
 
@@ -358,7 +359,6 @@ void Init_qt_enum_sz(Module rb_mQt6QtCore)
358
359
  define_qenum_value_under(rb_cQtWindowType, "Tool", Qt::WindowType::Tool);
359
360
  define_qenum_value_under(rb_cQtWindowType, "ToolTip", Qt::WindowType::ToolTip);
360
361
  define_qenum_value_under(rb_cQtWindowType, "SplashScreen", Qt::WindowType::SplashScreen);
361
- define_qenum_value_under(rb_cQtWindowType, "Desktop", Qt::WindowType::Desktop);
362
362
  define_qenum_value_under(rb_cQtWindowType, "SubWindow", Qt::WindowType::SubWindow);
363
363
  define_qenum_value_under(rb_cQtWindowType, "ForeignWindow", Qt::WindowType::ForeignWindow);
364
364
  define_qenum_value_under(rb_cQtWindowType, "CoverWindow", Qt::WindowType::CoverWindow);
@@ -1,4 +1,5 @@
1
1
  #include "qurl-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qurl.h>
3
4
  #include <rice/qt6/qenum.hpp>
4
5
  #include <rice/qt6/qflags.hpp>
@@ -1,4 +1,5 @@
1
1
  #include "qvariant-rb.hpp"
2
+ #include <qchar.h>
2
3
  #include <qvariant.h>
3
4
 
4
5
  #include <QString>
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RubyQt6
4
4
  module QtCore
5
- QTCORE_RUBYGEM_VERSION = "6.2.0"
5
+ QTCORE_RUBYGEM_VERSION = "6.3.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-qt6-qtcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Doe
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 6.2.0
18
+ version: 6.3.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 6.2.0
25
+ version: 6.3.0
26
26
  email:
27
27
  - johndoe@example.com
28
28
  executables: []