diff --git a/examples/android/main.go b/examples/android/main.go deleted file mode 100644 index 71455ef4..00000000 --- a/examples/android/main.go +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "os" - - "github.com/mappu/miqt/qt" -) - -func myRealMainFunc() { - - qt.NewQApplication(os.Args) - - btn := qt.NewQPushButton3("Hello world!") - btn.SetFixedWidth(320) - - var counter int = 0 - - btn.OnPressed(func() { - counter++ - btn.SetText(fmt.Sprintf("You have clicked the button %d time(s)", counter)) - }) - - btn.Show() - - qt.QApplication_Exec() - - fmt.Println("OK!") -} diff --git a/examples/android/startup_android.go b/examples/android/startup_android.go deleted file mode 100644 index 2fbc4d5b..00000000 --- a/examples/android/startup_android.go +++ /dev/null @@ -1,14 +0,0 @@ -// +build android - -package main - -import "C" // Required for export support - -//export AndroidMain -func AndroidMain() { - myRealMainFunc() -} - -func main() { - // Must be empty -} diff --git a/examples/android/startup_other.go b/examples/android/startup_other.go deleted file mode 100644 index d2382476..00000000 --- a/examples/android/startup_other.go +++ /dev/null @@ -1,7 +0,0 @@ -// +build !android - -package main - -func main() { - myRealMainFunc() -} diff --git a/examples/android6/main.go b/examples/android6/main.go deleted file mode 100644 index 7ce9703b..00000000 --- a/examples/android6/main.go +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "os" - - qt "github.com/mappu/miqt/qt6" -) - -func myRealMainFunc() { - - qt.NewQApplication(os.Args) - - btn := qt.NewQPushButton3("Hello world!") - btn.SetFixedWidth(320) - - var counter int = 0 - - btn.OnPressed(func() { - counter++ - btn.SetText(fmt.Sprintf("You have clicked the button %d time(s)", counter)) - }) - - btn.Show() - - qt.QApplication_Exec() - - fmt.Println("OK!") -} diff --git a/examples/android6/startup_android.go b/examples/android6/startup_android.go deleted file mode 100644 index 2fbc4d5b..00000000 --- a/examples/android6/startup_android.go +++ /dev/null @@ -1,14 +0,0 @@ -// +build android - -package main - -import "C" // Required for export support - -//export AndroidMain -func AndroidMain() { - myRealMainFunc() -} - -func main() { - // Must be empty -} diff --git a/examples/android6/startup_other.go b/examples/android6/startup_other.go deleted file mode 100644 index d2382476..00000000 --- a/examples/android6/startup_other.go +++ /dev/null @@ -1,7 +0,0 @@ -// +build !android - -package main - -func main() { - myRealMainFunc() -} diff --git a/examples/android/screenshot.png b/examples/helloworld/helloworld.android.png similarity index 100% rename from examples/android/screenshot.png rename to examples/helloworld/helloworld.android.png diff --git a/examples/android6/screenshot.png b/examples/helloworld6/screenshot-android.png similarity index 100% rename from examples/android6/screenshot.png rename to examples/helloworld6/screenshot-android.png