Drop compatibility code for TQToolButton

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/19/head
Michele Calgaro 1 year ago
parent 476cadbff0
commit 1b35744b79
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -44,12 +44,6 @@ public class TQToolButton extends TQButton {
private native void newTQToolButton(int type, TQWidget parent);
public native TQSize sizeHint();
public native TQSize minimumSizeHint();
public native void setOnIconSet(TQIconSet arg1);
public native void setOffIconSet(TQIconSet arg1);
public native void setIconSet(TQIconSet arg1, boolean on);
public native TQIconSet onIconSet();
public native TQIconSet offIconSet();
public native TQIconSet iconSet(boolean on);
public native void setIconSet(TQIconSet arg1);
public native TQIconSet iconSet();
public native boolean usesBigPixmap();

@ -473,13 +473,6 @@ Java_org_trinitydesktop_qt_QToolButton_iconSet__(JNIEnv* env, jobject obj)
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QToolButton_iconSet__Z(JNIEnv* env, jobject obj, jboolean on)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQIconSet(((TQToolButton*) QtSupport::getQt(env, obj))->iconSet((bool) on)), "org.trinitydesktop.qt.TQIconSet", TRUE);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QToolButton_isDisposed(JNIEnv* env, jobject obj)
{
@ -588,20 +581,6 @@ static TQCString* _qstring_name = 0;
return;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QToolButton_offIconSet(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQIconSet(((TQToolButton*) QtSupport::getQt(env, obj))->offIconSet()), "org.trinitydesktop.qt.TQIconSet", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QToolButton_onIconSet(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQIconSet(((TQToolButton*) QtSupport::getQt(env, obj))->onIconSet()), "org.trinitydesktop.qt.TQIconSet", TRUE);
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolButton_openPopup(JNIEnv* env, jobject obj)
{
@ -644,27 +623,6 @@ Java_org_trinitydesktop_qt_QToolButton_setIconSet__Lorg_trinitydesktop_qt_QIconS
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolButton_setIconSet__Lorg_trinitydesktop_qt_QIconSet_2Z(JNIEnv* env, jobject obj, jobject arg1, jboolean on)
{
((TQToolButton*) QtSupport::getQt(env, obj))->setIconSet((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, arg1), (bool) on);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolButton_setOffIconSet(JNIEnv* env, jobject obj, jobject arg1)
{
((TQToolButton*) QtSupport::getQt(env, obj))->setOffIconSet((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolButton_setOnIconSet(JNIEnv* env, jobject obj, jobject arg1)
{
((TQToolButton*) QtSupport::getQt(env, obj))->setOnIconSet((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolButton_setOn(JNIEnv* env, jobject obj, jboolean enable)
{

@ -20,12 +20,6 @@ extern JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QToolButton_newTQToolBu
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QToolButton_newTQToolButton__ILorg_trinitydesktop_qt_QWidget_2 (JNIEnv *env, jobject, jint, jobject);
extern JNIEXPORT jobject JNICALL Java_org_trinitydesktop_qt_QToolButton_sizeHint (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_trinitydesktop_qt_QToolButton_minimumSizeHint (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QToolButton_setOnIconSet (JNIEnv *env, jobject, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QToolButton_setOffIconSet (JNIEnv *env, jobject, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QToolButton_setIconSet__Lorg_trinitydesktop_qt_QIconSet_2Z (JNIEnv *env, jobject, jobject, jboolean);
extern JNIEXPORT jobject JNICALL Java_org_trinitydesktop_qt_QToolButton_onIconSet (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_trinitydesktop_qt_QToolButton_offIconSet (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_trinitydesktop_qt_QToolButton_iconSet__Z (JNIEnv *env, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_qt_QToolButton_setIconSet__Lorg_trinitydesktop_qt_QIconSet_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT jobject JNICALL Java_org_trinitydesktop_qt_QToolButton_iconSet__ (JNIEnv *env, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_trinitydesktop_qt_QToolButton_usesBigPixmap (JNIEnv *env, jobject);

@ -174,26 +174,6 @@ namespace Qt {
qt_QToolButton_setIconSet (rawObject, set.RawObject);
}
[DllImport("libtqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QToolButton_setIconSet1 (IntPtr raw, IntPtr set, bool on);
public void SetIconSet (TQIconSet set, bool on)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
qt_QToolButton_setIconSet1 (rawObject, set.RawObject, on);
}
[DllImport("libtqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QToolButton_iconSet (IntPtr raw, bool on);
public TQIconSet IconSet (bool on)
{
if (disposed)
throw new ObjectDisposedException (this+": Attempted use of disposed object");
return LookupObject (qt_QToolButton_iconSet (rawObject, on), typeof (TQIconSet)) as TQIconSet;
}
[DllImport("libtqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QToolButton_setPopupDelay (IntPtr raw, int delay);
public void SetPopupDelay (int delay)

Loading…
Cancel
Save