From 02712db157a9d5bedd962da3d7f9726b29057059 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 16 Jul 2023 14:26:03 +0900 Subject: Drop compatibility code for TQButton Signed-off-by: Michele Calgaro --- korundum/rubylib/tutorials/p2/p2.rb | 23 +++++++++++----------- qtjava/javalib/org/trinitydesktop/qt/TQButton.java | 2 -- qtjava/javalib/qtjava/TQButton.cpp | 14 ------------- qtjava/javalib/qtjava/TQButton.h | 2 -- qtsharp/src/api/qt.xml | 4 ---- 5 files changed, 11 insertions(+), 34 deletions(-) diff --git a/korundum/rubylib/tutorials/p2/p2.rb b/korundum/rubylib/tutorials/p2/p2.rb index a9647fef..50dce77f 100644 --- a/korundum/rubylib/tutorials/p2/p2.rb +++ b/korundum/rubylib/tutorials/p2/p2.rb @@ -1,12 +1,11 @@ -require 'Korundum' - - about = KDE::AboutData.new("p2", "Hello World", "0.1") - KDE::CmdLineArgs.init(ARGV, about) - a = KDE::Application.new() - hello = TQt::PushButton.new( a.i18n("Hello World !"), nil ) - hello.autoResize = true - - a.mainWidget = hello - hello.show - - a.exec \ No newline at end of file +require 'Korundum' + + about = KDE::AboutData.new("p2", "Hello World", "0.1") + KDE::CmdLineArgs.init(ARGV, about) + a = KDE::Application.new() + hello = TQt::PushButton.new( a.i18n("Hello World !"), nil ) + + a.mainWidget = hello + hello.show + + a.exec diff --git a/qtjava/javalib/org/trinitydesktop/qt/TQButton.java b/qtjava/javalib/org/trinitydesktop/qt/TQButton.java index 831d8747..2b8efdb9 100644 --- a/qtjava/javalib/org/trinitydesktop/qt/TQButton.java +++ b/qtjava/javalib/org/trinitydesktop/qt/TQButton.java @@ -50,8 +50,6 @@ public class TQButton extends TQWidget { public native boolean isDown(); public native boolean isOn(); public native int state(); - public native boolean autoResize(); - public native void setAutoResize(boolean arg1); public native boolean autoRepeat(); public native void setAutoRepeat(boolean arg1); public native boolean isExclusiveToggle(); diff --git a/qtjava/javalib/qtjava/TQButton.cpp b/qtjava/javalib/qtjava/TQButton.cpp index 05f9f8d4..fdf3e7ae 100644 --- a/qtjava/javalib/qtjava/TQButton.cpp +++ b/qtjava/javalib/qtjava/TQButton.cpp @@ -473,13 +473,6 @@ Java_org_trinitydesktop_qt_QButton_autoRepeat(JNIEnv* env, jobject obj) return xret; } -JNIEXPORT jboolean JNICALL -Java_org_trinitydesktop_qt_QButton_autoResize(JNIEnv* env, jobject obj) -{ - jboolean xret = (jboolean) ((TQButton*) QtSupport::getQt(env, obj))->autoResize(); - return xret; -} - JNIEXPORT jstring JNICALL Java_org_trinitydesktop_qt_QButton_className(JNIEnv* env, jobject obj) { @@ -700,13 +693,6 @@ Java_org_trinitydesktop_qt_QButton_setAutoRepeat(JNIEnv* env, jobject obj, jbool return; } -JNIEXPORT void JNICALL -Java_org_trinitydesktop_qt_QButton_setAutoResize(JNIEnv* env, jobject obj, jboolean arg1) -{ - ((TQButton*) QtSupport::getQt(env, obj))->setAutoResize((bool) arg1); - return; -} - JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QButton_setDown(JNIEnv* env, jobject obj, jboolean arg1) { diff --git a/qtjava/javalib/qtjava/TQButton.h b/qtjava/javalib/qtjava/TQButton.h index 4ce8b710..b4d6aa8e 100644 --- a/qtjava/javalib/qtjava/TQButton.h +++ b/qtjava/javalib/qtjava/TQButton.h @@ -28,8 +28,6 @@ extern JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QButton_setDown (JNIEnv extern JNIEXPORT jboolean JNICALL Java_org_trinitydesktop_qt_QButton_isDown (JNIEnv *env, jobject); extern JNIEXPORT jboolean JNICALL Java_org_trinitydesktop_qt_QButton_isOn (JNIEnv *env, jobject); extern JNIEXPORT jint JNICALL Java_org_trinitydesktop_qt_QButton_state (JNIEnv *env, jobject); -extern JNIEXPORT jboolean JNICALL Java_org_trinitydesktop_qt_QButton_autoResize (JNIEnv *env, jobject); -extern JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QButton_setAutoResize (JNIEnv *env, jobject, jboolean); extern JNIEXPORT jboolean JNICALL Java_org_trinitydesktop_qt_QButton_autoRepeat (JNIEnv *env, jobject); extern JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QButton_setAutoRepeat (JNIEnv *env, jobject, jboolean); extern JNIEXPORT jboolean JNICALL Java_org_trinitydesktop_qt_QButton_isExclusiveToggle (JNIEnv *env, jobject); diff --git a/qtsharp/src/api/qt.xml b/qtsharp/src/api/qt.xml index 8b6999aa..751e79c9 100644 --- a/qtsharp/src/api/qt.xml +++ b/qtsharp/src/api/qt.xml @@ -1187,10 +1187,6 @@ id="0"> - - - - -- cgit v1.2.1