From 520c05ef06ce203ad32470730f68402bc7719157 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 27 Feb 2012 02:13:42 -0600 Subject: Automated update from qt3 --- examples/widgets/widgets.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/widgets/widgets.cpp') diff --git a/examples/widgets/widgets.cpp b/examples/widgets/widgets.cpp index 2f6ec11e3..8a1f5d69c 100644 --- a/examples/widgets/widgets.cpp +++ b/examples/widgets/widgets.cpp @@ -156,7 +156,7 @@ WidgetView::WidgetView( TQWidget *parent, const char *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 ); @@ -181,7 +181,7 @@ WidgetView::WidgetView( TQWidget *parent, const char *name ) id = popup->insertItem( openIcon, "&Open...", this, SLOT( open() ) ); popup->insertSeparator(); - popup->insertItem( "Quit", qApp, SLOT(quit()), CTRL+Key_Q ); + popup->insertItem( "Quit", tqApp, SLOT(quit()), CTRL+Key_Q ); textStylePopup = popup = new TQPopupMenu( this ); menuBar()->insertItem( "&Edit", popup ); @@ -733,15 +733,15 @@ void WidgetView::mySelectionChanged( TQListViewItem* /*item*/ ) void WidgetView::showProperties() { - if ( !qApp->focusWidget() ) + if ( !tqApp->focusWidget() ) return; TQCString output; output.sprintf( "Properties for class '%s'", - qApp->focusWidget()->className() ); + tqApp->focusWidget()->className() ); int i = 0; - while( i < (int) qApp->focusWidget()->metaObject()->numProperties( TRUE ) ) { + while( i < (int) tqApp->focusWidget()->metaObject()->numProperties( TRUE ) ) { const TQMetaProperty* p - = qApp->focusWidget()->metaObject()->property( i, TRUE ); + = tqApp->focusWidget()->metaObject()->property( i, TRUE ); TQCString tmp; tmp.sprintf( "\n %2d: %s (read-%s, %s)", ++i, p->name(), p->writable() ? "write" : "only", p->type() ); -- cgit v1.2.1