ruby-qt6-qtprintsupport 1.0.1 → 2.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/Rakefile +4 -0
- data/ext/qt6/qtprintsupport/extconf.rb +3 -15
- data/ext/qt6/qtprintsupport/qabstractprintdialog-rb.cpp +3 -3
- data/ext/qt6/qtprintsupport/qabstractprintdialog-rb.hpp +4 -3
- data/ext/qt6/qtprintsupport/qprintdialog-rb.cpp +5 -5
- data/ext/qt6/qtprintsupport/qprintdialog-rb.hpp +4 -3
- data/ext/qt6/qtprintsupport/qprinter-rb.cpp +3 -3
- data/ext/qt6/qtprintsupport/qprinter-rb.hpp +4 -3
- data/ext/qt6/qtprintsupport/qprinterinfo-rb.cpp +3 -3
- data/ext/qt6/qtprintsupport/qprinterinfo-rb.hpp +4 -3
- data/ext/qt6/qtprintsupport/qtprintsupport-rb.cpp +5 -3
- data/ext/qt6/qtprintsupport/qtprintsupport-rb.hpp +1 -1
- data/ext/qt6/qtprintsupport/qtprintsupportversion-rb.cpp +2 -2
- data/ext/qt6/qtprintsupport/qtprintsupportversion-rb.hpp +4 -3
- data/lib/qt6/qtprintsupport/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d00d7754a75805594fddf6e5ddf92299a36bfea17eb7e1119bd9e10952f55d00
|
|
4
|
+
data.tar.gz: 38d8e11943f8c08dbd2891f22ad68a7b5b62e96f30d11ba6bf692045d3de35be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73c0a5b2175cf102ef20675a7616ea757bc409c2764ef382b25d24d891382a626255d9371d84c00097eb10a2d13b6cf522608c25d6be4e9f7eb9a14b54e0de8e
|
|
7
|
+
data.tar.gz: 6c786674686c1cbf32c07a123422934d6c40342bb791ced16fc9ada8f78f8b7ffa8a96eadcd7d4db80e91c8951002027ee9e4bc53acb990685340939152864ab
|
data/Rakefile
CHANGED
|
@@ -8,6 +8,10 @@ Rake::ExtensionTask.new("qtprintsupport", GEMSPEC) do |ext|
|
|
|
8
8
|
ext.ext_dir = "ext/qt6/qtprintsupport"
|
|
9
9
|
ext.lib_dir = "lib/qt6/qtprintsupport"
|
|
10
10
|
end
|
|
11
|
+
Rake::Task["rake:compile"].enhance do
|
|
12
|
+
mkdir_p Pathname.new(GEMSPEC.gem_build_complete_path).parent
|
|
13
|
+
touch GEMSPEC.gem_build_complete_path
|
|
14
|
+
end
|
|
11
15
|
|
|
12
16
|
require "rubocop/rake_task"
|
|
13
17
|
RuboCop::RakeTask.new
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require File.join(RUBYQT6_RICE_LIB_PATH, "mkmf-rubyqt6.rb")
|
|
6
|
-
else
|
|
7
|
-
require "mkmf-rubyqt6"
|
|
8
|
-
end
|
|
3
|
+
RUBYQT6_RICE_GEM_PATH = Gem::Specification.find_by_name("ruby-qt6-rice").full_gem_path
|
|
4
|
+
require File.join(RUBYQT6_RICE_GEM_PATH, "lib/mkmf-rubyqt6.rb")
|
|
9
5
|
|
|
10
|
-
|
|
11
|
-
append_cppflags("-I#{includedir}")
|
|
12
|
-
append_cppflags("-I#{includedir}/QtCore")
|
|
13
|
-
append_cppflags("-I#{includedir}/QtGui")
|
|
14
|
-
append_cppflags("-I#{includedir}/QtWidgets")
|
|
15
|
-
append_cppflags("-I#{includedir}/QtPrintSupport")
|
|
16
|
-
abort "libQt6PrintSupport is missing, please install qt6-base" unless have_library("Qt6PrintSupport")
|
|
17
|
-
|
|
18
|
-
create_makefile("qt6/qtprintsupport/qtprintsupport")
|
|
6
|
+
rubyqt6_extconf("QtPrintSupport", depends: ["QtCore", "QtGui", "QtWidgets"])
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
#include <QPrinter>
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Class rb_cQAbstractPrintDialog;
|
|
11
11
|
|
|
12
|
-
void Init_qabstractprintdialog(
|
|
12
|
+
void Init_qabstractprintdialog(Module rb_mQt6QtPrintSupport)
|
|
13
13
|
{
|
|
14
14
|
rb_cQAbstractPrintDialog =
|
|
15
15
|
// RubyQt6::QtPrintSupport::QAbstractPrintDialog
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
#include <QPrinter>
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Class rb_cQPrintDialog;
|
|
9
9
|
|
|
10
|
-
void Init_qprintdialog(
|
|
10
|
+
void Init_qprintdialog(Module rb_mQt6QtPrintSupport)
|
|
11
11
|
{
|
|
12
12
|
rb_cQPrintDialog =
|
|
13
13
|
// RubyQt6::QtPrintSupport::QPrintDialog
|
|
@@ -25,7 +25,7 @@ void Init_qprintdialog(Rice::Module rb_mQt6QtPrintSupport)
|
|
|
25
25
|
.define_method("set_option", &QPrintDialog::setOption, Arg("option"), Arg("on") = static_cast<bool>(true))
|
|
26
26
|
.define_method("set_options", &QPrintDialog::setOptions, Arg("options"))
|
|
27
27
|
.define_method("set_visible", &QPrintDialog::setVisible, Arg("visible"))
|
|
28
|
-
.define_method("test_option", &QPrintDialog::testOption, Arg("option"))
|
|
28
|
+
.define_method("test_option", &QPrintDialog::testOption, Arg("option"));
|
|
29
29
|
// Signals
|
|
30
|
-
.define_method<void (QPrintDialog::*)(QPrinter *)>("accepted", &QPrintDialog::accepted, Arg("printer"));
|
|
30
|
+
// .define_method<void (QPrintDialog::*)(QPrinter *)>("accepted", &QPrintDialog::accepted, Arg("printer"));
|
|
31
31
|
}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
#include <QPrintEngine>
|
|
7
7
|
#include <QPrinterInfo>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Class rb_cQPrinter;
|
|
12
12
|
|
|
13
|
-
void Init_qprinter(
|
|
13
|
+
void Init_qprinter(Module rb_mQt6QtPrintSupport)
|
|
14
14
|
{
|
|
15
15
|
rb_cQPrinter =
|
|
16
16
|
// RubyQt6::QtPrintSupport::QPrinter
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#include "qprinterinfo-rb.hpp"
|
|
2
2
|
#include <qprinterinfo.h>
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Class rb_cQPrinterInfo;
|
|
7
7
|
|
|
8
|
-
void Init_qprinterinfo(
|
|
8
|
+
void Init_qprinterinfo(Module rb_mQt6QtPrintSupport)
|
|
9
9
|
{
|
|
10
10
|
rb_cQPrinterInfo =
|
|
11
11
|
// RubyQt6::QtPrintSupport::QPrinterInfo
|
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
#include "qabstractprintdialog-rb.hpp"
|
|
8
8
|
#include "qprintdialog-rb.hpp"
|
|
9
9
|
|
|
10
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
11
|
+
|
|
10
12
|
extern "C" void Init_qtprintsupport()
|
|
11
13
|
{
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
return detail::cpp_protect([] {
|
|
15
|
+
Module rb_mQt6 = define_module("RubyQt6");
|
|
16
|
+
Module rb_mQt6QtPrintSupport = define_module_under(rb_mQt6, "QtPrintSupport");
|
|
15
17
|
|
|
16
18
|
Init_qtprintsupportversion(rb_mQt6QtPrintSupport);
|
|
17
19
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#include "qtprintsupportversion-rb.hpp"
|
|
2
2
|
#include <qtprintsupportversion.h>
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
5
5
|
|
|
6
|
-
void Init_qtprintsupportversion(
|
|
6
|
+
void Init_qtprintsupportversion(Module rb_mQt6QtPrintSupport)
|
|
7
7
|
{
|
|
8
8
|
rb_mQt6QtPrintSupport.define_constant("QTPRINTSUPPORT_VERSION", QTPRINTSUPPORT_VERSION_STR);
|
|
9
9
|
}
|
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:
|
|
4
|
+
version: 2.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:
|
|
18
|
+
version: 2.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:
|
|
25
|
+
version: 2.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:
|
|
32
|
+
version: 2.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:
|
|
39
|
+
version: 2.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:
|
|
46
|
+
version: 2.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:
|
|
53
|
+
version: 2.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:
|
|
60
|
+
version: 2.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:
|
|
67
|
+
version: 2.0.0
|
|
68
68
|
description: Ruby Bindings for Qt Print Support.
|
|
69
69
|
email:
|
|
70
70
|
- johndoe@example.com
|
|
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
111
111
|
requirements:
|
|
112
112
|
- - ">="
|
|
113
113
|
- !ruby/object:Gem::Version
|
|
114
|
-
version: 3.
|
|
114
|
+
version: 3.3.0
|
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
|
117
117
|
- - ">="
|