Fix aboutTQt

pull/1/head
Timothy Pearson 13 years ago
parent 5efb4bb528
commit c410ec66cc

@ -159,7 +159,7 @@ public class ApplicationWindow extends TQMainWindow {
menuBar().insertSeparator();
menuBar().insertItem("&Help", help);
help.insertItem("&About", this, SLOT("about()"), new TQKeySequence(Key_F1), -1, -1);
help.insertItem("About &Qt", this, SLOT("aboutQt()"));
help.insertItem("About &Qt", this, SLOT("aboutTQt()"));
help.insertSeparator();
help.insertItem("What's &This", this, SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1), -1, -1);
@ -312,7 +312,7 @@ public class ApplicationWindow extends TQMainWindow {
}
private void aboutQt() {
TQMessageBox.aboutQt(this, "Qt Application Example");
private void aboutTQt() {
TQMessageBox.aboutTQt(this, "Qt Application Example");
}
}

@ -79,7 +79,7 @@ HelpWindow( String home_, String _path,
TQPopupMenu help = new TQPopupMenu( this );
help.insertItem( tr("&About ..."), this, SLOT(" about()") );
help.insertItem( tr("About &Qt ..."), this, SLOT(" aboutQt()") );
help.insertItem( tr("About &Qt ..."), this, SLOT(" aboutTQt()") );
hist = new TQPopupMenu( this );
Iterator it = history.iterator();
@ -232,9 +232,9 @@ void about()
}
void aboutQt()
void aboutTQt()
{
TQMessageBox.aboutQt( this, "TQBrowser" );
TQMessageBox.aboutTQt( this, "TQBrowser" );
}
void openFile()

@ -172,7 +172,7 @@ ApplicationWindow()
menuBar().insertItem( "&Help", help );
help.insertItem( "&About", this, SLOT("about()"), new TQKeySequence(Key_F1));
help.insertItem( "About &Qt", this, SLOT("aboutQt()"));
help.insertItem( "About &Qt", this, SLOT("aboutTQt()"));
help.insertSeparator();
help.insertItem( "What's &This", this, SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1));
@ -251,9 +251,9 @@ void about()
}
void aboutQt()
void aboutTQt()
{
TQMessageBox.aboutQt( this, "Qt Application Example" );
TQMessageBox.aboutTQt( this, "Qt Application Example" );
}

@ -182,7 +182,7 @@ MenuExample( TQWidget parent, String name )
TQPopupMenu help = new TQPopupMenu( this );
help.insertItem( "&About", this, SLOT("about()"), new TQKeySequence(CTRL+Key_H) );
help.insertItem( "About &Qt", this, SLOT("aboutQt()") );
help.insertItem( "About &Qt", this, SLOT("aboutTQt()") );
menu = new TQMenuBar( this );
menu.insertItem( "&File", file );
@ -275,9 +275,9 @@ void about()
}
void aboutQt()
void aboutTQt()
{
TQMessageBox.aboutQt( this, "Qt Menu Example" );
TQMessageBox.aboutTQt( this, "Qt Menu Example" );
}

