ruby-qt6-qtprintsupport 2.1.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69b17dacc7ef5c0e10617f5ff4718711bed6258e04db13f158cbcd6bdee453a3
4
- data.tar.gz: 86c3e41754a0616bfcb88ea43bca4d6f74907f46e3e3d07e205569c270fbcfea
3
+ metadata.gz: bba311f1805970d85608132b371a187e626947a4982434addb9f63885cb663cb
4
+ data.tar.gz: '08657687d8820c938efa8858e38758c3b0593590f018ce6c31aa2fd1d8675446'
5
5
  SHA512:
6
- metadata.gz: 20fc43277b7197b3d3c408918f35b1c12c6c90cdfdaf737a35beebd8aec6b2504b13da9aa4e0397761493a0c791403d6e1a26c6c7132c30d6f03b90966db89b3
7
- data.tar.gz: 8daf4de488e69f52bbbba0dc7117308ce085872670f5f6e181aabdf1854b3f15f4527858eb5fb7012213f7499cb860fd73bea891d5092172633c1acae1e6f879
6
+ metadata.gz: 887641fbfad0f207b40187932156a3065c26a41eee0ace954429647e6828c95266ed5bdd00d374af1f3fa5bba7e0f7c3a386dcdc4c40cdaf99b862daf4c7223f
7
+ data.tar.gz: d0bd358d2c9c822bb55f272239b300de6f951babbeea2c6b4d9aa37128f864dc7b7826c5b6a025dffcf94f6786e1f5150476d0e11919f020ae163ac9d52a842c
@@ -13,8 +13,9 @@ void Init_qabstractprintdialog(Module rb_mQt6QtPrintSupport)
13
13
  {
14
14
  rb_cQAbstractPrintDialog =
15
15
  // RubyQt6::QtPrintSupport::QAbstractPrintDialog
16
- define_class_under<QAbstractPrintDialog, QDialog>(rb_mQt6QtPrintSupport, "QAbstractPrintDialog")
16
+ define_qlass_under<QAbstractPrintDialog, QDialog>(rb_mQt6QtPrintSupport, "QAbstractPrintDialog")
17
17
  // RubyQt6-Defined Functions
18
+ .define_singleton_function("_qobject_cast", [](QObject *object) -> const QAbstractPrintDialog * { return qobject_cast<QAbstractPrintDialog *>(object); })
18
19
  .define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QAbstractPrintDialog::staticMetaObject; })
19
20
  // Constructor
20
21
  .define_constructor(Constructor<QAbstractPrintDialog, QPrinter *, QWidget *>(), Arg("printer"), Arg("parent"))
@@ -11,8 +11,9 @@ void Init_qprintdialog(Module rb_mQt6QtPrintSupport)
11
11
  {
12
12
  rb_cQPrintDialog =
13
13
  // RubyQt6::QtPrintSupport::QPrintDialog
14
- define_class_under<QPrintDialog, QAbstractPrintDialog>(rb_mQt6QtPrintSupport, "QPrintDialog")
14
+ define_qlass_under<QPrintDialog, QAbstractPrintDialog>(rb_mQt6QtPrintSupport, "QPrintDialog")
15
15
  // RubyQt6-Defined Functions
16
+ .define_singleton_function("_qobject_cast", [](QObject *object) -> const QPrintDialog * { return qobject_cast<QPrintDialog *>(object); })
16
17
  .define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QPrintDialog::staticMetaObject; })
17
18
  // Constructor
18
19
  .define_constructor(Constructor<QPrintDialog, QPrinter *, QWidget *>(), Arg("printer"), Arg("parent"))
