ruby-qt6-qtgui 2.1.1 → 6.1.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/ext/qt6/qtgui/qabstractfileiconprovider-rb.cpp +1 -1
- data/ext/qt6/qtgui/qaction-rb.cpp +2 -1
- data/ext/qt6/qtgui/qactiongroup-rb.cpp +2 -1
- data/ext/qt6/qtgui/qbrush-rb.cpp +1 -1
- data/ext/qt6/qtgui/qclipboard-rb.cpp +2 -1
- data/ext/qt6/qtgui/qcolor-rb.cpp +1 -1
- data/ext/qt6/qtgui/qcursor-rb.cpp +1 -1
- data/ext/qt6/qtgui/qdesktopservices-rb.cpp +1 -1
- data/ext/qt6/qtgui/qevent-rb.cpp +41 -41
- data/ext/qt6/qtgui/qfilesystemmodel-rb.cpp +4 -2
- data/ext/qt6/qtgui/qfont-rb.cpp +1 -1
- data/ext/qt6/qtgui/qfontdatabase-rb.cpp +1 -1
- data/ext/qt6/qtgui/qfontinfo-rb.cpp +1 -1
- data/ext/qt6/qtgui/qfontmetrics-rb.cpp +2 -2
- data/ext/qt6/qtgui/qgradient-rb.cpp +4 -4
- data/ext/qt6/qtgui/qguiapplication-rb.cpp +14 -3
- data/ext/qt6/qtgui/qicon-rb.cpp +5 -5
- data/ext/qt6/qtgui/qimage-rb.cpp +1 -1
- data/ext/qt6/qtgui/qimagewriter-rb.cpp +1 -1
- data/ext/qt6/qtgui/qkeysequence-rb.cpp +1 -1
- data/ext/qt6/qtgui/qmovie-rb.cpp +2 -1
- data/ext/qt6/qtgui/qpagedpaintdevice-rb.cpp +1 -1
- data/ext/qt6/qtgui/qpaintdevice-rb.cpp +1 -1
- data/ext/qt6/qtgui/qpainter-rb.cpp +1 -1
- data/ext/qt6/qtgui/qpainterpath-rb.cpp +2 -2
- data/ext/qt6/qtgui/qpainterpathstroker-rb.cpp +1 -1
- data/ext/qt6/qtgui/qpalette-rb.cpp +1 -1
- data/ext/qt6/qtgui/qpen-rb.cpp +1 -1
- data/ext/qt6/qtgui/qpicture-rb.cpp +1 -1
- data/ext/qt6/qtgui/qpixmap-rb.cpp +1 -1
- data/ext/qt6/qtgui/qpolygon-rb.cpp +2 -2
- data/ext/qt6/qtgui/qregion-rb.cpp +1 -1
- data/ext/qt6/qtgui/qscreen-rb.cpp +2 -1
- data/ext/qt6/qtgui/qshortcut-rb.cpp +2 -1
- data/ext/qt6/qtgui/qstandarditemmodel-rb.cpp +10 -12
- data/ext/qt6/qtgui/qstylehints-rb.cpp +2 -1
- data/ext/qt6/qtgui/qtextcursor-rb.cpp +1 -1
- data/ext/qt6/qtgui/qtextdocument-rb.cpp +2 -1
- data/ext/qt6/qtgui/qtextformat-rb.cpp +9 -9
- data/ext/qt6/qtgui/qtextlayout-rb.cpp +2 -2
- data/ext/qt6/qtgui/qtextlist-rb.cpp +2 -1
- data/ext/qt6/qtgui/qtextobject-rb.cpp +7 -4
- data/ext/qt6/qtgui/qtextoption-rb.cpp +1 -1
- data/ext/qt6/qtgui/qtexttable-rb.cpp +3 -2
- data/ext/qt6/qtgui/qtgui-rb.cpp +2 -0
- data/ext/qt6/qtgui/qtguipreludes-rb.cpp +9 -0
- data/ext/qt6/qtgui/qtguipreludes-rb.hpp +5 -0
- data/ext/qt6/qtgui/qtransform-rb.cpp +1 -1
- data/ext/qt6/qtgui/qvalidator-rb.cpp +8 -4
- data/ext/qt6/qtgui/qwindow-rb.cpp +3 -2
- data/ext/qt6/qtgui/t-qtgui-rb.cpp +8 -0
- data/lib/qt6/qtgui/qguiapplication.rb +2 -6
- data/lib/qt6/qtgui/qicon.rb +6 -0
- data/lib/qt6/qtgui/qpainter.rb +2 -1
- data/lib/qt6/qtgui/qstandarditem.rb +5 -0
- data/lib/qt6/qtgui/qstandarditemmodel.rb +26 -0
- data/lib/qt6/qtgui/qwindow.rb +5 -0
- data/lib/qt6/qtgui/version.rb +1 -1
- metadata +7 -5
|
@@ -10,7 +10,7 @@ void Init_qpagedpaintdevice(Module rb_mQt6QtGui)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQPagedPaintDevice =
|
|
12
12
|
// RubyQt6::QtGui::QPagedPaintDevice
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QPagedPaintDevice, QPaintDevice>(rb_mQt6QtGui, "QPagedPaintDevice")
|
|
14
14
|
// Public Functions
|
|
15
15
|
.define_method("new_page", &QPagedPaintDevice::newPage)
|
|
16
16
|
.define_method("page_layout", &QPagedPaintDevice::pageLayout)
|
|
@@ -11,7 +11,7 @@ void Init_qpaintdevice(Module rb_mQt6QtGui)
|
|
|
11
11
|
{
|
|
12
12
|
rb_cQPaintDevice =
|
|
13
13
|
// RubyQt6::QtGui::QPaintDevice
|
|
14
|
-
|
|
14
|
+
define_qlass_under<QPaintDevice>(rb_mQt6QtGui, "QPaintDevice")
|
|
15
15
|
// Public Functions
|
|
16
16
|
.define_method("color_count", &QPaintDevice::colorCount)
|
|
17
17
|
.define_method("depth", &QPaintDevice::depth)
|
|
@@ -17,7 +17,7 @@ void Init_qpainter(Module rb_mQt6QtGui)
|
|
|
17
17
|
{
|
|
18
18
|
rb_cQPainter =
|
|
19
19
|
// RubyQt6::QtGui::QPainter
|
|
20
|
-
|
|
20
|
+
define_qlass_under<QPainter>(rb_mQt6QtGui, "QPainter")
|
|
21
21
|
// Constructor
|
|
22
22
|
.define_constructor(Constructor<QPainter, QPaintDevice *>(), Arg("device"))
|
|
23
23
|
// Public Functions
|
|
@@ -13,7 +13,7 @@ void Init_qpainterpath(Module rb_mQt6QtGui)
|
|
|
13
13
|
{
|
|
14
14
|
rb_cQPainterPath =
|
|
15
15
|
// RubyQt6::QtGui::QPainterPath
|
|
16
|
-
|
|
16
|
+
define_qlass_under<QPainterPath>(rb_mQt6QtGui, "QPainterPath")
|
|
17
17
|
// Constructor
|
|
18
18
|
.define_constructor(Constructor<QPainterPath>())
|
|
19
19
|
.define_constructor(Constructor<QPainterPath, const QPointF &>(), Arg("start_point"))
|
|
@@ -89,7 +89,7 @@ void Init_qpainterpath(Module rb_mQt6QtGui)
|
|
|
89
89
|
|
|
90
90
|
rb_cQPainterPathElement =
|
|
91
91
|
// RubyQt6::QtGui::QPainterPath::Element
|
|
92
|
-
|
|
92
|
+
define_qlass_under<QPainterPath::Element>(rb_cQPainterPath, "Element")
|
|
93
93
|
.define_constructor(Constructor<QPainterPath::Element>())
|
|
94
94
|
.define_attr("x", &QPainterPath::Element::x)
|
|
95
95
|
.define_attr("y", &QPainterPath::Element::y)
|
|
@@ -11,7 +11,7 @@ void Init_qpainterpathstroker(Module rb_mQt6QtGui)
|
|
|
11
11
|
{
|
|
12
12
|
rb_cQPainterPathStroker =
|
|
13
13
|
// RubyQt6::QtGui::QPainterPathStroker
|
|
14
|
-
|
|
14
|
+
define_qlass_under<QPainterPathStroker>(rb_mQt6QtGui, "QPainterPathStroker")
|
|
15
15
|
// Constructor
|
|
16
16
|
.define_constructor(Constructor<QPainterPathStroker>())
|
|
17
17
|
.define_constructor(Constructor<QPainterPathStroker, const QPen &>(), Arg("pen"))
|
|
@@ -10,7 +10,7 @@ void Init_qpalette(Module rb_mQt6QtGui)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQPalette =
|
|
12
12
|
// RubyQt6::QtGui::QPalette
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QPalette>(rb_mQt6QtGui, "QPalette")
|
|
14
14
|
// RubyQt6-Defined Functions
|
|
15
15
|
.define_singleton_function("_operator_equal", [](QPalette *lhs, QPalette *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
16
16
|
// Constructor
|
data/ext/qt6/qtgui/qpen-rb.cpp
CHANGED
|
@@ -9,7 +9,7 @@ void Init_qpen(Module rb_mQt6QtGui)
|
|
|
9
9
|
{
|
|
10
10
|
rb_cQPen =
|
|
11
11
|
// RubyQt6::QtGui::QPen
|
|
12
|
-
|
|
12
|
+
define_qlass_under<QPen>(rb_mQt6QtGui, "QPen")
|
|
13
13
|
// RubyQt6-Defined Functions
|
|
14
14
|
.define_singleton_function("_operator_equal", [](QPen *lhs, QPen *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
15
15
|
// Constructor
|
|
@@ -12,7 +12,7 @@ void Init_qpicture(Module rb_mQt6QtGui)
|
|
|
12
12
|
{
|
|
13
13
|
rb_cQPicture =
|
|
14
14
|
// RubyQt6::QtGui::QPicture
|
|
15
|
-
|
|
15
|
+
define_qlass_under<QPicture, QPaintDevice>(rb_mQt6QtGui, "QPicture")
|
|
16
16
|
// Constructor
|
|
17
17
|
.define_constructor(Constructor<QPicture>())
|
|
18
18
|
// Public Functions
|
|
@@ -14,7 +14,7 @@ void Init_qpixmap(Module rb_mQt6QtGui)
|
|
|
14
14
|
{
|
|
15
15
|
rb_cQPixmap =
|
|
16
16
|
// RubyQt6::QtGui::QPixmap
|
|
17
|
-
|
|
17
|
+
define_qlass_under<QPixmap, QPaintDevice>(rb_mQt6QtGui, "QPixmap")
|
|
18
18
|
// Constructor
|
|
19
19
|
.define_constructor(Constructor<QPixmap>())
|
|
20
20
|
.define_constructor(Constructor<QPixmap, int, int>(), Arg("w"), Arg("h"))
|
|
@@ -10,7 +10,7 @@ void Init_qpolygon(Module rb_mQt6QtGui)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQPolygon =
|
|
12
12
|
// RubyQt6::QtGui::QPolygon
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QPolygon, QList<QPoint>>(rb_mQt6QtGui, "QPolygon")
|
|
14
14
|
// Constructor
|
|
15
15
|
.define_constructor(Constructor<QPolygon>())
|
|
16
16
|
// Public Functions
|
|
@@ -34,7 +34,7 @@ void Init_qpolygon(Module rb_mQt6QtGui)
|
|
|
34
34
|
|
|
35
35
|
rb_cQPolygonF =
|
|
36
36
|
// RubyQt6::QtGui::QPolygonF
|
|
37
|
-
|
|
37
|
+
define_qlass_under<QPolygonF, QList<QPointF>>(rb_mQt6QtGui, "QPolygonF")
|
|
38
38
|
// Constructor
|
|
39
39
|
.define_constructor(Constructor<QPolygonF>())
|
|
40
40
|
.define_constructor(Constructor<QPolygonF, const QPolygon &>(), Arg("polygon"))
|
|
@@ -13,7 +13,7 @@ void Init_qregion(Module rb_mQt6QtGui)
|
|
|
13
13
|
{
|
|
14
14
|
rb_cQRegion =
|
|
15
15
|
// RubyQt6::QtGui::QRegion
|
|
16
|
-
|
|
16
|
+
define_qlass_under<QRegion>(rb_mQt6QtGui, "QRegion")
|
|
17
17
|
// Constructor
|
|
18
18
|
.define_constructor(Constructor<QRegion>())
|
|
19
19
|
.define_constructor(Constructor<QRegion, int, int, int, int>(), Arg("x"), Arg("y"), Arg("w"), Arg("h"))
|
|
@@ -11,8 +11,9 @@ void Init_qscreen(Module rb_mQt6QtGui)
|
|
|
11
11
|
{
|
|
12
12
|
rb_cQScreen =
|
|
13
13
|
// RubyQt6::QtGui::QScreen
|
|
14
|
-
|
|
14
|
+
define_qlass_under<QScreen, QObject>(rb_mQt6QtGui, "QScreen")
|
|
15
15
|
// RubyQt6-Defined Functions
|
|
16
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QScreen * { return qobject_cast<QScreen *>(object); })
|
|
16
17
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QScreen::staticMetaObject; })
|
|
17
18
|
// Public Functions
|
|
18
19
|
.define_method("angle_between", &QScreen::angleBetween, Arg("a"), Arg("b"))
|
|
@@ -9,8 +9,9 @@ void Init_qshortcut(Module rb_mQt6QtGui)
|
|
|
9
9
|
{
|
|
10
10
|
rb_cQShortcut =
|
|
11
11
|
// RubyQt6::QtGui::QShortcut
|
|
12
|
-
|
|
12
|
+
define_qlass_under<QShortcut, QObject>(rb_mQt6QtGui, "QShortcut")
|
|
13
13
|
// RubyQt6-Defined Functions
|
|
14
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QShortcut * { return qobject_cast<QShortcut *>(object); })
|
|
14
15
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QShortcut::staticMetaObject; })
|
|
15
16
|
// Constructor
|
|
16
17
|
.define_constructor(Constructor<QShortcut, const QKeySequence &, QObject *>(), Arg("key"), Arg("parent"))
|
|
@@ -14,15 +14,15 @@ void Init_qstandarditemmodel(Module rb_mQt6QtGui)
|
|
|
14
14
|
{
|
|
15
15
|
rb_cQStandardItemModel =
|
|
16
16
|
// RubyQt6::QtGui::QStandardItemModel
|
|
17
|
-
|
|
17
|
+
define_qlass_under<QStandardItemModel, QAbstractItemModel>(rb_mQt6QtGui, "QStandardItemModel")
|
|
18
18
|
// RubyQt6-Defined Functions
|
|
19
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QStandardItemModel * { return qobject_cast<QStandardItemModel *>(object); })
|
|
19
20
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QStandardItemModel::staticMetaObject; })
|
|
20
21
|
// Constructor
|
|
21
22
|
.define_constructor(Constructor<QStandardItemModel, QObject *>(), Arg("parent"))
|
|
22
23
|
// Public Functions
|
|
23
|
-
.define_method("
|
|
24
|
-
.define_method<void (QStandardItemModel::*)(QStandardItem
|
|
25
|
-
.define_method<void (QStandardItemModel::*)(const QList<QStandardItem *> &)>("append_row", &QStandardItemModel::appendRow, Arg("items"))
|
|
24
|
+
.define_method("_append_column", &QStandardItemModel::appendColumn, Arg("items"))
|
|
25
|
+
.define_method<void (QStandardItemModel::*)(const QList<QStandardItem *> &)>("_append_row", &QStandardItemModel::appendRow, Arg("items"))
|
|
26
26
|
.define_method("bindable_sort_role", &QStandardItemModel::bindableSortRole)
|
|
27
27
|
.define_method("clear", &QStandardItemModel::clear)
|
|
28
28
|
.define_method("clear_item_data", &QStandardItemModel::clearItemData, Arg("index"))
|
|
@@ -36,12 +36,9 @@ void Init_qstandarditemmodel(Module rb_mQt6QtGui)
|
|
|
36
36
|
.define_method("horizontal_header_item", &QStandardItemModel::horizontalHeaderItem, Arg("column"))
|
|
37
37
|
.define_method("index", &QStandardItemModel::index, Arg("row"), Arg("column"), Arg("parent") = static_cast<const QModelIndex &>(QModelIndex()))
|
|
38
38
|
.define_method("index_from_item", &QStandardItemModel::indexFromItem, Arg("item"))
|
|
39
|
-
.define_method<
|
|
40
|
-
.define_method<void (QStandardItemModel::*)(int, const QList<QStandardItem *> &)>("insert_column", &QStandardItemModel::insertColumn, Arg("column"), Arg("items"))
|
|
39
|
+
.define_method<void (QStandardItemModel::*)(int, const QList<QStandardItem *> &)>("_insert_column", &QStandardItemModel::insertColumn, Arg("column"), Arg("items"))
|
|
41
40
|
.define_method("insert_columns", &QStandardItemModel::insertColumns, Arg("column"), Arg("count"), Arg("parent") = static_cast<const QModelIndex &>(QModelIndex()))
|
|
42
|
-
.define_method<
|
|
43
|
-
.define_method<void (QStandardItemModel::*)(int, QStandardItem *)>("insert_row", &QStandardItemModel::insertRow, Arg("row"), Arg("item"))
|
|
44
|
-
.define_method<void (QStandardItemModel::*)(int, const QList<QStandardItem *> &)>("insert_row", &QStandardItemModel::insertRow, Arg("row"), Arg("items"))
|
|
41
|
+
.define_method<void (QStandardItemModel::*)(int, const QList<QStandardItem *> &)>("_insert_row", &QStandardItemModel::insertRow, Arg("row"), Arg("items"))
|
|
45
42
|
.define_method("insert_rows", &QStandardItemModel::insertRows, Arg("row"), Arg("count"), Arg("parent") = static_cast<const QModelIndex &>(QModelIndex()))
|
|
46
43
|
.define_method("invisible_root_item", &QStandardItemModel::invisibleRootItem)
|
|
47
44
|
.define_method("item", &QStandardItemModel::item, Arg("row"), Arg("column") = static_cast<int>(0))
|
|
@@ -51,7 +48,8 @@ void Init_qstandarditemmodel(Module rb_mQt6QtGui)
|
|
|
51
48
|
.define_method("mime_data", &QStandardItemModel::mimeData, Arg("indexes"))
|
|
52
49
|
.define_method("mime_types", &QStandardItemModel::mimeTypes)
|
|
53
50
|
.define_method("multi_data", &QStandardItemModel::multiData, Arg("index"), Arg("role_data_span"))
|
|
54
|
-
|
|
51
|
+
.define_method<QModelIndex (QStandardItemModel::*)(const QModelIndex &child) const>("_parent", &QStandardItemModel::parent, Arg("child"))
|
|
52
|
+
.define_method<QObject *(QStandardItemModel::*)() const>("_parent", &QStandardItemModel::parent)
|
|
55
53
|
.define_method("remove_columns", &QStandardItemModel::removeColumns, Arg("column"), Arg("count"), Arg("parent") = static_cast<const QModelIndex &>(QModelIndex()))
|
|
56
54
|
.define_method("remove_rows", &QStandardItemModel::removeRows, Arg("row"), Arg("count"), Arg("parent") = static_cast<const QModelIndex &>(QModelIndex()))
|
|
57
55
|
.define_method("role_names", &QStandardItemModel::roleNames)
|
|
@@ -84,7 +82,7 @@ void Init_qstandarditemmodel(Module rb_mQt6QtGui)
|
|
|
84
82
|
|
|
85
83
|
rb_cQStandardItem =
|
|
86
84
|
// RubyQt6::QtGui::QStandardItem
|
|
87
|
-
|
|
85
|
+
define_qlass_under<QStandardItem>(rb_mQt6QtGui, "QStandardItem")
|
|
88
86
|
// RubyQt6-Defined Functions
|
|
89
87
|
.define_singleton_function("_qvariant_register_metatype", []() -> int { return qRegisterMetaType<QStandardItem *>(); })
|
|
90
88
|
.define_singleton_function("_qvariant_from_value", [](QStandardItem *value) -> QVariant { return QVariant::fromValue(value); })
|
|
@@ -162,7 +160,7 @@ void Init_qstandarditemmodel(Module rb_mQt6QtGui)
|
|
|
162
160
|
.define_method("set_selectable", &QStandardItem::setSelectable, Arg("selectable"))
|
|
163
161
|
.define_method("set_size_hint", &QStandardItem::setSizeHint, Arg("size_hint"))
|
|
164
162
|
.define_method("set_status_tip", &QStandardItem::setStatusTip, Arg("status_tip"))
|
|
165
|
-
.define_method("
|
|
163
|
+
.define_method("_set_text", &QStandardItem::setText, Arg("text"))
|
|
166
164
|
.define_method("set_text_alignment", &QStandardItem::setTextAlignment, Arg("text_alignment"))
|
|
167
165
|
.define_method("set_tool_tip", &QStandardItem::setToolTip, Arg("tool_tip"))
|
|
168
166
|
.define_method("set_user_tristate", &QStandardItem::setUserTristate, Arg("tristate"))
|
|
@@ -11,8 +11,9 @@ void Init_qstylehints(Module rb_mQt6QtGui)
|
|
|
11
11
|
{
|
|
12
12
|
rb_cQStyleHints =
|
|
13
13
|
// RubyQt6::QtGui::QStyleHints
|
|
14
|
-
|
|
14
|
+
define_qlass_under<QStyleHints, QObject>(rb_mQt6QtGui, "QStyleHints")
|
|
15
15
|
// RubyQt6-Defined Functions
|
|
16
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QStyleHints * { return qobject_cast<QStyleHints *>(object); })
|
|
16
17
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QStyleHints::staticMetaObject; })
|
|
17
18
|
// Public Functions
|
|
18
19
|
.define_method("accessibility", &QStyleHints::accessibility)
|
|
@@ -17,7 +17,7 @@ void Init_qtextcursor(Module rb_mQt6QtGui)
|
|
|
17
17
|
{
|
|
18
18
|
rb_cQTextCursor =
|
|
19
19
|
// RubyQt6::QtGui::QTextCursor
|
|
20
|
-
|
|
20
|
+
define_qlass_under<QTextCursor>(rb_mQt6QtGui, "QTextCursor")
|
|
21
21
|
// Constructor
|
|
22
22
|
.define_constructor(Constructor<QTextCursor>())
|
|
23
23
|
.define_constructor(Constructor<QTextCursor, QTextDocument *>(), Arg("document"))
|
|
@@ -19,8 +19,9 @@ void Init_qtextdocument(Module rb_mQt6QtGui)
|
|
|
19
19
|
{
|
|
20
20
|
rb_cQTextDocument =
|
|
21
21
|
// RubyQt6::QtGui::QTextDocument
|
|
22
|
-
|
|
22
|
+
define_qlass_under<QTextDocument, QObject>(rb_mQt6QtGui, "QTextDocument")
|
|
23
23
|
// RubyQt6-Defined Functions
|
|
24
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QTextDocument * { return qobject_cast<QTextDocument *>(object); })
|
|
24
25
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QTextDocument::staticMetaObject; })
|
|
25
26
|
// Constructor
|
|
26
27
|
.define_constructor(Constructor<QTextDocument, const QString &, QObject *>(), Arg("text"), Arg("parent"))
|
|
@@ -19,7 +19,7 @@ void Init_qtextformat(Module rb_mQt6QtGui)
|
|
|
19
19
|
{
|
|
20
20
|
rb_cQTextFormat =
|
|
21
21
|
// RubyQt6::QtGui::QTextFormat
|
|
22
|
-
|
|
22
|
+
define_qlass_under<QTextFormat>(rb_mQt6QtGui, "QTextFormat")
|
|
23
23
|
// Constructor
|
|
24
24
|
.define_constructor(Constructor<QTextFormat>())
|
|
25
25
|
.define_constructor(Constructor<QTextFormat, int>(), Arg("type"))
|
|
@@ -221,7 +221,7 @@ void Init_qtextformat(Module rb_mQt6QtGui)
|
|
|
221
221
|
|
|
222
222
|
rb_cQTextBlockFormat =
|
|
223
223
|
// RubyQt6::QtGui::QTextBlockFormat
|
|
224
|
-
|
|
224
|
+
define_qlass_under<QTextBlockFormat, QTextFormat>(rb_mQt6QtGui, "QTextBlockFormat")
|
|
225
225
|
// RubyQt6-Defined Functions
|
|
226
226
|
.define_method("set_alignment", [](QTextBlockFormat *self, Qt::AlignmentFlag alignment) -> void { return self->setAlignment(alignment); }, Arg("alignment"))
|
|
227
227
|
// Constructor
|
|
@@ -275,7 +275,7 @@ void Init_qtextformat(Module rb_mQt6QtGui)
|
|
|
275
275
|
|
|
276
276
|
rb_cQTextCharFormat =
|
|
277
277
|
// RubyQt6::QtGui::QTextCharFormat
|
|
278
|
-
|
|
278
|
+
define_qlass_under<QTextCharFormat, QTextFormat>(rb_mQt6QtGui, "QTextCharFormat")
|
|
279
279
|
// Constructor
|
|
280
280
|
.define_constructor(Constructor<QTextCharFormat>())
|
|
281
281
|
// Public Functions
|
|
@@ -376,7 +376,7 @@ void Init_qtextformat(Module rb_mQt6QtGui)
|
|
|
376
376
|
|
|
377
377
|
rb_cQTextImageFormat =
|
|
378
378
|
// RubyQt6::QtGui::QTextImageFormat
|
|
379
|
-
|
|
379
|
+
define_qlass_under<QTextImageFormat, QTextCharFormat>(rb_mQt6QtGui, "QTextImageFormat")
|
|
380
380
|
// Constructor
|
|
381
381
|
.define_constructor(Constructor<QTextImageFormat>())
|
|
382
382
|
// Public Functions
|
|
@@ -394,7 +394,7 @@ void Init_qtextformat(Module rb_mQt6QtGui)
|
|
|
394
394
|
|
|
395
395
|
rb_cQTextTableCellFormat =
|
|
396
396
|
// RubyQt6::QtGui::QTextTableCellFormat
|
|
397
|
-
|
|
397
|
+
define_qlass_under<QTextTableCellFormat, QTextCharFormat>(rb_mQt6QtGui, "QTextTableCellFormat")
|
|
398
398
|
// Constructor
|
|
399
399
|
.define_constructor(Constructor<QTextTableCellFormat>())
|
|
400
400
|
// Public Functions
|
|
@@ -438,7 +438,7 @@ void Init_qtextformat(Module rb_mQt6QtGui)
|
|
|
438
438
|
|
|
439
439
|
rb_cQTextFrameFormat =
|
|
440
440
|
// RubyQt6::QtGui::QTextFrameFormat
|
|
441
|
-
|
|
441
|
+
define_qlass_under<QTextFrameFormat, QTextFormat>(rb_mQt6QtGui, "QTextFrameFormat")
|
|
442
442
|
// Constructor
|
|
443
443
|
.define_constructor(Constructor<QTextFrameFormat>())
|
|
444
444
|
// Public Functions
|
|
@@ -496,7 +496,7 @@ void Init_qtextformat(Module rb_mQt6QtGui)
|
|
|
496
496
|
|
|
497
497
|
rb_cQTextTableFormat =
|
|
498
498
|
// RubyQt6::QtGui::QTextTableFormat
|
|
499
|
-
|
|
499
|
+
define_qlass_under<QTextTableFormat, QTextFrameFormat>(rb_mQt6QtGui, "QTextTableFormat")
|
|
500
500
|
// RubyQt6-Defined Functions
|
|
501
501
|
.define_method("set_alignment", [](QTextTableFormat *self, Qt::AlignmentFlag alignment) -> void { return self->setAlignment(alignment); }, Arg("alignment"))
|
|
502
502
|
// Constructor
|
|
@@ -521,7 +521,7 @@ void Init_qtextformat(Module rb_mQt6QtGui)
|
|
|
521
521
|
|
|
522
522
|
rb_cQTextListFormat =
|
|
523
523
|
// RubyQt6::QtGui::QTextListFormat
|
|
524
|
-
|
|
524
|
+
define_qlass_under<QTextListFormat, QTextFormat>(rb_mQt6QtGui, "QTextListFormat")
|
|
525
525
|
// Constructor
|
|
526
526
|
.define_constructor(Constructor<QTextListFormat>())
|
|
527
527
|
// Public Functions
|
|
@@ -552,7 +552,7 @@ void Init_qtextformat(Module rb_mQt6QtGui)
|
|
|
552
552
|
|
|
553
553
|
rb_cQTextLength =
|
|
554
554
|
// RubyQt6::QtGui::QTextLength
|
|
555
|
-
|
|
555
|
+
define_qlass_under<QTextLength>(rb_mQt6QtGui, "QTextLength")
|
|
556
556
|
// Constructor
|
|
557
557
|
.define_constructor(Constructor<QTextLength>())
|
|
558
558
|
.define_constructor(Constructor<QTextLength, QTextLength::Type, qreal>(), Arg("type"), Arg("value"))
|
|
@@ -14,7 +14,7 @@ void Init_qtextlayout(Module rb_mQt6QtGui)
|
|
|
14
14
|
{
|
|
15
15
|
rb_cQTextLayout =
|
|
16
16
|
// RubyQt6::QtGui::QTextLayout
|
|
17
|
-
|
|
17
|
+
define_qlass_under<QTextLayout>(rb_mQt6QtGui, "QTextLayout")
|
|
18
18
|
// Constructor
|
|
19
19
|
.define_constructor(Constructor<QTextLayout>())
|
|
20
20
|
.define_constructor(Constructor<QTextLayout, const QString &>(), Arg("text"))
|
|
@@ -80,7 +80,7 @@ void Init_qtextlayout(Module rb_mQt6QtGui)
|
|
|
80
80
|
|
|
81
81
|
rb_cQTextLayoutFormatRange =
|
|
82
82
|
// RubyQt6::QtGui::QTextLayout::FormatRange
|
|
83
|
-
|
|
83
|
+
define_qlass_under<QTextLayout::FormatRange>(rb_cQTextLayout, "FormatRange")
|
|
84
84
|
.define_constructor(Constructor<QTextLayout::FormatRange>())
|
|
85
85
|
.define_attr("start", &QTextLayout::FormatRange::start)
|
|
86
86
|
.define_attr("length", &QTextLayout::FormatRange::length)
|
|
@@ -9,8 +9,9 @@ void Init_qtextlist(Module rb_mQt6QtGui)
|
|
|
9
9
|
{
|
|
10
10
|
rb_cQTextList =
|
|
11
11
|
// RubyQt6::QtGui::QTextList
|
|
12
|
-
|
|
12
|
+
define_qlass_under<QTextList, QTextBlockGroup>(rb_mQt6QtGui, "QTextList")
|
|
13
13
|
// RubyQt6-Defined Functions
|
|
14
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QTextList * { return qobject_cast<QTextList *>(object); })
|
|
14
15
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QTextList::staticMetaObject; })
|
|
15
16
|
// Public Functions
|
|
16
17
|
.define_method("add", &QTextList::add, Arg("block"))
|
|
@@ -14,7 +14,7 @@ void Init_qtextobject(Module rb_mQt6QtGui)
|
|
|
14
14
|
{
|
|
15
15
|
rb_cQTextBlock =
|
|
16
16
|
// RubyQt6::QtGui::QTextBlock
|
|
17
|
-
|
|
17
|
+
define_qlass_under<QTextBlock>(rb_mQt6QtGui, "QTextBlock")
|
|
18
18
|
// RubyQt6-Defined Functions
|
|
19
19
|
.define_singleton_function("_operator_equal", [](QTextBlock *lhs, QTextBlock *rhs) -> bool { return *lhs == *rhs; }, Arg("lhs"), Arg("rhs"))
|
|
20
20
|
// Constructor
|
|
@@ -53,8 +53,9 @@ void Init_qtextobject(Module rb_mQt6QtGui)
|
|
|
53
53
|
|
|
54
54
|
rb_cQTextObject =
|
|
55
55
|
// RubyQt6::QtGui::QTextObject
|
|
56
|
-
|
|
56
|
+
define_qlass_under<QTextObject, QObject>(rb_mQt6QtGui, "QTextObject")
|
|
57
57
|
// RubyQt6-Defined Functions
|
|
58
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QTextObject * { return qobject_cast<QTextObject *>(object); })
|
|
58
59
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QTextObject::staticMetaObject; })
|
|
59
60
|
// Public Functions
|
|
60
61
|
.define_method("document", &QTextObject::document)
|
|
@@ -64,14 +65,16 @@ void Init_qtextobject(Module rb_mQt6QtGui)
|
|
|
64
65
|
|
|
65
66
|
rb_cQTextBlockGroup =
|
|
66
67
|
// RubyQt6::QtGui::QTextBlockGroup
|
|
67
|
-
|
|
68
|
+
define_qlass_under<QTextBlockGroup, QTextObject>(rb_mQt6QtGui, "QTextBlockGroup")
|
|
68
69
|
// RubyQt6-Defined Functions
|
|
70
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QTextBlockGroup * { return qobject_cast<QTextBlockGroup *>(object); })
|
|
69
71
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QTextBlockGroup::staticMetaObject; });
|
|
70
72
|
|
|
71
73
|
rb_cQTextFrame =
|
|
72
74
|
// RubyQt6::QtGui::QTextFrame
|
|
73
|
-
|
|
75
|
+
define_qlass_under<QTextFrame, QTextObject>(rb_mQt6QtGui, "QTextFrame")
|
|
74
76
|
// RubyQt6-Defined Functions
|
|
77
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QTextFrame * { return qobject_cast<QTextFrame *>(object); })
|
|
75
78
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QTextFrame::staticMetaObject; })
|
|
76
79
|
// Public Functions
|
|
77
80
|
.define_method("child_frames", &QTextFrame::childFrames)
|
|
@@ -13,7 +13,7 @@ void Init_qtextoption(Module rb_mQt6QtGui)
|
|
|
13
13
|
{
|
|
14
14
|
rb_cQTextOption =
|
|
15
15
|
// RubyQt6::QtGui::QTextOption
|
|
16
|
-
|
|
16
|
+
define_qlass_under<QTextOption>(rb_mQt6QtGui, "QTextOption")
|
|
17
17
|
// RubyQt6-Defined Functions
|
|
18
18
|
.define_method("set_alignment", [](QTextOption *self, Qt::AlignmentFlag alignment) -> void { return self->setAlignment(alignment); }, Arg("alignment"))
|
|
19
19
|
// Public Functions
|
|
@@ -10,8 +10,9 @@ void Init_qtexttable(Module rb_mQt6QtGui)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQTextTable =
|
|
12
12
|
// RubyQt6::QtGui::QTextTable
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QTextTable, QTextFrame>(rb_mQt6QtGui, "QTextTable")
|
|
14
14
|
// RubyQt6-Defined Functions
|
|
15
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QTextTable * { return qobject_cast<QTextTable *>(object); })
|
|
15
16
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QTextTable::staticMetaObject; })
|
|
16
17
|
// Public Functions
|
|
17
18
|
.define_method("resize", &QTextTable::resize, Arg("rows"), Arg("cols"))
|
|
@@ -36,7 +37,7 @@ void Init_qtexttable(Module rb_mQt6QtGui)
|
|
|
36
37
|
|
|
37
38
|
rb_cQTextTableCell =
|
|
38
39
|
// RubyQt6::QtGui::QTextTableCell
|
|
39
|
-
|
|
40
|
+
define_qlass_under<QTextTableCell>(rb_mQt6QtGui, "QTextTableCell")
|
|
40
41
|
// Public Functions
|
|
41
42
|
.define_method("column", &QTextTableCell::column)
|
|
42
43
|
.define_method("column_span", &QTextTableCell::columnSpan)
|
data/ext/qt6/qtgui/qtgui-rb.cpp
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#include "qtgui-rb.hpp"
|
|
2
|
+
#include "qtguipreludes-rb.hpp"
|
|
2
3
|
#include "qtguiversion-rb.hpp"
|
|
3
4
|
|
|
4
5
|
#include "qabstractfileiconprovider-rb.hpp"
|
|
@@ -60,6 +61,7 @@ extern "C" void Init_qtgui()
|
|
|
60
61
|
Module rb_mQt6 = define_module("RubyQt6");
|
|
61
62
|
Module rb_mQt6QtGui = define_module_under(rb_mQt6, "QtGui");
|
|
62
63
|
|
|
64
|
+
Init_qtguipreludes(rb_mQt6);
|
|
63
65
|
Init_qtguiversion(rb_mQt6QtGui);
|
|
64
66
|
|
|
65
67
|
Init_qabstractfileiconprovider(rb_mQt6QtGui);
|
|
@@ -10,7 +10,7 @@ void Init_qtransform(Module rb_mQt6QtGui)
|
|
|
10
10
|
{
|
|
11
11
|
rb_cQTransform =
|
|
12
12
|
// RubyQt6::QtGui::QTransform
|
|
13
|
-
|
|
13
|
+
define_qlass_under<QTransform>(rb_mQt6QtGui, "QTransform")
|
|
14
14
|
// Constructor
|
|
15
15
|
.define_constructor(Constructor<QTransform>())
|
|
16
16
|
.define_constructor(Constructor<QTransform, qreal, qreal, qreal, qreal, qreal, qreal>(), Arg("h11"), Arg("h12"), Arg("h21"), Arg("h22"), Arg("dx"), Arg("dy"))
|
|
@@ -13,8 +13,9 @@ void Init_qvalidator(Module rb_mQt6QtGui)
|
|
|
13
13
|
{
|
|
14
14
|
rb_cQValidator =
|
|
15
15
|
// RubyQt6::QtGui::QValidator
|
|
16
|
-
|
|
16
|
+
define_qlass_under<QValidator, QObject>(rb_mQt6QtGui, "QValidator")
|
|
17
17
|
// RubyQt6-Defined Functions
|
|
18
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QValidator * { return qobject_cast<QValidator *>(object); })
|
|
18
19
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QValidator::staticMetaObject; })
|
|
19
20
|
// Public Functions
|
|
20
21
|
.define_method("fixup", &QValidator::fixup, Arg("input"))
|
|
@@ -33,8 +34,9 @@ void Init_qvalidator(Module rb_mQt6QtGui)
|
|
|
33
34
|
|
|
34
35
|
rb_cQDoubleValidator =
|
|
35
36
|
// RubyQt6::QtGui::QDoubleValidator
|
|
36
|
-
|
|
37
|
+
define_qlass_under<QDoubleValidator, QValidator>(rb_mQt6QtGui, "QDoubleValidator")
|
|
37
38
|
// RubyQt6-Defined Functions
|
|
39
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QDoubleValidator * { return qobject_cast<QDoubleValidator *>(object); })
|
|
38
40
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QDoubleValidator::staticMetaObject; })
|
|
39
41
|
// Constructor
|
|
40
42
|
.define_constructor(Constructor<QDoubleValidator, QObject *>(), Arg("parent"))
|
|
@@ -65,8 +67,9 @@ void Init_qvalidator(Module rb_mQt6QtGui)
|
|
|
65
67
|
|
|
66
68
|
rb_cQIntValidator =
|
|
67
69
|
// RubyQt6::QtGui::QIntValidator
|
|
68
|
-
|
|
70
|
+
define_qlass_under<QIntValidator, QValidator>(rb_mQt6QtGui, "QIntValidator")
|
|
69
71
|
// RubyQt6-Defined Functions
|
|
72
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QIntValidator * { return qobject_cast<QIntValidator *>(object); })
|
|
70
73
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QIntValidator::staticMetaObject; })
|
|
71
74
|
// Constructor
|
|
72
75
|
.define_constructor(Constructor<QIntValidator, QObject *>(), Arg("parent"))
|
|
@@ -84,8 +87,9 @@ void Init_qvalidator(Module rb_mQt6QtGui)
|
|
|
84
87
|
|
|
85
88
|
rb_cQRegularExpressionValidator =
|
|
86
89
|
// RubyQt6::QtGui::QRegularExpressionValidator
|
|
87
|
-
|
|
90
|
+
define_qlass_under<QRegularExpressionValidator, QValidator>(rb_mQt6QtGui, "QRegularExpressionValidator")
|
|
88
91
|
// RubyQt6-Defined Functions
|
|
92
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QRegularExpressionValidator * { return qobject_cast<QRegularExpressionValidator *>(object); })
|
|
89
93
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QRegularExpressionValidator::staticMetaObject; })
|
|
90
94
|
// Constructor
|
|
91
95
|
.define_constructor(Constructor<QRegularExpressionValidator, QObject *>(), Arg("parent"))
|
|
@@ -13,8 +13,9 @@ void Init_qwindow(Module rb_mQt6QtGui)
|
|
|
13
13
|
{
|
|
14
14
|
rb_cQWindow =
|
|
15
15
|
// RubyQt6::QtGui::QWindow
|
|
16
|
-
|
|
16
|
+
define_qlass_under<QWindow, QObject>(rb_mQt6QtGui, "QWindow")
|
|
17
17
|
// RubyQt6-Defined Functions
|
|
18
|
+
.define_singleton_function("_qobject_cast", [](QObject *object) -> const QWindow * { return qobject_cast<QWindow *>(object); })
|
|
18
19
|
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QWindow::staticMetaObject; })
|
|
19
20
|
// Constructor
|
|
20
21
|
.define_constructor(Constructor<QWindow, QWindow *>(), Arg("parent"))
|
|
@@ -58,7 +59,7 @@ void Init_qwindow(Module rb_mQt6QtGui)
|
|
|
58
59
|
.define_method("minimum_width", &QWindow::minimumWidth)
|
|
59
60
|
.define_method("modality", &QWindow::modality)
|
|
60
61
|
.define_method("opacity", &QWindow::opacity)
|
|
61
|
-
.define_method("
|
|
62
|
+
.define_method("_parent", &QWindow::parent, Arg("mode") = static_cast<QWindow::AncestorMode>(QWindow::AncestorMode::ExcludeTransients))
|
|
62
63
|
.define_method("position", &QWindow::position)
|
|
63
64
|
.define_method("report_content_orientation_change", &QWindow::reportContentOrientationChange, Arg("orientation"))
|
|
64
65
|
.define_method("requested_format", &QWindow::requestedFormat)
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
#include <QPointF>
|
|
6
6
|
#include <QTextLayout>
|
|
7
7
|
#include <QTextLength>
|
|
8
|
+
#include <QAction>
|
|
8
9
|
#include <QScreen>
|
|
10
|
+
#include <QStandardItem>
|
|
9
11
|
|
|
10
12
|
RICE4RUBYQT6_USE_NAMESPACE
|
|
11
13
|
|
|
@@ -23,6 +25,12 @@ void Init_t_qtgui(Module rb_mQt6T)
|
|
|
23
25
|
// QList<QTextLength>
|
|
24
26
|
define_qlist_under<QTextLength>(rb_mQt6T);
|
|
25
27
|
|
|
28
|
+
// QList<QAction *>
|
|
29
|
+
define_qlist_under<QAction *>(rb_mQt6T);
|
|
30
|
+
|
|
26
31
|
// QList<QScreen *>
|
|
27
32
|
define_qlist_under<QScreen *>(rb_mQt6T);
|
|
33
|
+
|
|
34
|
+
// QList<QStandardItem *>
|
|
35
|
+
define_qlist_under<QStandardItem *>(rb_mQt6T);
|
|
28
36
|
}
|
|
@@ -22,13 +22,9 @@ module RubyQt6
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
# @!visibility private
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# @return [QGuiApplication]
|
|
28
|
-
def initialize
|
|
25
|
+
def self.new
|
|
29
26
|
argv = _initialize_qApp_argv
|
|
30
|
-
|
|
31
|
-
_initialize_qApp
|
|
27
|
+
_new(argv)._initialize_qApp
|
|
32
28
|
end
|
|
33
29
|
end
|
|
34
30
|
end
|
data/lib/qt6/qtgui/qicon.rb
CHANGED
|
@@ -14,6 +14,12 @@ module RubyQt6
|
|
|
14
14
|
# @!visibility private
|
|
15
15
|
alias_method :_initialize, :initialize
|
|
16
16
|
|
|
17
|
+
# @!visibility private
|
|
18
|
+
def self.from_theme(*args)
|
|
19
|
+
T.args_nth_to_qstr(args, 0)
|
|
20
|
+
_from_theme(*args)
|
|
21
|
+
end
|
|
22
|
+
|
|
17
23
|
# @return [QIcon]
|
|
18
24
|
#
|
|
19
25
|
# @overload initialize
|
data/lib/qt6/qtgui/qpainter.rb
CHANGED