ruby-qt6-qtgui 2.1.0 → 2.1.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/qtgui/qaction-rb.cpp +3 -3
- data/ext/qt6/qtgui/qclipboard-rb.cpp +1 -1
- data/ext/qt6/qtgui/qfont-rb.cpp +1 -0
- data/lib/qt6/qtgui/qaction.rb +15 -0
- data/lib/qt6/qtgui/qclipboard.rb +6 -0
- data/lib/qt6/qtgui/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: e067bf2a2b36cde9ca522aede6ddd2e929ac95ead784e6fa7666f617956c8c41
|
|
4
|
+
data.tar.gz: 343ca212d8ff3392e4d0b7bec9732508e56511b4ca2c925b77d7f260b8ca9348
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29c24587093e0feb64e8d24a69498157a8251276b6ecde3b83d1a330993fcf00d34cfee43a2de471e8bebdcc723ef6467b68528a198a3f7a4f6654563f86e923
|
|
7
|
+
data.tar.gz: 85bea3bd87d50c4f0f8722f5dd756d7fa16d2ea02329821cf8ab366887c67b0c80a0925eb4b02b25d05bd983af03ae17558b96da563b8740b91cb545e1194a50
|
|
@@ -55,10 +55,10 @@ void Init_qaction(Module rb_mQt6QtGui)
|
|
|
55
55
|
.define_method("set_shortcut_visible_in_context_menu", &QAction::setShortcutVisibleInContextMenu, Arg("show"))
|
|
56
56
|
.define_method<void (QAction::*)(QKeySequence::StandardKey)>("set_shortcuts", &QAction::setShortcuts, Arg("shortcuts"))
|
|
57
57
|
.define_method<void (QAction::*)(const QList<QKeySequence> &)>("set_shortcuts", &QAction::setShortcuts, Arg("shortcuts"))
|
|
58
|
-
.define_method("
|
|
58
|
+
.define_method("_set_status_tip", &QAction::setStatusTip, Arg("status_tip"))
|
|
59
59
|
.define_method("_set_text", &QAction::setText, Arg("text"))
|
|
60
|
-
.define_method("
|
|
61
|
-
.define_method("
|
|
60
|
+
.define_method("_set_tool_tip", &QAction::setToolTip, Arg("tip"))
|
|
61
|
+
.define_method("_set_whats_this", &QAction::setWhatsThis, Arg("what"))
|
|
62
62
|
.define_method("shortcut", &QAction::shortcut)
|
|
63
63
|
.define_method("shortcut_context", &QAction::shortcutContext)
|
|
64
64
|
.define_method("shortcuts", &QAction::shortcuts)
|
|
@@ -28,7 +28,7 @@ void Init_qclipboard(Module rb_mQt6QtGui)
|
|
|
28
28
|
.define_method("set_image", &QClipboard::setImage, Arg("image"), Arg("mode") = static_cast<QClipboard::Mode>(QClipboard::Mode::Clipboard))
|
|
29
29
|
.define_method("set_mime_data", &QClipboard::setMimeData, Arg("data"), Arg("mode") = static_cast<QClipboard::Mode>(QClipboard::Mode::Clipboard))
|
|
30
30
|
.define_method("set_pixmap", &QClipboard::setPixmap, Arg("pixmap"), Arg("mode") = static_cast<QClipboard::Mode>(QClipboard::Mode::Clipboard))
|
|
31
|
-
.define_method("
|
|
31
|
+
.define_method("_set_text", &QClipboard::setText, Arg("text"), Arg("mode") = static_cast<QClipboard::Mode>(QClipboard::Mode::Clipboard))
|
|
32
32
|
.define_method("supports_find_buffer", &QClipboard::supportsFindBuffer)
|
|
33
33
|
.define_method("supports_selection", &QClipboard::supportsSelection)
|
|
34
34
|
.define_method<QString (QClipboard::*)(QClipboard::Mode) const>("text", &QClipboard::text, Arg("mode") = static_cast<QClipboard::Mode>(QClipboard::Mode::Clipboard))
|
data/ext/qt6/qtgui/qfont-rb.cpp
CHANGED
|
@@ -23,6 +23,7 @@ void Init_qfont(Module rb_mQt6QtGui)
|
|
|
23
23
|
.define_constructor(Constructor<QFont, const QStringList &>(), Arg("families"))
|
|
24
24
|
.define_constructor(Constructor<QFont, const QStringList &, int>(), Arg("families"), Arg("point_size"))
|
|
25
25
|
.define_constructor(Constructor<QFont, const QStringList &, int, int>(), Arg("families"), Arg("point_size"), Arg("weight"))
|
|
26
|
+
.define_constructor(Constructor<QFont, const QFont &>(), Arg("other"))
|
|
26
27
|
// Public Functions
|
|
27
28
|
.define_method("bold", &QFont::bold)
|
|
28
29
|
.define_method("capitalization", &QFont::capitalization)
|
data/lib/qt6/qtgui/qaction.rb
CHANGED
|
@@ -83,11 +83,26 @@ module RubyQt6
|
|
|
83
83
|
QMenu._ioc_qaction_set_menu(self, menu)
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
# @!visibility private
|
|
87
|
+
def set_status_tip(tip)
|
|
88
|
+
_set_status_tip(T.to_qstr(tip))
|
|
89
|
+
end
|
|
90
|
+
|
|
86
91
|
# @!visibility private
|
|
87
92
|
def set_text(text)
|
|
88
93
|
_set_text(T.to_qstr(text))
|
|
89
94
|
end
|
|
90
95
|
|
|
96
|
+
# @!visibility private
|
|
97
|
+
def set_tool_tip(tip)
|
|
98
|
+
_set_tool_tip(T.to_qstr(tip))
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# @!visibility private
|
|
102
|
+
def set_whats_this(what)
|
|
103
|
+
_set_whats_this(T.to_qstr(what))
|
|
104
|
+
end
|
|
105
|
+
|
|
91
106
|
# @!visibility private
|
|
92
107
|
def set_shortcut(shortcut)
|
|
93
108
|
_set_shortcut(T.to_qkeysequence(shortcut))
|
data/lib/qt6/qtgui/qclipboard.rb
CHANGED
|
@@ -14,6 +14,12 @@ module RubyQt6
|
|
|
14
14
|
signal "findBufferChanged()"
|
|
15
15
|
signal "selectionChanged()"
|
|
16
16
|
end
|
|
17
|
+
|
|
18
|
+
# @!visibility private
|
|
19
|
+
def set_text(text, mode = nil)
|
|
20
|
+
mode ||= QClipboard::Mode::Clipboard
|
|
21
|
+
_set_text(T.to_qstr(text), mode)
|
|
22
|
+
end
|
|
17
23
|
end
|
|
18
24
|
end
|
|
19
25
|
end
|
data/lib/qt6/qtgui/version.rb
CHANGED