qprintsupport: rename to qt/printsupport [BREAKING]

This commit is contained in:
mappu 2024-11-04 22:13:59 +13:00
parent 6491d1aede
commit ce8dd5631a
54 changed files with 25 additions and 25 deletions

2
.gitignore vendored
View File

@ -28,7 +28,7 @@ examples/windowsmanifest/windowsmanifest.exe
examples/uidesigner/uidesigner examples/uidesigner/uidesigner
examples/uidesigner/uidesigner.exe examples/uidesigner/uidesigner.exe
examples/libraries/extras-scintillaedit/extras-scintillaedit examples/libraries/extras-scintillaedit/extras-scintillaedit
examples/libraries/qt-qprintsupport/qt-qprintsupport examples/libraries/qt-printsupport/qt-printsupport
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla
# android temporary build files # android temporary build files

View File

@ -23,7 +23,7 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
) )
generate( generate(
"qt/qprintsupport", "qt/printsupport",
[]string{ []string{
"/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport", "/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport",
}, },
@ -78,7 +78,7 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
// Qt 6 QtPrintSupport // Qt 6 QtPrintSupport
generate( generate(
"qt6/qprintsupport", "qt6/printsupport",
[]string{ []string{
"/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport", "/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport",
}, },

View File

@ -4,7 +4,7 @@ import (
"os" "os"
"github.com/mappu/miqt/qt" "github.com/mappu/miqt/qt"
"github.com/mappu/miqt/qt/qprintsupport" "github.com/mappu/miqt/qt/printsupport"
) )
func main() { func main() {
@ -16,7 +16,7 @@ func main() {
btn.OnPressed(func() { btn.OnPressed(func() {
dlg := qprintsupport.NewQPrintDialog3() dlg := printsupport.NewQPrintDialog3()
dlg.OnFinished(func(int) { dlg.OnFinished(func(int) {
dlg.DeleteLater() dlg.DeleteLater()
}) })

View File

@ -10,14 +10,14 @@ import "C"
import ( import (
"github.com/mappu/miqt/qt" "github.com/mappu/miqt/qt"
"github.com/mappu/miqt/qt/qprintsupport" "github.com/mappu/miqt/qt/printsupport"
"runtime" "runtime"
"unsafe" "unsafe"
) )
type QsciPrinter struct { type QsciPrinter struct {
h *C.QsciPrinter h *C.QsciPrinter
*qprintsupport.QPrinter *printsupport.QPrinter
} }
func (this *QsciPrinter) cPointer() *C.QsciPrinter { func (this *QsciPrinter) cPointer() *C.QsciPrinter {
@ -38,7 +38,7 @@ func newQsciPrinter(h *C.QsciPrinter) *QsciPrinter {
if h == nil { if h == nil {
return nil return nil
} }
return &QsciPrinter{h: h, QPrinter: qprintsupport.UnsafeNewQPrinter(unsafe.Pointer(h))} return &QsciPrinter{h: h, QPrinter: printsupport.UnsafeNewQPrinter(unsafe.Pointer(h))}
} }
func UnsafeNewQsciPrinter(h unsafe.Pointer) *QsciPrinter { func UnsafeNewQsciPrinter(h unsafe.Pointer) *QsciPrinter {
@ -52,7 +52,7 @@ func NewQsciPrinter() *QsciPrinter {
} }
// NewQsciPrinter2 constructs a new QsciPrinter object. // NewQsciPrinter2 constructs a new QsciPrinter object.
func NewQsciPrinter2(mode qprintsupport.QPrinter__PrinterMode) *QsciPrinter { func NewQsciPrinter2(mode printsupport.QPrinter__PrinterMode) *QsciPrinter {
ret := C.QsciPrinter_new2((C.int)(mode)) ret := C.QsciPrinter_new2((C.int)(mode))
return newQsciPrinter(ret) return newQsciPrinter(ret)
} }

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*

View File

@ -1,4 +1,4 @@
package qprintsupport package printsupport
/* /*