summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-16 14:26:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-16 14:29:57 +0900
commit02712db157a9d5bedd962da3d7f9726b29057059 (patch)
treef4699344367184da9696cf97bc54f2d5427ef940
parent1f00d69db7629853a25425ae5f3ca06d480e5430 (diff)
downloadtdebindings-02712db157a9d5bedd962da3d7f9726b29057059.tar.gz
tdebindings-02712db157a9d5bedd962da3d7f9726b29057059.zip
Drop compatibility code for TQButton
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--korundum/rubylib/tutorials/p2/p2.rb23
-rw-r--r--qtjava/javalib/org/trinitydesktop/qt/TQButton.java2
-rw-r--r--qtjava/javalib/qtjava/TQButton.cpp14
-rw-r--r--qtjava/javalib/qtjava/TQButton.h2
-rw-r--r--qtsharp/src/api/qt.xml4
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)
{
@@ -701,13 +694,6 @@ Java_org_trinitydesktop_qt_QButton_setAutoRepeat(JNIEnv* env, jobject obj, jbool
}
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)
{
((TQButton*) QtSupport::getQt(env, obj))->setDown((bool) 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">
<qmethod name="isDown" access="public" return="bool" id="0"/>
<qmethod name="isOn" access="public" return="bool" id="0"/>
<qmethod name="state" access="public" return="ToggleState" id="0"/>
- <qmethod name="autoResize" access="public" return="bool" id="0"/>
- <qmethod name="setAutoResize" access="public" return="void" id="0">
- <qparam type="bool" name="arg1"/>
- </qmethod>
<qmethod name="autoRepeat" access="public" return="bool" id="0"/>
<qmethod name="setAutoRepeat" access="public" return="void" id="0">
<qparam type="bool" name="arg1"/>