@ -72,7 +72,7 @@ public class TQApplication extends TQObject {
public native void wakeUpGuiThread();
public native void quit();
public native void closeAllWindows();
public native void aboutQt();
public native void aboutTQt();
public static native String tr(String arg1, String arg2);
public static native String tr(String arg1);
public static native TQStyle style();

@ -117,8 +117,8 @@ public class TQMessageBox extends TQDialog {
public static native int critical(TQWidget parent, String caption, String text, String button0Text);
public static native int critical(TQWidget parent, String caption, String text);
public static native void about(TQWidget parent, String caption, String text);
public static native void aboutQt(TQWidget parent, String caption);
public static native void aboutQt(TQWidget parent);
public static native void aboutTQt(TQWidget parent, String caption);
public static native void aboutTQt(TQWidget parent);
public static native int message(String caption, String text, String buttonText, TQWidget parent, String arg5);
public static native int message(String caption, String text, String buttonText, TQWidget parent);
public static native int message(String caption, String text, String buttonText);

@ -96,9 +96,9 @@ public:
};
JNIEXPORT void JNICALL
Java_org_kde_qt_QApplication_aboutQt(JNIEnv* env, jobject obj)
Java_org_kde_qt_QApplication_aboutTQt(JNIEnv* env, jobject obj)
{
((TQApplication*) QtSupport::getQt(env, obj))->aboutQt();
((TQApplication*) QtSupport::getQt(env, obj))->aboutTQt();
return;
}

@ -47,7 +47,7 @@ extern JNIEXPORT void JNICALL Java_org_kde_qt_QApplication_saveState (JNIEnv *en
extern JNIEXPORT void JNICALL Java_org_kde_qt_QApplication_wakeUpGuiThread (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_qt_QApplication_quit (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_qt_QApplication_closeAllWindows (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_qt_QApplication_aboutQt (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_qt_QApplication_aboutTQt (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_qt_QApplication_tr__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jstring, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_qt_QApplication_tr__Ljava_lang_String_2 (JNIEnv *env, jclass, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_qt_QApplication_style (JNIEnv *env, jclass);

@ -364,19 +364,19 @@ public:
};
JNIEXPORT void JNICALL
Java_org_kde_qt_QMessageBox_aboutQt__Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject parent)
Java_org_kde_qt_QMessageBox_aboutTQt__Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject parent)
{
(void) cls;
TQMessageBoxJBridge::aboutQt((TQWidget*) QtSupport::getQt(env, parent));
TQMessageBoxJBridge::aboutTQt((TQWidget*) QtSupport::getQt(env, parent));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QMessageBox_aboutQt__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject parent, jstring caption)
Java_org_kde_qt_QMessageBox_aboutTQt__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject parent, jstring caption)
{
(void) cls;
static TQString* _qstring_caption = 0;
TQMessageBoxJBridge::aboutQt((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, caption, &_qstring_caption));
TQMessageBoxJBridge::aboutTQt((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toTQString(env, caption, &_qstring_caption));
return;
}

@ -69,8 +69,8 @@ extern JNIEXPORT jint JNICALL Java_org_kde_qt_QMessageBox_critical__Lorg_kde_qt_
extern JNIEXPORT jint JNICALL Java_org_kde_qt_QMessageBox_critical__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jobject, jstring, jstring, jstring);
extern JNIEXPORT jint JNICALL Java_org_kde_qt_QMessageBox_critical__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jobject, jstring, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_qt_QMessageBox_about (JNIEnv *env, jclass, jobject, jstring, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_qt_QMessageBox_aboutQt__Lorg_kde_qt_QWidget_2Ljava_lang_String_2 (JNIEnv *env, jclass, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_qt_QMessageBox_aboutQt__Lorg_kde_qt_QWidget_2 (JNIEnv *env, jclass, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_qt_QMessageBox_aboutTQt__Lorg_kde_qt_QWidget_2Ljava_lang_String_2 (JNIEnv *env, jclass, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_qt_QMessageBox_aboutTQt__Lorg_kde_qt_QWidget_2 (JNIEnv *env, jclass, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_qt_QMessageBox_message__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2 (JNIEnv *env, jclass, jstring, jstring, jstring, jobject, jstring);
extern JNIEXPORT jint JNICALL Java_org_kde_qt_QMessageBox_message__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QWidget_2 (JNIEnv *env, jclass, jstring, jstring, jstring, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_qt_QMessageBox_message__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jstring, jstring, jstring);

@ -230,7 +230,7 @@ public class TQTimerTest extends TQWidget {
public void slotAboutQt()
{
TQMessageBox.aboutQt( this, "About Qt" );
TQMessageBox.aboutTQt( this, "About Qt" );
}
public void slotColorMenu( int item )

@ -227,7 +227,7 @@ public class ScribbleWindow extends TQWidget {
private void slotAboutQt()
{
TQMessageBox.aboutQt( this, "About Qt" );
TQMessageBox.aboutTQt( this, "About Qt" );
}
private void slotColorMenu( int item )

@ -481,7 +481,7 @@ class ChartForm < TQt::MainWindow
def helpAboutQt()
TQt::MessageBox.aboutQt( self, "Chart -- About Qt" )
TQt::MessageBox.aboutTQt( self, "Chart -- About Qt" )
end
end

@ -215,7 +215,7 @@ class ScribbleWindow < TQt::Widget
end
def slotAboutQt()
TQt::MessageBox.aboutQt( self, "About Qt" )
TQt::MessageBox.aboutTQt( self, "About Qt" )
end
def slotColorMenu( item )

@ -11130,7 +11130,7 @@ id="0"/>
<qparam type="TQStringamp" name="caption"/>
<qparam type="TQStringamp" name="text"/>
</qmethod>
<qmethod name="aboutQt" access="public static" return="void" id="0">
<qmethod name="aboutTQt" access="public static" return="void" id="0">
<qparam type="TQWidget*" name="parent"/>
<qparam type="TQStringamp" name="caption" default="TQString::null"/>
</qmethod>

Loading…
Cancel
Save