@@ -14,7 +14,7 @@ void Init_qprinter(Module rb_mQt6QtPrintSupport)
14
14
  {
15
15
  rb_cQPrinter =
16
16
  // RubyQt6::QtPrintSupport::QPrinter
17
- define_class_under<QPrinter, QPagedPaintDevice>(rb_mQt6QtPrintSupport, "QPrinter")
17
+ define_qlass_under<QPrinter, QPagedPaintDevice>(rb_mQt6QtPrintSupport, "QPrinter")
18
18
  // Constructor
19
19
  .define_constructor(Constructor<QPrinter>())
20
20
  .define_constructor(Constructor<QPrinter, QPrinter::PrinterMode>(), Arg("mode"))
@@ -9,7 +9,7 @@ void Init_qprinterinfo(Module rb_mQt6QtPrintSupport)
9
9
  {
10
10
  rb_cQPrinterInfo =
11
11
  // RubyQt6::QtPrintSupport::QPrinterInfo
12
- define_class_under<QPrinterInfo>(rb_mQt6QtPrintSupport, "QPrinterInfo")
12
+ define_qlass_under<QPrinterInfo>(rb_mQt6QtPrintSupport, "QPrinterInfo")
13
13
  // Constructor
14
14
  .define_constructor(Constructor<QPrinterInfo>())
15
15
  .define_constructor(Constructor<QPrinterInfo, const QPrinter &>(), Arg("printer"))
@@ -1,4 +1,5 @@
1
1
  #include "qtprintsupport-rb.hpp"
2
+ #include "qtprintsupportpreludes-rb.hpp"
2
3
  #include "qtprintsupportversion-rb.hpp"
3
4
 
4
5
  #include "qprinter-rb.hpp"
@@ -15,6 +16,7 @@ extern "C" void Init_qtprintsupport()
15
16
  Module rb_mQt6 = define_module("RubyQt6");
16
17
  Module rb_mQt6QtPrintSupport = define_module_under(rb_mQt6, "QtPrintSupport");
17
18
 
19
+ Init_qtprintsupportpreludes(rb_mQt6);
18
20
  Init_qtprintsupportversion(rb_mQt6QtPrintSupport);
19
21
 
20
22
  Init_qprinter(rb_mQt6QtPrintSupport);
@@ -0,0 +1,13 @@
1
+ #include "qtprintsupportpreludes-rb.hpp"
2
+ #include <rice/qt6/preludes/libqt6core.hpp>
3
+ #include <rice/qt6/preludes/libqt6gui.hpp>
4
+ #include <rice/qt6/preludes/libqt6widgets.hpp>
5
+
6
+ RICE4RUBYQT6_USE_NAMESPACE
7
+
8
+ void Init_qtprintsupportpreludes(Module rb_mQt6)
9
+ {
10
+ declare_qlass_under_libqt6core(rb_mQt6);
11
+ declare_qlass_under_libqt6gui(rb_mQt6);
12
+ declare_qlass_under_libqt6widgets(rb_mQt6);
13
+ }
@@ -0,0 +1,5 @@
1
+ #include <rice/qt6.hpp>
2
+
3
+ RICE4RUBYQT6_USE_NAMESPACE
4
+
5
+ void Init_qtprintsupportpreludes(Module rb_mQt6);
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RubyQt6
4
4
  module QtPrintSupport
5
- QTPRINTSUPPORT_RUBYGEM_VERSION = "2.1.0"
5
+ QTPRINTSUPPORT_RUBYGEM_VERSION = "6.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-qt6-qtprintsupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Doe
@@ -15,56 +15,56 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 2.1.0
18
+ version: 6.0.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: 2.1.0
25
+ version: 6.0.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: ruby-qt6-qtcore
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 2.1.0
32
+ version: 6.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.1.0
39
+ version: 6.0.0
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: ruby-qt6-qtgui
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.1.0
46
+ version: 6.0.0
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 2.1.0
53
+ version: 6.0.0
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: ruby-qt6-qtwidgets
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 2.1.0
60
+ version: 6.0.0
61
61
  type: :runtime
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 2.1.0
67
+ version: 6.0.0
68
68
  description: Ruby Bindings for Qt Print Support.
69
69
  email:
70
70
  - johndoe@example.com
@@ -89,6 +89,8 @@ files:
89
89
  - ext/qt6/qtprintsupport/qprinterinfo-rb.hpp
90
90
  - ext/qt6/qtprintsupport/qtprintsupport-rb.cpp
91
91
  - ext/qt6/qtprintsupport/qtprintsupport-rb.hpp
92
+ - ext/qt6/qtprintsupport/qtprintsupportpreludes-rb.cpp
93
+ - ext/qt6/qtprintsupport/qtprintsupportpreludes-rb.hpp
92
94
  - ext/qt6/qtprintsupport/qtprintsupportversion-rb.cpp
93
95
  - ext/qt6/qtprintsupport/qtprintsupportversion-rb.hpp
94
96
  - lib/qt6/qtprintsupport.rb