ruby-qt6-qtcore 2.1.1 → 6.0.0
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/.rubocop.yml +0 -1
- data/ext/qt6/qtcore/bando-core-rb.cpp +1 -1
- data/ext/qt6/qtcore/qabstractitemmodel-rb.cpp +6 -3
- data/ext/qt6/qtcore/qanystringview-rb.cpp +1 -1
- data/ext/qt6/qtcore/qbasictimer-rb.cpp +1 -1
- data/ext/qt6/qtcore/qbytearray-rb.cpp +1 -1
- data/ext/qt6/qtcore/qchar-rb.cpp +1 -1
- data/ext/qt6/qtcore/qcoreapplication-rb.cpp +18 -3
- data/ext/qt6/qtcore/qcoreevent-rb.cpp +4 -4
- data/ext/qt6/qtcore/qdatetime-rb.cpp +3 -3
- data/ext/qt6/qtcore/qdir-rb.cpp +1 -1
- data/ext/qt6/qtcore/qeventloop-rb.cpp +2 -1
- data/ext/qt6/qtcore/qfile-rb.cpp +2 -1
- data/ext/qt6/qtcore/qfiledevice-rb.cpp +2 -1
- data/ext/qt6/qtcore/qfileinfo-rb.cpp +1 -1
- data/ext/qt6/qtcore/qiodevice-rb.cpp +2 -1
- data/ext/qt6/qtcore/qiodevicebase-rb.cpp +1 -1
- data/ext/qt6/qtcore/qitemselection-rb.cpp +2 -2
- data/ext/qt6/qtcore/qitemselectionmodel-rb.cpp +2 -1
- data/ext/qt6/qtcore/qlibraryinfo-rb.cpp +1 -1
- data/ext/qt6/qtcore/qline-rb.cpp +2 -2
- data/ext/qt6/qtcore/qlocale-rb.cpp +1 -1
- data/ext/qt6/qtcore/qmargins-rb.cpp +2 -2
- data/ext/qt6/qtcore/qmetaclassinfo-rb.cpp +1 -1
- data/ext/qt6/qtcore/qmetamethod-rb.cpp +1 -1
- data/ext/qt6/qtcore/qmetaobject-rb.cpp +2 -2
- data/ext/qt6/qtcore/qmetaobjectbuilder-rb.cpp +4 -4
- data/ext/qt6/qtcore/qmetatype-rb.cpp +1 -1
- data/ext/qt6/qtcore/qmimetype-rb.cpp +1 -1
- data/ext/qt6/qtcore/qmodelindex-rb.cpp +1 -1
- data/ext/qt6/qtcore/qobject-rb.cpp +3 -1
- data/ext/qt6/qtcore/qpoint-rb.cpp +2 -2
- data/ext/qt6/qtcore/qprocess-rb.cpp +5 -4
- data/ext/qt6/qtcore/qprocessenvironment-rb.cpp +1 -1
- data/ext/qt6/qtcore/qrect-rb.cpp +2 -2
- data/ext/qt6/qtcore/qregularexpression-rb.cpp +3 -3
- data/ext/qt6/qtcore/qresource-rb.cpp +1 -1
- data/ext/qt6/qtcore/qsettings-rb.cpp +2 -1
- data/ext/qt6/qtcore/qsignalmapper-rb.cpp +2 -1
- data/ext/qt6/qtcore/qsize-rb.cpp +2 -2
- data/ext/qt6/qtcore/qstandardpaths-rb.cpp +1 -1
- data/ext/qt6/qtcore/qstring-rb.cpp +2 -1
- data/ext/qt6/qtcore/qstringlist-rb.cpp +1 -1
- data/ext/qt6/qtcore/qtcore-rb.cpp +0 -2
- data/ext/qt6/qtcore/qtextstream-rb.cpp +1 -1
- data/ext/qt6/qtcore/qtimer-rb.cpp +2 -1
- data/ext/qt6/qtcore/qtranslator-rb.cpp +2 -1
- data/ext/qt6/qtcore/qurl-rb.cpp +1 -1
- data/ext/qt6/qtcore/qurlquery-rb.cpp +1 -1
- data/ext/qt6/qtcore/quuid-rb.cpp +1 -1
- data/ext/qt6/qtcore/qvariant-rb.cpp +2 -1
- data/ext/qt6/qtcore/qvariantlist-rb.cpp +1 -1
- data/ext/qt6/qtcore/qvariantmap-rb.cpp +1 -1
- data/lib/qt6/bando/dsl.rb +11 -5
- data/lib/qt6/configuration.rb +1 -1
- data/lib/qt6/ducktyping.rb +25 -12
- data/lib/qt6/qtcore/private/inflector.rb +6 -0
- data/lib/qt6/qtcore/qcoreapplication.rb +12 -18
- data/lib/qt6/qtcore/qobject.rb +4 -4
- data/lib/qt6/qtcore/qprocess.rb +3 -3
- data/lib/qt6/qtcore/qsettings.rb +5 -2
- data/lib/qt6/qtcore/qstring.rb +6 -0
- data/lib/qt6/qtcore/qtranslator.rb +2 -1
- data/lib/qt6/qtcore/qvariant.rb +7 -1
- data/lib/qt6/qtcore/qvariantmap.rb +1 -1
- data/lib/qt6/qtcore/version.rb +1 -1
- data/lib/qt6/qtcore.rb +2 -1
- data/lib/qt6/refinements/kernel.rb +0 -6
- metadata +3 -4
- data/lib/qt6/refinements/object.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c215d75faa77b4232acffac71074f14ef03ab9696b3e514272139d18ff19a7d6
|
|
4
|
+
data.tar.gz: b64b509a970d2fc28b574041237b2eaee0ce8f9af2c3ac4107f885827291a821
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d8e0fc82ce7d03d22294a2739f71703f057a7584bb1a5c77f6b9a0c187a84c770cd5253362c506fce7347187f1327474d1f3e9f832ce88219b1921d06dbd051
|
|
7
|
+
data.tar.gz: 7ee6b5ff7c906a708b22984a2974cfd1e08f25f706a665beb67fe8ad458fca8cfb7614ef038d750c69a310546e80f095e91d28665bf660c8548029c72aff8322
|
data/.rubocop.yml
CHANGED
|
@@ -7,7 +7,7 @@ RICE4RUBYQT6_USE_NAMESPACE
|
|
|
7
7
|
void Init_bando_core(Module rb_mQt6Bando)
|
|
8
8
|
{
|
|
9
9
|
Data_Type<bando_FunctionName> rb_cBandoFunctionName =
|
|
10
|
-
|
|
10
|
+
define_qlass_under<bando_FunctionName>(rb_mQt6Bando, "FunctionName");
|
|
11
11
|
define_qenum_value_under(rb_cBandoFunctionName, "ActionEvent", bando_FunctionName::actionEvent);
|
|
12
12
|
define_qenum_value_under(rb_cBandoFunctionName, "ChangeEvent", bando_FunctionName::changeEvent);
|
|
13
13
|
define_qenum_value_under(rb_cBandoFunctionName, "ChildEvent", bando_FunctionName::childEvent);
|
|
@@ -15,8 +15,9 @@ void Init_qabstractitemmodel(Module rb_mQt6QtCore)
|
|
|
15
15
|
{
|
|
16
16
|
rb_cQAbstractItemModel =
|
|
17
17
|
// RubyQt6::QtCore::QAbstractItemModel
|
|
18
|
-
|
|
18
|
+
define_qlass_under<QAbstractItemModel, QObject>(rb_mQt6QtCore, "QAbstractItemModel")
|
|
19
19
|
// RubyQt6-Defined Functions
|
|
20
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QAbstractItemModel * { return qobject_cast<QAbstractItemModel *>(object); })
|
|
20
21
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QAbstractItemModel::staticMetaObject; })
|
|
21
22
|
// Public Functions
|
|
22
23
|
.define_method("buddy", &QAbstractItemModel::buddy, Arg("index"))
|
|
@@ -101,8 +102,9 @@ void Init_qabstractitemmodel(Module rb_mQt6QtCore)
|
|
|
101
102
|
|
|
102
103
|
rb_cQAbstractTableModel =
|
|
103
104
|
// RubyQt6::QtCore::QAbstractTableModel
|
|
104
|
-
|
|
105
|
+
define_qlass_under<QAbstractTableModel, QAbstractItemModel>(rb_mQt6QtCore, "QAbstractTableModel")
|
|
105
106
|
// RubyQt6-Defined Functions
|
|
107
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QAbstractTableModel * { return qobject_cast<QAbstractTableModel *>(object); })
|
|
106
108
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QAbstractTableModel::staticMetaObject; })
|
|
107
109
|
// Public Functions
|
|
108
110
|
.define_method("drop_mime_data", &QAbstractTableModel::dropMimeData, Arg("data"), Arg("action"), Arg("row"), Arg("column"), Arg("parent"))
|
|
@@ -112,8 +114,9 @@ void Init_qabstractitemmodel(Module rb_mQt6QtCore)
|
|
|
112
114
|
|
|
113
115
|
rb_cQAbstractListModel =
|
|
114
116
|
// RubyQt6::QtCore::QAbstractListModel
|
|
115
|
-
|
|
117
|
+
define_qlass_under<QAbstractListModel, QAbstractItemModel>(rb_mQt6QtCore, "QAbstractListModel")
|
|
116
118
|
// RubyQt6-Defined Functions
|
|
119
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QAbstractListModel * { return qobject_cast<QAbstractListModel *>(object); })
|
|
117
120
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QAbstractListModel::staticMetaObject; })
|
|
118
121
|
// Public Functions
|
|
119
122
|
.define_method("drop_mime_data", &QAbstractListModel::dropMimeData, Arg("data"), Arg("action"), Arg("row"), Arg("column"), Arg("parent"))
|
|
@@ -11,7 +11,7 @@ void Init_qanystringview(Module rb_mQt6QtCore)
|
|
|
11
11
|
{
|
|
12
12
|
rb_cQAnyStringView =
|
|
13
13
|
// RubyQt6::QtCore::QAnyStringView
|
|
14
|
-
|
|
14
|
+
define_qlass_under<QAnyStringView>(rb_mQt6QtCore, "QAnyStringView")
|
|
15
15
|
// Constructor
|
|
16
16
|
.define_constructor(Constructor<QAnyStringView, const QString &>(), Arg("str"))
|
|
17
17
|
// Public Functions
|
|
@@ -9,7 +9,7 @@ void Init_qbasictimer(Module rb_mQt6QtCore)
|
|
|
9
9
|
{
|
|
10
10
|
rb_cQBasicTimer =
|
|
11
11
|
// RubyQt6::QtCore::QBasicTimer
|
|
12
|
-
|
|
12
|
+
define_qlass_under<QBasicTimer>(rb_mQt6QtCore, "QBasicTimer")
|
|
13
13
|
// Constructor
|
|
14
14
|
.define_constructor(Constructor<QBasicTimer>())
|
|
15
15
|
// Public Functions
|
|
@@ -27,7 +27,7 @@ void Init_qbytearray(Module rb_mQt6QtCore)
|
|
|
27
27
|
{
|
|
28
28
|
rb_cQByteArray =
|
|
29
29
|
// RubyQt6::QtCore::QByteArray
|
|
30
|
-
|
|
30
|
+
define_qlass_under<QByteArray>(rb_mQt6QtCore, "QByteArray")
|
|
31
31
|
// RubyQt6-Defined Functions
|
|
32
32
|
.define_method("[]", QByteArray_slice, Arg("start"), Arg("length") = static_cast<qsizetype>(1))
|
|
33
33
|
.define_singleton_function("_operator_compare", [](QByteArray *lhs, QByteArray *rhs) -> int { return lhs->compare(*rhs); }, Arg("lhs"), Arg("rhs"))
|
data/ext/qt6/qtcore/qchar-rb.cpp
CHANGED
|
@@ -12,7 +12,7 @@ void Init_qchar(Module rb_mQt6QtCore)
|
|
|
12
12
|
{
|
|
13
13
|
rb_cQChar =
|
|
14
14
|
// RubyQt6::QtCore::QChar
|
|
15
|
-
|
|
15
|
+
define_qlass_under<QChar>(rb_mQt6QtCore, "QChar")
|
|
16
16
|
// RubyQt6-Defined Functions
|
|
17
17
|
.define_method("to_std_string", [](QChar *self) -> std::string { return QString(*self).toStdString(); })
|
|
18
18
|
// Constructor
|
|
@@ -9,16 +9,31 @@ RICE4RUBYQT6_USE_NAMESPACE
|
|
|
9
9
|
|
|
10
10
|
Class rb_cQCoreApplication;
|
|
11
11
|
|
|
12
|
+
QCoreApplication* QCoreApplication_new(const QList<QByteArray>& strlist)
|
|
13
|
+
{
|
|
14
|
+
// The data referred to by argc and argv must stay valid for the
|
|
15
|
+
// entire lifetime of the QCoreApplication object. In addition,
|
|
16
|
+
// argc must be greater than zero and argv must contain at least
|
|
17
|
+
// one valid character string.
|
|
18
|
+
static int argc = strlist.size();
|
|
19
|
+
static char** argv = new char*[argc];
|
|
20
|
+
for (int i = 0; i < argc; ++i) {
|
|
21
|
+
const QByteArray &bytes = strlist[i];
|
|
22
|
+
argv[i] = strdup(bytes.constData());
|
|
23
|
+
}
|
|
24
|
+
return new QCoreApplication(argc, argv);
|
|
25
|
+
}
|
|
26
|
+
|
|
12
27
|
void Init_qcoreapplication(Module rb_mQt6QtCore)
|
|
13
28
|
{
|
|
14
29
|
rb_cQCoreApplication =
|
|
15
30
|
// RubyQt6::QtCore::QCoreApplication
|
|
16
|
-
|
|
31
|
+
define_qlass_under<QCoreApplication, QObject>(rb_mQt6QtCore, "QCoreApplication")
|
|
17
32
|
// RubyQt6-Defined Functions
|
|
18
33
|
.define_singleton_function("application_pid", []() -> qint64 { return QCoreApplication::applicationPid(); })
|
|
34
|
+
.define_singleton_function("_new", QCoreApplication_new, Arg("argv"), Return().takeOwnership())
|
|
35
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QCoreApplication * { return qobject_cast<QCoreApplication *>(object); })
|
|
19
36
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QCoreApplication::staticMetaObject; })
|
|
20
|
-
// Constructor
|
|
21
|
-
.define_constructor(Constructor<QCoreApplication, int &, char **>(), Arg("argc"), ArgBuffer("argv"))
|
|
22
37
|
// Public Functions
|
|
23
38
|
.define_method("check_permission", &QCoreApplication::checkPermission, Arg("permission"))
|
|
24
39
|
.define_method("install_native_event_filter", &QCoreApplication::installNativeEventFilter, Arg("filter_obj"))
|
|
@@ -13,7 +13,7 @@ void Init_qcoreevent(Module rb_mQt6QtCore)
|
|
|
13
13
|
{
|
|
14
14
|
rb_cQEvent =
|
|
15
15
|
// RubyQt6::QtCore::QEvent
|
|
16
|
-
|
|
16
|
+
define_qlass_under<QEvent>(rb_mQt6QtCore, "QEvent")
|
|
17
17
|
// Public Functions
|
|
18
18
|
.define_method("accept", &QEvent::accept)
|
|
19
19
|
.define_method("ignore", &QEvent::ignore)
|
|
@@ -210,7 +210,7 @@ void Init_qcoreevent(Module rb_mQt6QtCore)
|
|
|
210
210
|
|
|
211
211
|
rb_cQChildEvent =
|
|
212
212
|
// RubyQt6::QtCore::QChildEvent
|
|
213
|
-
|
|
213
|
+
define_qlass_under<QChildEvent, QEvent>(rb_mQt6QtCore, "QChildEvent")
|
|
214
214
|
// Public Functions
|
|
215
215
|
.define_method("added", &QChildEvent::added)
|
|
216
216
|
.define_method("child", &QChildEvent::child)
|
|
@@ -219,7 +219,7 @@ void Init_qcoreevent(Module rb_mQt6QtCore)
|
|
|
219
219
|
|
|
220
220
|
rb_cQTimerEvent =
|
|
221
221
|
// RubyQt6::QtCore::QTimerEvent
|
|
222
|
-
|
|
222
|
+
define_qlass_under<QTimerEvent, QEvent>(rb_mQt6QtCore, "QTimerEvent")
|
|
223
223
|
// Public Functions
|
|
224
224
|
.define_method("id", &QTimerEvent::id)
|
|
225
225
|
.define_method("matches", &QTimerEvent::matches, Arg("timer"))
|
|
@@ -227,7 +227,7 @@ void Init_qcoreevent(Module rb_mQt6QtCore)
|
|
|
227
227
|
|
|
228
228
|
rb_cQDynamicPropertyChangeEvent =
|
|
229
229
|
// RubyQt6::QtCore::QDynamicPropertyChangeEvent
|
|
230
|
-
|
|
230
|
+
define_qlass_under<QDynamicPropertyChangeEvent, QEvent>(rb_mQt6QtCore, "QDynamicPropertyChangeEvent")
|
|
231
231
|
// Public Functions
|
|
232
232
|
.define_method("property_name", &QDynamicPropertyChangeEvent::propertyName);
|
|
233
233
|
}
|
|
@@ -35,7 +35,7 @@ void Init_qdatetime(Module rb_mQt6QtCore)
|
|
|
35
35
|
{
|
|
36
36
|
rb_cQDateTime =
|
|
37
37
|
// RubyQt6::QtCore::QDateTime
|
|
38
|
-
|
|
38
|
+
define_qlass_under<QDateTime>(rb_mQt6QtCore, "QDateTime")
|
|
39
39
|
// RubyQt6-Defined Functions
|
|
40
40
|
.define_singleton_function("_operator_compare", QDateTime_operator_compare, Arg("lhs"), Arg("rhs"))
|
|
41
41
|
// Constructor
|
|
@@ -106,7 +106,7 @@ void Init_qdatetime(Module rb_mQt6QtCore)
|
|
|
106
106
|
|
|
107
107
|
rb_cQDate =
|
|
108
108
|
// RubyQt6::QtCore::QDate
|
|
109
|
-
|
|
109
|
+
define_qlass_under<QDate>(rb_mQt6QtCore, "QDate")
|
|
110
110
|
// RubyQt6-Defined Functions
|
|
111
111
|
.define_singleton_function("_operator_compare", QDate_operator_compare, Arg("lhs"), Arg("rhs"))
|
|
112
112
|
// Constructor
|
|
@@ -158,7 +158,7 @@ void Init_qdatetime(Module rb_mQt6QtCore)
|
|
|
158
158
|
|
|
159
159
|
rb_cQTime =
|
|
160
160
|
// RubyQt6::QtCore::QTime
|
|
161
|
-
|
|
161
|
+
define_qlass_under<QTime>(rb_mQt6QtCore, "QTime")
|
|
162
162
|
// RubyQt6-Defined Functions
|
|
163
163
|
.define_singleton_function("_operator_compare", QTime_operator_compare, Arg("lhs"), Arg("rhs"))
|
|
164
164
|
// Constructor
|
data/ext/qt6/qtcore/qdir-rb.cpp
CHANGED
|
@@ -11,7 +11,7 @@ void Init_qdir(Module rb_mQt6QtCore)
|
|
|
11
11
|
{
|
|
12
12
|
rb_cQDir =
|
|
13
13
|
// RubyQt6::QtCore::QDir
|
|
14
|
-
|
|
14
|
+
define_qlass_under<QDir>(rb_mQt6QtCore, "QDir")
|
|
15
15
|
// RubyQt6-Defined Functions
|
|
16
16
|
.define_method("mkdir", [](QDir *self, const QString &dir_name) -> bool { return self->mkdir(dir_name); }, Arg("dir_name"))
|
|
17
17
|
.define_method("mkdir", [](QDir *self, const QString &dir_name, QFileDevice::Permissions permissions) -> bool { return self->mkdir(dir_name, permissions); }, Arg("dir_name"), Arg("permissions"))
|
|
@@ -11,8 +11,9 @@ void Init_qeventloop(Module rb_mQt6QtCore)
|
|
|
11
11
|
{
|
|
12
12
|
rb_cQEventLoop =
|
|
13
13
|
// RubyQt6::QtCore::QEventLoop
|
|
14
|
-
|
|
14
|
+
define_qlass_under<QEventLoop, QObject>(rb_mQt6QtCore, "QEventLoop")
|
|
15
15
|
// RubyQt6-Defined Functions
|
|
16
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QEventLoop * { return qobject_cast<QEventLoop *>(object); })
|
|
16
17
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QEventLoop::staticMetaObject; });
|
|
17
18
|
|
|
18
19
|
Data_Type<QEventLoop::ProcessEventsFlag> rb_cQEventLoopProcessEventsFlag =
|
data/ext/qt6/qtcore/qfile-rb.cpp
CHANGED
|
@@ -9,8 +9,9 @@ void Init_qfile(Module rb_mQt6QtCore)
|
|
|
9
9
|
{
|
|
10
10
|
rb_cQFile =
|
|
11
11
|
// RubyQt6::QtCore::QFile
|
|
12
|
-
|
|
12
|
+
define_qlass_under<QFile, QFileDevice>(rb_mQt6QtCore, "QFile")
|
|
13
13
|
// RubyQt6-Defined Functions
|
|
14
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QFile * { return qobject_cast<QFile *>(object); })
|
|
14
15
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QFile::staticMetaObject; })
|
|
15
16
|
// Constructor
|
|
16
17
|
.define_constructor(Constructor<QFile, const QString &>(), Arg("name"))
|
|
@@ -13,8 +13,9 @@ void Init_qfiledevice(Module rb_mQt6QtCore)
|
|
|
13
13
|
{
|
|
14
14
|
rb_cQFileDevice =
|
|
15
15
|
// RubyQt6::QtCore::QFileDevice
|
|
16
|
-
|
|
16
|
+
define_qlass_under<QFileDevice, QIODevice>(rb_mQt6QtCore, "QFileDevice")
|
|
17
17
|
// RubyQt6-Defined Functions
|
|
18
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QFileDevice * { return qobject_cast<QFileDevice *>(object); })
|
|
18
19
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QFileDevice::staticMetaObject; })
|
|
19
20
|
// Public Functions
|
|
20
21
|
.define_method("at_end", &QFileDevice::atEnd)
|
|
@@ -12,7 +12,7 @@ void Init_qfileinfo(Module rb_mQt6QtCore)
|
|
|
12
12
|
{
|
|
13
13
|
rb_cQFileInfo =
|
|
14
14
|
// RubyQt6::QtCore::QFileInfo
|
|
15
|
-
|
|
15
|
+
define_qlass_under<QFileInfo>(rb_mQt6QtCore, "QFileInfo")
|
|
16
16
|
// Constructor
|
|
17
17
|
.define_constructor(Constructor<QFileInfo>())
|
|
18
18
|
.define_constructor(Constructor<QFileInfo, const QString &>(), Arg("file"))
|
|
@@ -9,8 +9,9 @@ void Init_qiodevice(Module rb_mQt6QtCore)
|
|
|
9
9
|
{
|
|
10
10
|
rb_cQIODevice =
|
|
11
11
|
// RubyQt6::QtCore::QIODevice
|
|
12
|
-
|
|
12
|
+
define_qlass_under<QIODevice, QObject>(rb_mQt6QtCore, "QIODevice")
|
|
13
13
|
// RubyQt6-Defined Functions
|
|
14
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QIODevice * { return qobject_cast<QIODevice *>(object); })
|
|
14
15
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QIODevice::staticMetaObject; })
|
|
15
16
|
// Public Functions
|
|
16
17
|
.define_method("at_end", &QIODevice::atEnd)
|
|
@@ -11,7 +11,7 @@ void Init_qiodevicebase(Module rb_mQt6QtCore)
|
|
|
11
11
|
{
|
|
12
12
|
rb_cQIODeviceBase =
|
|
13
13
|
// RubyQt6::QtCore::QIODeviceBase
|
|
14
|
-
|
|
14
|
+
define_qlass_under<QIODeviceBase>(rb_mQt6QtCore, "QIODeviceBase");
|
|
15
15
|
|
|
16
16
|
Data_Type<QIODeviceBase::OpenModeFlag> rb_cQIODeviceBaseOpenModeFlag =
|
|
17
17
|
// RubyQt6::QtCore::QIODeviceBase::OpenModeFlag
|
|
@@ -10,7 +10,7 @@ void Init_qitemselection(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQItemSelectionRange =
|
|
12
12
|
// RubyQt6::QtCore::QItemSelectionRange
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QItemSelectionRange>(rb_mQt6QtCore, "QItemSelectionRange")
|
|
14
14
|
// Constructor
|
|
15
15
|
.define_constructor(Constructor<QItemSelectionRange>())
|
|
16
16
|
.define_constructor(Constructor<QItemSelectionRange, const QModelIndex &>(), Arg("index"))
|
|
@@ -36,7 +36,7 @@ void Init_qitemselection(Module rb_mQt6QtCore)
|
|
|
36
36
|
|
|
37
37
|
rb_cQItemSelection =
|
|
38
38
|
// RubyQt6::QtCore::QItemSelection
|
|
39
|
-
|
|
39
|
+
define_qlass_under<QItemSelection, QList<QItemSelectionRange>>(rb_mQt6QtCore, "QItemSelection")
|
|
40
40
|
// RubyQt6-Defined Functions
|
|
41
41
|
.define_singleton_function("_qvariant_register_metatype", []() -> int { return qRegisterMetaType<QItemSelection>(); })
|
|
42
42
|
.define_singleton_function("_qvariant_from_value", [](const QItemSelection &value) -> QVariant { return QVariant::fromValue(value); })
|
|
@@ -13,8 +13,9 @@ void Init_qitemselectionmodel(Module rb_mQt6QtCore)
|
|
|
13
13
|
{
|
|
14
14
|
rb_cQItemSelectionModel =
|
|
15
15
|
// RubyQt6::QtCore::QItemSelectionModel
|
|
16
|
-
|
|
16
|
+
define_qlass_under<QItemSelectionModel, QObject>(rb_mQt6QtCore, "QItemSelectionModel")
|
|
17
17
|
// RubyQt6-Defined Functions
|
|
18
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QItemSelectionModel * { return qobject_cast<QItemSelectionModel *>(object); })
|
|
18
19
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QItemSelectionModel::staticMetaObject; })
|
|
19
20
|
// Constructor
|
|
20
21
|
.define_constructor(Constructor<QItemSelectionModel, QAbstractItemModel *, QObject *>(), Arg("model"), Arg("parent"))
|
|
@@ -10,7 +10,7 @@ void Init_qlibraryinfo(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQLibraryInfo =
|
|
12
12
|
// RubyQt6::QtCore::QLibraryInfo
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QLibraryInfo>(rb_mQt6QtCore, "QLibraryInfo")
|
|
14
14
|
// Static Public Members
|
|
15
15
|
.define_singleton_function("path", &QLibraryInfo::path, Arg("p"))
|
|
16
16
|
.define_singleton_function("paths", &QLibraryInfo::paths, Arg("p"));
|
data/ext/qt6/qtcore/qline-rb.cpp
CHANGED
|
@@ -10,7 +10,7 @@ void Init_qline(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQLine =
|
|
12
12
|
// RubyQt6::QtCore::QLine
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QLine>(rb_mQt6QtCore, "QLine")
|
|
14
14
|
// RubyQt6-Defined Functions
|
|
15
15
|
.define_singleton_function("_operator_equal", [](QLine *lhs, QLine *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
16
16
|
.define_singleton_function("_operator_equal", [](QLine *lhs, QLineF *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
@@ -41,7 +41,7 @@ void Init_qline(Module rb_mQt6QtCore)
|
|
|
41
41
|
|
|
42
42
|
rb_cQLineF =
|
|
43
43
|
// RubyQt6::QtCore::QLineF
|
|
44
|
-
|
|
44
|
+
define_qlass_under<QLineF>(rb_mQt6QtCore, "QLineF")
|
|
45
45
|
// RubyQt6-Defined Functions
|
|
46
46
|
.define_singleton_function("_operator_equal", [](QLineF *lhs, QLine *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
47
47
|
.define_singleton_function("_operator_equal", [](QLineF *lhs, QLineF *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
@@ -14,7 +14,7 @@ void Init_qlocale(Module rb_mQt6QtCore)
|
|
|
14
14
|
{
|
|
15
15
|
rb_cQLocale =
|
|
16
16
|
// RubyQt6::QtCore::QLocale
|
|
17
|
-
|
|
17
|
+
define_qlass_under<QLocale>(rb_mQt6QtCore, "QLocale")
|
|
18
18
|
// Public Functions
|
|
19
19
|
.define_method("am_text", &QLocale::amText)
|
|
20
20
|
.define_method("bcp47_name", &QLocale::bcp47Name, Arg("separator") = static_cast<QLocale::TagSeparator>(QLocale::TagSeparator::Dash))
|
|
@@ -10,7 +10,7 @@ void Init_qmargins(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQMargins =
|
|
12
12
|
// RubyQt6::QtCore::QMargins
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QMargins>(rb_mQt6QtCore, "QMargins")
|
|
14
14
|
// RubyQt6-Defined Functions
|
|
15
15
|
.define_singleton_function("_operator_equal", [](QMargins *lhs, QMargins *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
16
16
|
.define_singleton_function("_operator_equal", [](QMargins *lhs, QMarginsF *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
@@ -31,7 +31,7 @@ void Init_qmargins(Module rb_mQt6QtCore)
|
|
|
31
31
|
|
|
32
32
|
rb_cQMarginsF =
|
|
33
33
|
// RubyQt6::QtCore::QMarginsF
|
|
34
|
-
|
|
34
|
+
define_qlass_under<QMarginsF>(rb_mQt6QtCore, "QMarginsF")
|
|
35
35
|
// RubyQt6-Defined Functions
|
|
36
36
|
.define_singleton_function("_operator_equal", [](QMarginsF *lhs, QMargins *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
37
37
|
.define_singleton_function("_operator_equal", [](QMarginsF *lhs, QMarginsF *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
@@ -9,7 +9,7 @@ void Init_qmetaclassinfo(Module rb_mQt6QtCore)
|
|
|
9
9
|
{
|
|
10
10
|
rb_cQMetaClassInfo =
|
|
11
11
|
// RubyQt6::QtCore::QMetaClassInfo
|
|
12
|
-
|
|
12
|
+
define_qlass_under<QMetaClassInfo>(rb_mQt6QtCore, "QMetaClassInfo")
|
|
13
13
|
// Public Functions
|
|
14
14
|
.define_method("name", &QMetaClassInfo::name)
|
|
15
15
|
.define_method("value", &QMetaClassInfo::value);
|
|
@@ -10,7 +10,7 @@ void Init_qmetamethod(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQMetaMethod =
|
|
12
12
|
// RubyQt6::QtCore::QMetaMethod
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QMetaMethod>(rb_mQt6QtCore, "QMetaMethod")
|
|
14
14
|
// Public Functions
|
|
15
15
|
.define_method("access", &QMetaMethod::access)
|
|
16
16
|
.define_method("attributes", &QMetaMethod::attributes)
|
|
@@ -11,7 +11,7 @@ void Init_qmetaobject(Module rb_mQt6QtCore)
|
|
|
11
11
|
{
|
|
12
12
|
rb_cQMetaObject =
|
|
13
13
|
// RubyQt6::QtCore::QMetaObject
|
|
14
|
-
|
|
14
|
+
define_qlass_under<QMetaObject>(rb_mQt6QtCore, "QMetaObject")
|
|
15
15
|
// Public Functions
|
|
16
16
|
.define_method<QObject *(QMetaObject::*)(QObject *) const>("cast", &QMetaObject::cast, Arg("obj"))
|
|
17
17
|
.define_method<const QObject *(QMetaObject::*)(const QObject *) const>("cast", &QMetaObject::cast, Arg("obj"))
|
|
@@ -45,5 +45,5 @@ void Init_qmetaobject(Module rb_mQt6QtCore)
|
|
|
45
45
|
|
|
46
46
|
rb_cQMetaObjectConnection =
|
|
47
47
|
// RubyQt6::QtCore::QMetaObject::Connection
|
|
48
|
-
|
|
48
|
+
define_qlass_under<QMetaObject::Connection>(rb_cQMetaObject, "Connection");
|
|
49
49
|
}
|
|
@@ -12,7 +12,7 @@ void Init_qmetaobjectbuilder(Module rb_mQt6QtCore)
|
|
|
12
12
|
{
|
|
13
13
|
rb_cQMetaObjectBuilder =
|
|
14
14
|
// RubyQt6::QtCore::QMetaObjectBuilder
|
|
15
|
-
|
|
15
|
+
define_qlass_under<QMetaObjectBuilder>(rb_mQt6QtCore, "QMetaObjectBuilder")
|
|
16
16
|
// Constructor
|
|
17
17
|
.define_constructor(Constructor<QMetaObjectBuilder>())
|
|
18
18
|
// Public Functions
|
|
@@ -69,7 +69,7 @@ void Init_qmetaobjectbuilder(Module rb_mQt6QtCore)
|
|
|
69
69
|
|
|
70
70
|
rb_cQMetaMethodBuilder =
|
|
71
71
|
// RubyQt6::QtCore::QMetaMethodBuilder
|
|
72
|
-
|
|
72
|
+
define_qlass_under<QMetaMethodBuilder>(rb_mQt6QtCore, "QMetaMethodBuilder")
|
|
73
73
|
// Public Functions
|
|
74
74
|
.define_method("access", &QMetaMethodBuilder::access)
|
|
75
75
|
.define_method("attributes", &QMetaMethodBuilder::attributes)
|
|
@@ -92,7 +92,7 @@ void Init_qmetaobjectbuilder(Module rb_mQt6QtCore)
|
|
|
92
92
|
|
|
93
93
|
rb_cQMetaPropertyBuilder =
|
|
94
94
|
// RubyQt6::QtCore::QMetaPropertyBuilder
|
|
95
|
-
|
|
95
|
+
define_qlass_under<QMetaPropertyBuilder>(rb_mQt6QtCore, "QMetaPropertyBuilder")
|
|
96
96
|
// Public Functions
|
|
97
97
|
.define_method("has_notify_signal", &QMetaPropertyBuilder::hasNotifySignal)
|
|
98
98
|
.define_method("has_std_cpp_set", &QMetaPropertyBuilder::hasStdCppSet)
|
|
@@ -133,7 +133,7 @@ void Init_qmetaobjectbuilder(Module rb_mQt6QtCore)
|
|
|
133
133
|
|
|
134
134
|
rb_cQMetaEnumBuilder =
|
|
135
135
|
// RubyQt6::QtCore::QMetaEnumBuilder
|
|
136
|
-
|
|
136
|
+
define_qlass_under<QMetaEnumBuilder>(rb_mQt6QtCore, "QMetaEnumBuilder")
|
|
137
137
|
// Public Functions
|
|
138
138
|
.define_method<int (QMetaEnumBuilder::*)(const QByteArray &, int)>("add_key", &QMetaEnumBuilder::addKey, Arg("name"), Arg("value"))
|
|
139
139
|
.define_method<int (QMetaEnumBuilder::*)(const QByteArray &, quint64)>("add_key", &QMetaEnumBuilder::addKey, Arg("name"), Arg("value"))
|
|
@@ -10,7 +10,7 @@ void Init_qmetatype(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQMetaType =
|
|
12
12
|
// RubyQt6::QtCore::QMetaType
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QMetaType>(rb_mQt6QtCore, "QMetaType")
|
|
14
14
|
// RubyQt6-Defined Functions
|
|
15
15
|
.define_singleton_function("from_name", [](const char *name) -> QMetaType { return QMetaType::fromName(name); })
|
|
16
16
|
// Constructor
|
|
@@ -9,7 +9,7 @@ void Init_qmimetype(Module rb_mQt6QtCore)
|
|
|
9
9
|
{
|
|
10
10
|
rb_cQMimeType =
|
|
11
11
|
// RubyQt6::QtCore::QMimeType
|
|
12
|
-
|
|
12
|
+
define_qlass_under<QMimeType>(rb_mQt6QtCore, "QMimeType")
|
|
13
13
|
// Public Functions
|
|
14
14
|
.define_method("aliases", &QMimeType::aliases)
|
|
15
15
|
.define_method("all_ancestors", &QMimeType::allAncestors)
|
|
@@ -9,7 +9,7 @@ void Init_qmodelindex(Module rb_mQt6QtCore)
|
|
|
9
9
|
{
|
|
10
10
|
rb_cQModelIndex =
|
|
11
11
|
// RubyQt6::QtCore::QModelIndex
|
|
12
|
-
|
|
12
|
+
define_qlass_under<QModelIndex>(rb_mQt6QtCore, "QModelIndex")
|
|
13
13
|
// Constructor
|
|
14
14
|
.define_constructor(Constructor<QModelIndex>())
|
|
15
15
|
// Public Functions
|
|
@@ -29,10 +29,11 @@ void Init_qobject(Module rb_mQt6QtCore)
|
|
|
29
29
|
{
|
|
30
30
|
rb_cQObject =
|
|
31
31
|
// RubyQt6::QtCore::QObject
|
|
32
|
-
|
|
32
|
+
define_qlass_under<QObject>(rb_mQt6QtCore, "QObject")
|
|
33
33
|
// RubyQt6-Defined Functions
|
|
34
34
|
.define_method("_qobject_ptr", [](QObject *self) -> uintptr_t { return (uintptr_t)self; })
|
|
35
35
|
.define_singleton_function("_emit", QObject_emit, Arg("sender"), Arg("signal"), Arg("args"))
|
|
36
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QObject * { return qobject_cast<QObject *>(object); })
|
|
36
37
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QObject::staticMetaObject; })
|
|
37
38
|
.define_singleton_function("_delete_now", [](QObject *object) -> void { delete object; }, Arg("object").takeOwnership())
|
|
38
39
|
.define_singleton_function("_take_ownership_from_ruby", [](QObject *) -> void {}, Arg("object").takeOwnership())
|
|
@@ -56,6 +57,7 @@ void Init_qobject(Module rb_mQt6QtCore)
|
|
|
56
57
|
.define_method("window_type?", &QObject::isWindowType)
|
|
57
58
|
.define_method<void (QObject::*)(Qt::TimerId)>("kill_timer", &QObject::killTimer, Arg("id"))
|
|
58
59
|
.define_method<void (QObject::*)(int)>("kill_timer", &QObject::killTimer, Arg("id"))
|
|
60
|
+
.define_method("meta_object", &QObject::metaObject)
|
|
59
61
|
.define_method("move_to_thread", &QObject::moveToThread, Arg("thread"))
|
|
60
62
|
.define_method("object_name", &QObject::objectName)
|
|
61
63
|
.define_method("_parent", &QObject::parent)
|
|
@@ -10,7 +10,7 @@ void Init_qpoint(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQPoint =
|
|
12
12
|
// RubyQt6::QtCore::QPoint
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QPoint>(rb_mQt6QtCore, "QPoint")
|
|
14
14
|
// RubyQt6-Defined Functions
|
|
15
15
|
.define_method("*", [](QPoint *self, qreal factor) -> QPoint { return *self * factor; })
|
|
16
16
|
.define_method("+", [](QPoint *self, QPoint *other) -> QPoint { return *self + *other; })
|
|
@@ -37,7 +37,7 @@ void Init_qpoint(Module rb_mQt6QtCore)
|
|
|
37
37
|
|
|
38
38
|
rb_cQPointF =
|
|
39
39
|
// RubyQt6::QtCore::QPointF
|
|
40
|
-
|
|
40
|
+
define_qlass_under<QPointF>(rb_mQt6QtCore, "QPointF")
|
|
41
41
|
// RubyQt6-Defined Functions
|
|
42
42
|
.define_method("*", [](QPointF *self, qreal factor) -> QPointF { return *self * factor; })
|
|
43
43
|
.define_method("+", [](QPointF *self, QPointF *other) -> QPointF { return *self + *other; })
|
|
@@ -10,15 +10,16 @@ void Init_qprocess(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQProcess =
|
|
12
12
|
// RubyQt6::QtCore::QProcess
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QProcess, QIODevice>(rb_mQt6QtCore, "QProcess")
|
|
14
14
|
// RubyQt6-Defined Functions
|
|
15
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QProcess * { return qobject_cast<QProcess *>(object); })
|
|
15
16
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QProcess::staticMetaObject; })
|
|
16
17
|
// Constructor
|
|
17
18
|
.define_constructor(Constructor<QProcess, QObject *>(), Arg("parent"))
|
|
18
19
|
// Public Functions
|
|
19
20
|
.define_method("arguments", &QProcess::arguments)
|
|
20
21
|
.define_method("bytes_to_write", &QProcess::bytesToWrite)
|
|
21
|
-
.define_method("child_process_modifier", &QProcess::childProcessModifier)
|
|
22
|
+
// .define_method("child_process_modifier", &QProcess::childProcessModifier)
|
|
22
23
|
.define_method("close", &QProcess::close)
|
|
23
24
|
.define_method("close_read_channel", &QProcess::closeReadChannel, Arg("channel"))
|
|
24
25
|
.define_method("close_write_channel", &QProcess::closeWriteChannel)
|
|
@@ -26,7 +27,7 @@ void Init_qprocess(Module rb_mQt6QtCore)
|
|
|
26
27
|
.define_method("error", &QProcess::error)
|
|
27
28
|
.define_method("exit_code", &QProcess::exitCode)
|
|
28
29
|
.define_method("exit_status", &QProcess::exitStatus)
|
|
29
|
-
.define_method("fail_child_process_modifier", &QProcess::failChildProcessModifier, Arg("description"), Arg("error") = static_cast<int>(0))
|
|
30
|
+
// .define_method("fail_child_process_modifier", &QProcess::failChildProcessModifier, Arg("description"), Arg("error") = static_cast<int>(0))
|
|
30
31
|
.define_method("input_channel_mode", &QProcess::inputChannelMode)
|
|
31
32
|
.define_method("sequential?", &QProcess::isSequential)
|
|
32
33
|
.define_method("open", &QProcess::open, Arg("mode") = static_cast<QIODeviceBase::OpenMode>(QIODeviceBase::ReadWrite))
|
|
@@ -38,7 +39,7 @@ void Init_qprocess(Module rb_mQt6QtCore)
|
|
|
38
39
|
.define_method("read_all_standard_output", &QProcess::readAllStandardOutput)
|
|
39
40
|
.define_method("read_channel", &QProcess::readChannel)
|
|
40
41
|
.define_method("set_arguments", &QProcess::setArguments, Arg("arguments"))
|
|
41
|
-
.define_method("set_child_process_modifier", &QProcess::setChildProcessModifier, Arg("modifier"))
|
|
42
|
+
// .define_method("set_child_process_modifier", &QProcess::setChildProcessModifier, Arg("modifier"))
|
|
42
43
|
.define_method("set_environment", &QProcess::setEnvironment, Arg("environment"))
|
|
43
44
|
.define_method("set_input_channel_mode", &QProcess::setInputChannelMode, Arg("mode"))
|
|
44
45
|
.define_method("set_process_channel_mode", &QProcess::setProcessChannelMode, Arg("mode"))
|
|
@@ -10,7 +10,7 @@ void Init_qprocessenvironment(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQProcessEnvironment =
|
|
12
12
|
// RubyQt6::QtCore::QProcessEnvironment
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QProcessEnvironment>(rb_mQt6QtCore, "QProcessEnvironment")
|
|
14
14
|
// Public Functions
|
|
15
15
|
.define_method("clear", &QProcessEnvironment::clear)
|
|
16
16
|
.define_method("_contains", &QProcessEnvironment::contains, Arg("name"))
|
data/ext/qt6/qtcore/qrect-rb.cpp
CHANGED
|
@@ -10,7 +10,7 @@ void Init_qrect(Module rb_mQt6QtCore)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQRect =
|
|
12
12
|
// RubyQt6::QtCore::QRect
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QRect>(rb_mQt6QtCore, "QRect")
|
|
14
14
|
// RubyQt6-Defined Functions
|
|
15
15
|
.define_method("+", [](QRect *self, QMargins *margins) -> QRect { return *self + *margins; })
|
|
16
16
|
.define_method("-", [](QRect *self, QMargins *margins) -> QRect { return *self - *margins; })
|
|
@@ -88,7 +88,7 @@ void Init_qrect(Module rb_mQt6QtCore)
|
|
|
88
88
|
|
|
89
89
|
rb_cQRectF =
|
|
90
90
|
// RubyQt6::QtCore::QRectF
|
|
91
|
-
|
|
91
|
+
define_qlass_under<QRectF>(rb_mQt6QtCore, "QRectF")
|
|
92
92
|
// RubyQt6-Defined Functions
|
|
93
93
|
.define_method("+", [](QRectF *self, QMarginsF *margins) -> QRectF { return *self + *margins; })
|
|
94
94
|
.define_method("-", [](QRectF *self, QMarginsF *margins) -> QRectF { return *self - *margins; })
|
|
@@ -13,7 +13,7 @@ void Init_qregularexpression(Module rb_mQt6QtCore)
|
|
|
13
13
|
{
|
|
14
14
|
rb_cQRegularExpression =
|
|
15
15
|
// RubyQt6::QtCore::QRegularExpression
|
|
16
|
-
|
|
16
|
+
define_qlass_under<QRegularExpression>(rb_mQt6QtCore, "QRegularExpression")
|
|
17
17
|
// Constructor
|
|
18
18
|
.define_constructor(Constructor<QRegularExpression, const QString &, QRegularExpression::PatternOptions>(), Arg("pattern"), Arg("options"))
|
|
19
19
|
// Public Functions
|
|
@@ -84,7 +84,7 @@ void Init_qregularexpression(Module rb_mQt6QtCore)
|
|
|
84
84
|
|
|
85
85
|
rb_cQRegularExpressionMatch =
|
|
86
86
|
// RubyQt6::QtCore::QRegularExpressionMatch
|
|
87
|
-
|
|
87
|
+
define_qlass_under<QRegularExpressionMatch>(rb_mQt6QtCore, "QRegularExpressionMatch")
|
|
88
88
|
// Constructor
|
|
89
89
|
.define_constructor(Constructor<QRegularExpressionMatch>())
|
|
90
90
|
// Public Functions
|
|
@@ -109,7 +109,7 @@ void Init_qregularexpression(Module rb_mQt6QtCore)
|
|
|
109
109
|
|
|
110
110
|
rb_cQRegularExpressionMatchIterator =
|
|
111
111
|
// RubyQt6::QtCore::QRegularExpressionMatchIterator
|
|
112
|
-
|
|
112
|
+
define_qlass_under<QRegularExpressionMatchIterator>(rb_mQt6QtCore, "QRegularExpressionMatchIterator")
|
|
113
113
|
// Public Functions
|
|
114
114
|
.define_method("has_next", &QRegularExpressionMatchIterator::hasNext)
|
|
115
115
|
.define_method("match_options", &QRegularExpressionMatchIterator::matchOptions)
|