Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing qtmoc not handling pointer to object in QT signal properly #1147

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Introduction

[Go](https://en.wikipedia.org/wiki/Go_(programming_language)), also known as Golang, is a programming language designed at Google.

[therecipe/qt](https://github.com/therecipe/qt) allows you to write Qt applications entirely in Go or JavaScript.
[therecipe/qt](https://github.com/StarAurryon/qt) allows you to write Qt applications entirely in Go or JavaScript.

Beside the language bindings provided, `therecipe/qt` also greatly simplifies the deployment of Qt applications to various software and hardware platforms.

Expand All @@ -14,7 +14,7 @@ At the time of writing, almost all Qt functions and classes are accessible from
Impressions
-----------

[Gallery](https://github.com/therecipe/qt/wiki/Gallery) of example applications.
[Gallery](https://github.com/StarAurryon/qt/wiki/Gallery) of example applications.

[JavaScript Demo](https://therecipe.github.io/entry) | *[source](https://github.com/therecipe/entry)*

Expand All @@ -23,33 +23,33 @@ Installation

The following instructions assume that you already installed [Go](https://golang.org/dl/) and [Git](https://git-scm.com/downloads)

##### Windows [(more info)](https://github.com/therecipe/qt/wiki/Installation-on-Windows)
##### Windows [(more info)](https://github.com/StarAurryon/qt/wiki/Installation-on-Windows)

```powershell
set GO111MODULE=off
go get -v github.com/therecipe/qt/cmd/... && for /f %v in ('go env GOPATH') do %v\bin\qtsetup test && %v\bin\qtsetup -test=false
go get -v github.com/StarAurryon/qt/cmd/... && for /f %v in ('go env GOPATH') do %v\bin\qtsetup test && %v\bin\qtsetup -test=false
```

##### macOS [(more info)](https://github.com/therecipe/qt/wiki/Installation-on-macOS)
##### macOS [(more info)](https://github.com/StarAurryon/qt/wiki/Installation-on-macOS)

```bash
export GO111MODULE=off; xcode-select --install; go get -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false
export GO111MODULE=off; xcode-select --install; go get -v github.com/StarAurryon/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false
```

##### Linux [(more info)](https://github.com/therecipe/qt/wiki/Installation-on-Linux)
##### Linux [(more info)](https://github.com/StarAurryon/qt/wiki/Installation-on-Linux)

```bash
export GO111MODULE=off; go get -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false
export GO111MODULE=off; go get -v github.com/StarAurryon/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false
```

Resources
---------

- [Installation](https://github.com/therecipe/qt/wiki/Installation)
- [Getting Started](https://github.com/therecipe/qt/wiki/Getting-Started)
- [Wiki](https://github.com/therecipe/qt/wiki)
- [Installation](https://github.com/StarAurryon/qt/wiki/Installation)
- [Getting Started](https://github.com/StarAurryon/qt/wiki/Getting-Started)
- [Wiki](https://github.com/StarAurryon/qt/wiki)
- [Qt Documentation](https://doc.qt.io/qt-5/classes.html)
- [FAQ](https://github.com/therecipe/qt/wiki/FAQ)
- [FAQ](https://github.com/StarAurryon/qt/wiki/FAQ)
- [#qt-binding](https://gophers.slack.com/messages/qt-binding/details) Slack channel ([invite](https://invite.slack.golangbridge.org)\)

Deployment Targets
Expand Down
4 changes: 2 additions & 2 deletions androidextras/androidextras.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package androidextras

import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"strings"
"unsafe"
)
Expand Down
4 changes: 2 additions & 2 deletions androidextras/androidextras_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package androidextras
import "C"
import (
"errors"
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"strings"
"unsafe"
)
Expand Down
2 changes: 1 addition & 1 deletion androidextras/utils-androidextras_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"unsafe"

"github.com/therecipe/qt"
"github.com/StarAurryon/qt"
)

func assertion(key int, input ...interface{}) (unsafe.Pointer, func()) {
Expand Down
6 changes: 3 additions & 3 deletions bluetooth/bluetooth.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ package bluetooth
//#include "bluetooth.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/network"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"github.com/StarAurryon/qt/network"
"reflect"
"strings"
"unsafe"
Expand Down
8 changes: 4 additions & 4 deletions charts/charts.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ package charts
//#include "charts.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/gui"
"github.com/therecipe/qt/widgets"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"github.com/StarAurryon/qt/gui"
"github.com/StarAurryon/qt/widgets"
"strings"
"unsafe"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/qtdeploy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/deploy"
"github.com/StarAurryon/qt/internal/cmd"
"github.com/StarAurryon/qt/internal/cmd/deploy"

"github.com/therecipe/qt/internal/utils"
"github.com/StarAurryon/qt/internal/utils"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/qtminimal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/minimal"
"github.com/StarAurryon/qt/internal/cmd"
"github.com/StarAurryon/qt/internal/cmd/minimal"

"github.com/therecipe/qt/internal/utils"
"github.com/StarAurryon/qt/internal/utils"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/qtmoc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/moc"
"github.com/StarAurryon/qt/internal/cmd"
"github.com/StarAurryon/qt/internal/cmd/moc"

"github.com/therecipe/qt/internal/utils"
"github.com/StarAurryon/qt/internal/utils"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/qtrcc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/rcc"
"github.com/StarAurryon/qt/internal/cmd"
"github.com/StarAurryon/qt/internal/cmd/rcc"

"github.com/therecipe/qt/internal/utils"
"github.com/StarAurryon/qt/internal/utils"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/qtsetup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/setup"
"github.com/StarAurryon/qt/internal/cmd"
"github.com/StarAurryon/qt/internal/cmd/setup"

"github.com/therecipe/qt/internal/utils"
"github.com/StarAurryon/qt/internal/utils"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef QT_CORE_LIB
#error ------------------------------------------------------------------
#error please run: '$(go env GOPATH)/bin/qtsetup'
#error more info here: https://github.com/therecipe/qt/wiki/Installation
#error more info here: https://github.com/StarAurryon/qt/wiki/Installation
#error ------------------------------------------------------------------
#endif
#include <QAbstractAnimation>
Expand Down
2 changes: 1 addition & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package core
//#include "core.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/StarAurryon/qt"
"math"
"reflect"
"runtime"
Expand Down
6 changes: 3 additions & 3 deletions datavisualization/datavisualization.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ package datavisualization
//#include "datavisualization.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/gui"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"github.com/StarAurryon/qt/gui"
"strings"
"unsafe"
)
Expand Down
4 changes: 2 additions & 2 deletions dbus/dbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package dbus
//#include "dbus.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"strings"
"unsafe"
)
Expand Down
8 changes: 4 additions & 4 deletions designer/designer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ package designer
//#include "designer.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/gui"
"github.com/therecipe/qt/widgets"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"github.com/StarAurryon/qt/gui"
"github.com/StarAurryon/qt/widgets"
"strings"
"unsafe"
)
Expand Down
6 changes: 3 additions & 3 deletions felgo/felgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ package felgo
//#include "felgo.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/qml"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"github.com/StarAurryon/qt/qml"
"runtime"
"strings"
"unsafe"
Expand Down
2 changes: 1 addition & 1 deletion flutter/embedder.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import (
"time"
"unsafe"

"github.com/therecipe/qt/core"
"github.com/StarAurryon/qt/core"
)

func FlutterEngineRun() {
Expand Down
10 changes: 5 additions & 5 deletions flutter/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"time"
"unsafe"

"github.com/therecipe/qt/core"
"github.com/therecipe/qt/gui"
"github.com/therecipe/qt/widgets"
"github.com/StarAurryon/qt/core"
"github.com/StarAurryon/qt/gui"
"github.com/StarAurryon/qt/widgets"

"github.com/therecipe/qt/interop"
_ "github.com/therecipe/qt/interop/dart"
"github.com/StarAurryon/qt/interop"
_ "github.com/StarAurryon/qt/interop/dart"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions gamepad/gamepad.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package gamepad
//#include "gamepad.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"strings"
"unsafe"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/therecipe/qt
module github.com/StarAurryon/qt

require (
github.com/gopherjs/gopherjs v0.0.0-20190411002643-bd77b112433e
Expand Down
6 changes: 3 additions & 3 deletions gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ package gui
//#include "gui.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
_ "github.com/therecipe/qt/internal/binding/runtime"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
_ "github.com/StarAurryon/qt/internal/binding/runtime"
"strings"
"unsafe"
)
Expand Down
8 changes: 4 additions & 4 deletions help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ package help
//#include "help.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/gui"
"github.com/therecipe/qt/widgets"
"github.com/StarAurryon/qt"
"github.com/StarAurryon/qt/core"
"github.com/StarAurryon/qt/gui"
"github.com/StarAurryon/qt/widgets"
"strings"
"unsafe"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/binding/converter/body_input_cpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"strings"

"github.com/therecipe/qt/internal/binding/parser"
"github.com/therecipe/qt/internal/utils"
"github.com/StarAurryon/qt/internal/binding/parser"
"github.com/StarAurryon/qt/internal/utils"
)

func CppInputParameters(function *parser.Function) string {
Expand Down
2 changes: 1 addition & 1 deletion internal/binding/converter/body_input_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/therecipe/qt/internal/binding/parser"
"github.com/StarAurryon/qt/internal/binding/parser"
)

func GoInputParametersForC(function *parser.Function) string {
Expand Down
2 changes: 1 addition & 1 deletion internal/binding/converter/body_output_cpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package converter
import (
"fmt"

"github.com/therecipe/qt/internal/binding/parser"
"github.com/StarAurryon/qt/internal/binding/parser"
)

func CppOutputParameters(function *parser.Function, name string) string {
Expand Down
2 changes: 1 addition & 1 deletion internal/binding/converter/body_output_go.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package converter

import "github.com/therecipe/qt/internal/binding/parser"
import "github.com/StarAurryon/qt/internal/binding/parser"

func GoOutputParametersFromC(function *parser.Function, name string) string {
if function.Meta == parser.CONSTRUCTOR {
Expand Down
2 changes: 1 addition & 1 deletion internal/binding/converter/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/therecipe/qt/internal/binding/parser"
"github.com/StarAurryon/qt/internal/binding/parser"
)

func EnumNeedsCppGlue(value string) bool {
Expand Down
2 changes: 1 addition & 1 deletion internal/binding/converter/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/therecipe/qt/internal/binding/parser"
"github.com/StarAurryon/qt/internal/binding/parser"
)

func GoHeaderName(f *parser.Function) string {
Expand Down
4 changes: 2 additions & 2 deletions internal/binding/converter/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strings"
"sync"

"github.com/therecipe/qt/internal/binding/parser"
"github.com/therecipe/qt/internal/utils"
"github.com/StarAurryon/qt/internal/binding/parser"
"github.com/StarAurryon/qt/internal/utils"
)

func module(input interface{}) string {
Expand Down
Loading