summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/widgets/WidgetView.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/widgets/WidgetView.java')
-rw-r--r--qtjava/javalib/examples/widgets/WidgetView.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/qtjava/javalib/examples/widgets/WidgetView.java b/qtjava/javalib/examples/widgets/WidgetView.java
index 2907f49c..77382908 100644
--- a/qtjava/javalib/examples/widgets/WidgetView.java
+++ b/qtjava/javalib/examples/widgets/WidgetView.java
@@ -243,7 +243,7 @@ WidgetView( TQWidget parent, String name )
+ "about widgets on the screen.");
// Install an application-global event filter to catch control+leftbutton
- qApp().installEventFilter( this );
+ tqApp().installEventFilter( this );
//make a central widget to contain the other widgets
central = new TQWidget( this );
@@ -268,7 +268,7 @@ WidgetView( TQWidget parent, String name )
id = popup.insertItem( new TQIconSet(openIcon), "&Open", this, SLOT(" open()") );
popup.insertSeparator();
- popup.insertItem( "&Quit", qApp(), SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) );
+ popup.insertItem( "&Quit", tqApp(), SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) );
textStylePopup = popup = new TQPopupMenu( this );
@@ -813,13 +813,13 @@ void mySelectionChanged( TQListViewItem item )
void showProperties()
{
- if ( qApp().focusWidget() == null )
+ if ( tqApp().focusWidget() == null )
return;
- String output = "Properties for class '" + qApp().focusWidget().className() + "'";
+ String output = "Properties for class '" + tqApp().focusWidget().className() + "'";
int i = 0;
- while( i < (int) qApp().focusWidget().metaObject().numProperties( true ) ) {
+ while( i < (int) tqApp().focusWidget().metaObject().numProperties( true ) ) {
TQMetaProperty p
- = qApp().focusWidget().metaObject().property( i, true );
+ = tqApp().focusWidget().metaObject().property( i, true );
String tmp = "\n " + (++i) + ": " + p.name()
+ " (read-" + (p.writable() ? "write" : "only") + ", " + p.type() + ")";
output += tmp;