summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/action/application.cpp2
-rw-r--r--examples/addressbook/mainwindow.cpp2
-rw-r--r--examples/application/application.cpp2
-rw-r--r--examples/canvas/blendshadow.cpp12
-rw-r--r--examples/canvas/canvas.cpp8
-rw-r--r--examples/canvas/main.cpp2
-rw-r--r--examples/canvas/makeimg.cpp30
-rw-r--r--examples/chart/chartform.cpp2
-rw-r--r--examples/demo/frame.cpp8
-rw-r--r--examples/demo/i18n/i18n.cpp14
-rw-r--r--examples/demo/main.cpp2
-rw-r--r--examples/demo/textdrawing/textedit.cpp2
-rw-r--r--examples/desktop/desktop.cpp12
-rw-r--r--examples/dragdrop/main.cpp2
-rw-r--r--examples/fileiconview/qfileiconview.cpp2
-rw-r--r--examples/helpviewer/helpwindow.cpp2
-rw-r--r--examples/i18n/main.cpp10
-rw-r--r--examples/i18n/mywidget.cpp2
-rw-r--r--examples/layout/layout.cpp2
-rw-r--r--examples/life/lifedlg.cpp6
-rw-r--r--examples/mdi/application.cpp2
-rw-r--r--examples/menu/menu.cpp2
-rw-r--r--examples/movies/main.cpp4
-rw-r--r--examples/network/clientserver/client/client.cpp2
-rw-r--r--examples/network/clientserver/server/server.cpp2
-rw-r--r--examples/network/httpd/httpd.cpp2
-rw-r--r--examples/network/infoprotocol/infoclient/client.cpp2
-rw-r--r--examples/network/infoprotocol/infoserver/server.cpp2
-rw-r--r--examples/network/infoprotocol/infourlclient/client.cpp2
-rw-r--r--examples/network/mail/smtp.cpp2
-rw-r--r--examples/opengl/box/globjwin.cpp2
-rw-r--r--examples/opengl/glpixmap/globjwin.cpp2
-rw-r--r--examples/opengl/overlay/globjwin.cpp4
-rw-r--r--examples/opengl/overlay/main.cpp2
-rw-r--r--examples/opengl/overlay_x11/main.cpp2
-rw-r--r--examples/opengl/sharedbox/globjwin.cpp2
-rw-r--r--examples/opengl/texture/globjwin.cpp2
-rw-r--r--examples/process/process.cpp2
-rw-r--r--examples/progress/progress.cpp2
-rw-r--r--examples/qmag/qmag.cpp6
-rw-r--r--examples/qwerty/main.cpp4
-rw-r--r--examples/qwerty/qwerty.cpp6
-rw-r--r--examples/richtext/richtext.cpp2
-rw-r--r--examples/rot13/rot13.cpp2
-rw-r--r--examples/scribble/scribble.cpp2
-rw-r--r--examples/scrollview/scrollview.cpp6
-rw-r--r--examples/showimg/main.cpp2
-rw-r--r--examples/showimg/showimg.cpp2
-rw-r--r--examples/sound/sound.cpp2
-rw-r--r--examples/tabdialog/tabdialog.cpp2
-rw-r--r--examples/tablet/canvas.cpp2
-rw-r--r--examples/tetrix/qtetrix.cpp2
-rw-r--r--examples/textedit/textedit.cpp8
-rw-r--r--examples/themes/themes.cpp24
-rw-r--r--examples/tictac/tictac.cpp2
-rw-r--r--examples/widgets/main.cpp2
-rw-r--r--examples/widgets/widgets.cpp12
-rw-r--r--examples/xform/xform.cpp2
58 files changed, 128 insertions, 128 deletions
diff --git a/examples/action/application.cpp b/examples/action/application.cpp
index 2151c8f6b..2571379d3 100644
--- a/examples/action/application.cpp
+++ b/examples/action/application.cpp
@@ -94,7 +94,7 @@ ApplicationWindow::ApplicationWindow()
fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this,
"quit" );
- connect( fileQuitAction, SIGNAL( activated() ) , qApp,
+ connect( fileQuitAction, SIGNAL( activated() ) , tqApp,
SLOT( closeAllWindows() ) );
// populate a tool bar with some actions
diff --git a/examples/addressbook/mainwindow.cpp b/examples/addressbook/mainwindow.cpp
index 1e179b2a8..11b93a8e0 100644
--- a/examples/addressbook/mainwindow.cpp
+++ b/examples/addressbook/mainwindow.cpp
@@ -47,7 +47,7 @@ void ABMainWindow::setupMenuBar()
file->insertItem( TQPixmap( "fileprint.xpm" ), "Print...", this, SLOT( filePrint() ), CTRL + Key_P );
file->insertSeparator();
file->insertItem( "Close", this, SLOT( closeWindow() ), CTRL + Key_W );
- file->insertItem( "Quit", qApp, SLOT( quit() ), CTRL + Key_Q );
+ file->insertItem( "Quit", tqApp, SLOT( quit() ), CTRL + Key_Q );
}
void ABMainWindow::setupFileTools()
diff --git a/examples/application/application.cpp b/examples/application/application.cpp
index 9c87aafb4..ee7b945f7 100644
--- a/examples/application/application.cpp
+++ b/examples/application/application.cpp
@@ -112,7 +112,7 @@ ApplicationWindow::ApplicationWindow()
file->insertItem( "&Close", this, SLOT(close()), CTRL+Key_W );
- file->insertItem( "&Quit", qApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( "&Quit", tqApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
menuBar()->insertSeparator();
diff --git a/examples/canvas/blendshadow.cpp b/examples/canvas/blendshadow.cpp
index e4a498b2c..d2f761db0 100644
--- a/examples/canvas/blendshadow.cpp
+++ b/examples/canvas/blendshadow.cpp
@@ -9,18 +9,18 @@ static inline int blendComponent( int v, int av, int s, int as )
static inline TQRgb blendShade( TQRgb v, TQRgb s )
{
//shadow image is already reduced and blurred
- int as = qAlpha(s);
- int av = qAlpha(v);
+ int as = tqAlpha(s);
+ int av = tqAlpha(v);
if ( as == 0 || av == 255 )
return v;
int a = as + av -(as*av)/255;
- int r = blendComponent( qRed(v),av, qRed(s), as)/a;
- int g = blendComponent( qGreen(v),av, qGreen(s), as)/a;
- int b = blendComponent( qBlue(v),av, qBlue(s), as)/a;
+ int r = blendComponent( tqRed(v),av, tqRed(s), as)/a;
+ int g = blendComponent( tqGreen(v),av, tqGreen(s), as)/a;
+ int b = blendComponent( tqBlue(v),av, tqBlue(s), as)/a;
- return qRgba(r,g,b,a);
+ return tqRgba(r,g,b,a);
}
diff --git a/examples/canvas/canvas.cpp b/examples/canvas/canvas.cpp
index 47bc9b6af..86405b51f 100644
--- a/examples/canvas/canvas.cpp
+++ b/examples/canvas/canvas.cpp
@@ -79,7 +79,7 @@ bool ImageItem::hit( const TQPoint &p ) const
if ( !image.valid( ix , iy ) )
return FALSE;
TQRgb pixel = image.pixel( ix, iy );
- return qAlpha( pixel ) != 0;
+ return tqAlpha( pixel ) != 0;
}
class NodeItem: public TQCanvasEllipse
@@ -319,7 +319,7 @@ Main::Main(TQCanvas& c, TQWidget* parent, const char* name, WFlags f) :
file->insertSeparator();
file->insertItem("&Print...", this, SLOT(print()), CTRL+Key_P);
file->insertSeparator();
- file->insertItem("E&xit", qApp, SLOT(quit()), CTRL+Key_Q);
+ file->insertItem("E&xit", tqApp, SLOT(quit()), CTRL+Key_Q);
menu->insertItem("&File", file);
TQPopupMenu* edit = new TQPopupMenu( menu );
@@ -409,9 +409,9 @@ void Main::newView()
{
// Open a new view... have it delete when closed.
Main *m = new Main(canvas, 0, 0, WDestructiveClose);
- qApp->setMainWidget(m);
+ tqApp->setMainWidget(m);
m->show();
- qApp->setMainWidget(0);
+ tqApp->setMainWidget(0);
}
void Main::clear()
diff --git a/examples/canvas/main.cpp b/examples/canvas/main.cpp
index 4a4c4eff6..92c720d7b 100644
--- a/examples/canvas/main.cpp
+++ b/examples/canvas/main.cpp
@@ -36,7 +36,7 @@ int main(int argc, char** argv)
else
m.showMaximized();
- TQObject::connect( qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()) );
+ TQObject::connect( tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit()) );
return app.exec();
}
diff --git a/examples/canvas/makeimg.cpp b/examples/canvas/makeimg.cpp
index bc1da57dd..acb90dbde 100644
--- a/examples/canvas/makeimg.cpp
+++ b/examples/canvas/makeimg.cpp
@@ -13,19 +13,19 @@ static inline int blendComponent( int v, int av, int s, int as )
static inline TQRgb blendShade( TQRgb v, TQRgb s )
{
//pick a number: shadow is 1/3 of object
- int as = qAlpha(s)/3;
- int av = qAlpha(v);
+ int as = tqAlpha(s)/3;
+ int av = tqAlpha(v);
if ( as == 0 || av == 255 )
return v;
int a = as + av -(as*av)/255;
- int r = blendComponent( qRed(v),av, qRed(s), as)/a;
- int g = blendComponent( qGreen(v),av, qGreen(s), as)/a;
- int b = blendComponent( qBlue(v),av, qBlue(s), as)/a;
+ int r = blendComponent( tqRed(v),av, tqRed(s), as)/a;
+ int g = blendComponent( tqGreen(v),av, tqGreen(s), as)/a;
+ int b = blendComponent( tqBlue(v),av, tqBlue(s), as)/a;
- return qRgba(r,g,b,a);
+ return tqRgba(r,g,b,a);
}
int main( int*, char**)
@@ -44,9 +44,9 @@ int main( int*, char**)
uint *line = (uint*)img->scanLine( y );
for ( int x = 0; x < w; x++ ) {
uint pixel = line[x];
- int r = qRed(pixel);
- int g = qGreen(pixel);
- int b = qBlue(pixel);
+ int r = tqRed(pixel);
+ int g = tqGreen(pixel);
+ int b = tqBlue(pixel);
int min = TQMIN( r, TQMIN( g, b ) );
int max = TQMAX( r, TQMAX( g, b ) );
r -= min;
@@ -59,7 +59,7 @@ int main( int*, char**)
}
int a = 255-min;
a -= (max-min)/3; //hack more transparency for colors.
- line[x] = qRgba( r, g, b, a );
+ line[x] = tqRgba( r, g, b, a );
}
}
#endif
@@ -77,13 +77,13 @@ int main( int*, char**)
for ( int x = 0; x < w; x++ ) {
TQRgb shader = img->pixel( x, y );
- int as = qAlpha(shader)/3;
+ int as = tqAlpha(shader)/3;
- int r = (qRed(shader)*(255-as))/255;
- int g = (qGreen(shader)*(255-as))/255;
- int b = (qBlue(shader)*(255-as))/255;
+ int r = (tqRed(shader)*(255-as))/255;
+ int g = (tqGreen(shader)*(255-as))/255;
+ int b = (tqBlue(shader)*(255-as))/255;
- img2->setPixel( x, y, qRgba(r,g,b,as) );
+ img2->setPixel( x, y, tqRgba(r,g,b,as) );
}
}
diff --git a/examples/chart/chartform.cpp b/examples/chart/chartform.cpp
index b804a1f59..c9106dc3b 100644
--- a/examples/chart/chartform.cpp
+++ b/examples/chart/chartform.cpp
@@ -368,7 +368,7 @@ void ChartForm::fileQuit()
{
if ( okToClear() ) {
saveOptions();
- qApp->exit( 0 );
+ tqApp->exit( 0 );
}
}
diff --git a/examples/demo/frame.cpp b/examples/demo/frame.cpp
index 2c7152b5d..0cd5006a3 100644
--- a/examples/demo/frame.cpp
+++ b/examples/demo/frame.cpp
@@ -132,10 +132,10 @@ void Frame::setStyle( const TQString& style )
void Frame::updateTranslators()
{
if ( !qt_translator ) {
- qt_translator = new TQTranslator( qApp );
- translator = new TQTranslator( qApp );
- qApp->installTranslator( qt_translator );
- qApp->installTranslator( translator );
+ qt_translator = new TQTranslator( tqApp );
+ translator = new TQTranslator( tqApp );
+ tqApp->installTranslator( qt_translator );
+ tqApp->installTranslator( translator );
}
TQString base = TQDir("../../translations").absPath();
diff --git a/examples/demo/i18n/i18n.cpp b/examples/demo/i18n/i18n.cpp
index 1fba89252..925fdf139 100644
--- a/examples/demo/i18n/i18n.cpp
+++ b/examples/demo/i18n/i18n.cpp
@@ -114,14 +114,14 @@ void I18nDemo::newSlot(int id)
}
if (lastwrapper) {
- qApp->removeTranslator(&lastwrapper->translator);
+ tqApp->removeTranslator(&lastwrapper->translator);
lastwrapper = 0;
}
Wrapper *wrapper = new Wrapper(workspace, windowIdNumber);
wrapper->translator.load(qmfile, ".");
- qApp->installTranslator(&wrapper->translator);
+ tqApp->installTranslator(&wrapper->translator);
connect(wrapper, SIGNAL(destroyed()), SLOT(wrapperDead()));
wrapper->setCaption(tr("--language--"));
@@ -139,7 +139,7 @@ void I18nDemo::newSlot(int id)
"<p>See <tt>http://www.trolltech.com/qt/</tt> for more "
"information.</p>").arg(TQT_VERSION_STR));
- qApp->removeTranslator(&wrapper->translator);
+ tqApp->removeTranslator(&wrapper->translator);
te->show();
wrapper->show();
@@ -173,7 +173,7 @@ void I18nDemo::windowSlot(int id)
void I18nDemo::windowActivated(TQWidget *w)
{
if (lastwrapper) {
- qApp->removeTranslator(&lastwrapper->translator);
+ tqApp->removeTranslator(&lastwrapper->translator);
windowMenu->setItemChecked(lastwrapper->id, FALSE);
}
@@ -221,7 +221,7 @@ void I18nDemo::wrapperDead()
Wrapper *w = (Wrapper *) sender();
if (w == lastwrapper) {
- qApp->removeTranslator(&w->translator);
+ tqApp->removeTranslator(&w->translator);
lastwrapper = 0;
}
@@ -240,7 +240,7 @@ void I18nDemo::showEvent(TQShowEvent *)
if (! lastwrapper)
return;
- qApp->installTranslator(&lastwrapper->translator);
+ tqApp->installTranslator(&lastwrapper->translator);
}
@@ -249,5 +249,5 @@ void I18nDemo::hideEvent(TQHideEvent *)
if (! lastwrapper)
return;
- qApp->removeTranslator(&lastwrapper->translator);
+ tqApp->removeTranslator(&lastwrapper->translator);
}
diff --git a/examples/demo/main.cpp b/examples/demo/main.cpp
index 295847ac5..d2d86ec3e 100644
--- a/examples/demo/main.cpp
+++ b/examples/demo/main.cpp
@@ -59,7 +59,7 @@
static void qdemo_set_caption( CategoryInterface *c, int i )
{
- TQWidget *w = qApp->mainWidget();
+ TQWidget *w = tqApp->mainWidget();
if ( !w )
return;
TQString title = Frame::tr( "TQt Demo Collection" );
diff --git a/examples/demo/textdrawing/textedit.cpp b/examples/demo/textdrawing/textedit.cpp
index c17aa5084..d76f16a0e 100644
--- a/examples/demo/textdrawing/textedit.cpp
+++ b/examples/demo/textdrawing/textedit.cpp
@@ -316,7 +316,7 @@ void TextEdit::fileClose()
void TextEdit::fileExit()
{
- qApp->quit();
+ tqApp->quit();
}
void TextEdit::editUndo()
diff --git a/examples/desktop/desktop.cpp b/examples/desktop/desktop.cpp
index 4831efe59..330c6ad35 100644
--- a/examples/desktop/desktop.cpp
+++ b/examples/desktop/desktop.cpp
@@ -121,7 +121,7 @@ void rotate()
const int h = 64;
TQImage image( w, h, 8, 128 ); // create image
for ( i=0; i<128; i++ ) // build color table
- image.setColor( i, qRgb(i,0,0) );
+ image.setColor( i, tqRgb(i,0,0) );
for ( int y=0; y<h; y++ ) { // set image pixels
uchar *p = image.scanLine(y);
for ( int x=0; x<w; x++ )
@@ -261,7 +261,7 @@ void desktopWidget( const char *s = "Trolltech" )
{
DesktopWidget *t = new DesktopWidget(s);
t->update();
- qApp->exec();
+ tqApp->exec();
delete t;
}
@@ -269,7 +269,7 @@ void desktopText( const char *s = "Trolltech" )
{
const int border = 20;
- TQColor c1 = qApp->palette().inactive().background();
+ TQColor c1 = tqApp->palette().inactive().background();
TQColor c2 = c1.light(104);
TQColor c3 = c1.dark(106);
@@ -280,8 +280,8 @@ void desktopText( const char *s = "Trolltech" )
TQRect r = p.fontMetrics().boundingRect( s );
p.end();
- int appWidth = qApp->desktop()->width();
- int appHeight = qApp->desktop()->height();
+ int appWidth = tqApp->desktop()->width();
+ int appHeight = tqApp->desktop()->height();
if ( r.width() > appWidth - border*2 )
r.setWidth( appWidth - border*2 );
if ( r.height() > appHeight - border*2 )
@@ -293,7 +293,7 @@ void desktopText( const char *s = "Trolltech" )
drawShadeText( &p, -r.x() + border, -r.y() + border, s, c2, c3 );
p.end();
- qApp->desktop()->setBackgroundPixmap( pm );
+ tqApp->desktop()->setBackgroundPixmap( pm );
}
//
diff --git a/examples/dragdrop/main.cpp b/examples/dragdrop/main.cpp
index fc5a3e825..2af77d594 100644
--- a/examples/dragdrop/main.cpp
+++ b/examples/dragdrop/main.cpp
@@ -68,6 +68,6 @@ int main( int argc, char ** argv )
mw3.setCaption( "TQt Example - Drag and Drop" );
mw3.show();
- TQObject::connect(qApp,SIGNAL(lastWindowClosed()),qApp,SLOT(quit()));
+ TQObject::connect(tqApp,SIGNAL(lastWindowClosed()),tqApp,SLOT(quit()));
return a.exec();
}
diff --git a/examples/fileiconview/qfileiconview.cpp b/examples/fileiconview/qfileiconview.cpp
index 89cddb440..98442281f 100644
--- a/examples/fileiconview/qfileiconview.cpp
+++ b/examples/fileiconview/qfileiconview.cpp
@@ -554,7 +554,7 @@ void TQtFileIconView::newDirectory()
item->setSelected( TRUE, TRUE );
setCurrentItem( item );
repaintItem( item );
- qApp->processEvents();
+ tqApp->processEvents();
item->rename();
}
setAutoArrange( TRUE );
diff --git a/examples/helpviewer/helpwindow.cpp b/examples/helpviewer/helpwindow.cpp
index 053a54ff0..724e1ed4a 100644
--- a/examples/helpviewer/helpwindow.cpp
+++ b/examples/helpviewer/helpwindow.cpp
@@ -66,7 +66,7 @@ HelpWindow::HelpWindow( const TQString& home_, const TQString& _path,
file->insertItem( tr("&Print"), this, SLOT( print() ), CTRL+Key_P );
file->insertSeparator();
file->insertItem( tr("&Close"), this, SLOT( close() ), CTRL+Key_Q );
- file->insertItem( tr("E&xit"), qApp, SLOT( closeAllWindows() ), CTRL+Key_X );
+ file->insertItem( tr("E&xit"), tqApp, SLOT( closeAllWindows() ), CTRL+Key_X );
// The same three icons are used twice each.
TQIconSet icon_back( TQPixmap("back.xpm") );
diff --git a/examples/i18n/main.cpp b/examples/i18n/main.cpp
index fdff78d09..e43634c46 100644
--- a/examples/i18n/main.cpp
+++ b/examples/i18n/main.cpp
@@ -71,7 +71,7 @@ MyWidget* showLang(TQString lang)
static TQTranslator *translator = 0;
- qApp->setPalette(TQPalette(TQColor(220-rand()%64,220-rand()%64,220-rand()%64)));
+ tqApp->setPalette(TQPalette(TQColor(220-rand()%64,220-rand()%64,220-rand()%64)));
lang = "mywidget_" + lang + ".qm";
TQFileInfo fi( lang );
@@ -83,12 +83,12 @@ MyWidget* showLang(TQString lang)
return 0;
}
if ( translator ) {
- qApp->removeTranslator( translator );
+ tqApp->removeTranslator( translator );
delete translator;
}
translator = new TQTranslator( 0 );
translator->load( lang, "." );
- qApp->installTranslator( translator );
+ tqApp->installTranslator( translator );
MyWidget *m = new MyWidget;
m->setCaption("TQt Example - i18n - " + m->caption() );
return m;
@@ -126,7 +126,7 @@ int main( int argc, char** argv )
r = dlg.exec();
}
if ( r ) {
- TQRect screen = qApp->desktop()->availableGeometry();
+ TQRect screen = tqApp->desktop()->availableGeometry();
bool tight = screen.width() < 1024;
int x=screen.left()+5;
int y=screen.top()+25;
@@ -135,7 +135,7 @@ int main( int argc, char** argv )
MyWidget* w = showLang((const char*)qm[i]);
if( w == 0 ) exit( 0 );
- TQObject::connect(w, SIGNAL(closed()), qApp, SLOT(quit()));
+ TQObject::connect(w, SIGNAL(closed()), tqApp, SLOT(quit()));
w->setGeometry(x,y,197,356);
w->show();
if ( tight ) {
diff --git a/examples/i18n/mywidget.cpp b/examples/i18n/mywidget.cpp
index 4135054f0..77cce33fd 100644
--- a/examples/i18n/mywidget.cpp
+++ b/examples/i18n/mywidget.cpp
@@ -32,7 +32,7 @@ MyWidget::MyWidget( TQWidget* parent, const char* name )
setCentralWidget(central);
TQPopupMenu* file = new TQPopupMenu(this);
- file->insertItem( tr("E&xit"), qApp, SLOT(quit()),
+ file->insertItem( tr("E&xit"), tqApp, SLOT(quit()),
TQAccel::stringToKey(tr("Ctrl+Q")) );
menuBar()->insertItem( tr("&File"), file );
diff --git a/examples/layout/layout.cpp b/examples/layout/layout.cpp
index 87bfde22d..e40f96bec 100644
--- a/examples/layout/layout.cpp
+++ b/examples/layout/layout.cpp
@@ -36,7 +36,7 @@ ExampleWidget::ExampleWidget( TQWidget *parent, const char *name )
menubar->setSeparator( TQMenuBar::InWindowsStyle );
TQPopupMenu* popup;
popup = new TQPopupMenu( this );
- popup->insertItem( "&Quit", qApp, SLOT(quit()) );
+ popup->insertItem( "&Quit", tqApp, SLOT(quit()) );
menubar->insertItem( "&File", popup );
// ...and tell the layout about it.
diff --git a/examples/life/lifedlg.cpp b/examples/life/lifedlg.cpp
index c1c3cce08..c1be353b7 100644
--- a/examples/life/lifedlg.cpp
+++ b/examples/life/lifedlg.cpp
@@ -55,7 +55,7 @@ LifeDialog::LifeDialog( int scale, TQWidget * parent, const char * name )
life->move( SIDEBORDER, TOPBORDER );
- connect( qb, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( qb, SIGNAL(clicked()), tqApp, SLOT(quit()) );
qb->setGeometry( SIDEBORDER, SIDEBORDER, qb->sizeHint().width(), 25 );
timer = new LifeTimer( this );
@@ -130,8 +130,8 @@ LifeDialog::LifeDialog( int scale, TQWidget * parent, const char * name )
s = life->sizeIncrement();
setSizeIncrement( s.width(), s.height() );
- resize( TQMIN(512, qApp->desktop()->width()),
- TQMIN(480, qApp->desktop()->height()) );
+ resize( TQMIN(512, tqApp->desktop()->width()),
+ TQMIN(480, tqApp->desktop()->height()) );
}
diff --git a/examples/mdi/application.cpp b/examples/mdi/application.cpp
index 028bab26f..1b8604f58 100644
--- a/examples/mdi/application.cpp
+++ b/examples/mdi/application.cpp
@@ -107,7 +107,7 @@ ApplicationWindow::ApplicationWindow()
#endif
file->insertSeparator();
file->insertItem( "&Close", this, SLOT(closeWindow()), CTRL+Key_W );
- file->insertItem( "&Quit", qApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( "&Quit", tqApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
windowsMenu = new TQPopupMenu( this );
windowsMenu->setCheckable( TRUE );
diff --git a/examples/menu/menu.cpp b/examples/menu/menu.cpp
index 124601720..14e1b583b 100644
--- a/examples/menu/menu.cpp
+++ b/examples/menu/menu.cpp
@@ -137,7 +137,7 @@ MenuExample::MenuExample( TQWidget *parent, const char *name )
file->insertSeparator();
file->insertItem( "&Print", print, CTRL+Key_P );
file->insertSeparator();
- file->insertItem( "E&xit", qApp, SLOT(quit()), CTRL+Key_Q );
+ file->insertItem( "E&xit", tqApp, SLOT(quit()), CTRL+Key_Q );
TQPopupMenu *edit = new TQPopupMenu( this );
TQ_CHECK_PTR( edit );
diff --git a/examples/movies/main.cpp b/examples/movies/main.cpp
index 93fbeb438..da2b0b9ed 100644
--- a/examples/movies/main.cpp
+++ b/examples/movies/main.cpp
@@ -251,7 +251,7 @@ void MovieStarter::startMovie(const TQString& filename)
void MovieStarter::done( int r )
{
if (r != Accepted)
- qApp->quit(); // end on Cancel
+ tqApp->quit(); // end on Cancel
setResult( r );
// And don't hide.
@@ -276,7 +276,7 @@ int main(int argc, char **argv)
(void)new MovieScreen(argv[arg], TQMovie(argv[arg]), 0, 0,
TQt::WDestructiveClose);
}
- TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
+ TQObject::connect(tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit()));
} else {
// "GUI" mode - open a chooser for movies
//
diff --git a/examples/network/clientserver/client/client.cpp b/examples/network/clientserver/client/client.cpp
index 26daf93b0..7d9ba68e6 100644
--- a/examples/network/clientserver/client/client.cpp
+++ b/examples/network/clientserver/client/client.cpp
@@ -34,7 +34,7 @@ public:
connect( send, SIGNAL(clicked()), SLOT(sendToServer()) );
connect( close, SIGNAL(clicked()), SLOT(closeConnection()) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
// create the socket and connect various of its signals
socket = new TQSocket( this );
diff --git a/examples/network/clientserver/server/server.cpp b/examples/network/clientserver/server/server.cpp
index c7644b107..fa6f83acb 100644
--- a/examples/network/clientserver/server/server.cpp
+++ b/examples/network/clientserver/server/server.cpp
@@ -122,7 +122,7 @@ public:
connect( server, SIGNAL(newConnect(ClientSocket*)),
SLOT(newConnect(ClientSocket*)) );
- connect( quit, SIGNAL(clicked()), qApp,
+ connect( quit, SIGNAL(clicked()), tqApp,
SLOT(quit()) );
}
diff --git a/examples/network/httpd/httpd.cpp b/examples/network/httpd/httpd.cpp
index 3c8b94b38..827d5cdb4 100644
--- a/examples/network/httpd/httpd.cpp
+++ b/examples/network/httpd/httpd.cpp
@@ -103,7 +103,7 @@ public:
connect( httpd, SIGNAL(newConnect()), SLOT(newConnect()) );
connect( httpd, SIGNAL(endConnect()), SLOT(endConnect()) );
connect( httpd, SIGNAL(wroteToClient()), SLOT(wroteToClient()) );
- connect( quit, SIGNAL(pressed()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(pressed()), tqApp, SLOT(quit()) );
}
~HttpInfo()
diff --git a/examples/network/infoprotocol/infoclient/client.cpp b/examples/network/infoprotocol/infoclient/client.cpp
index 58105a518..7bff123b4 100644
--- a/examples/network/infoprotocol/infoclient/client.cpp
+++ b/examples/network/infoprotocol/infoclient/client.cpp
@@ -28,7 +28,7 @@ ClientInfo::ClientInfo( TQWidget *parent, const char *name ) :
connect( infoList, SIGNAL(selected(const TQString&)), SLOT(selectItem(const TQString&)) );
connect( btnConnect, SIGNAL(clicked()), SLOT(connectToServer()) );
connect( btnBack, SIGNAL(clicked()), SLOT(stepBack()) );
- connect( btnQuit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( btnQuit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
}
diff --git a/examples/network/infoprotocol/infoserver/server.cpp b/examples/network/infoprotocol/infoserver/server.cpp
index 0402f6348..116ac0cbb 100644
--- a/examples/network/infoprotocol/infoserver/server.cpp
+++ b/examples/network/infoprotocol/infoserver/server.cpp
@@ -23,7 +23,7 @@ ServerInfo::ServerInfo( Q_UINT16 port, TQWidget *parent, const char *name ) :
{
SimpleServer *server = new SimpleServer( port, this, "simple server" );
connect( server, SIGNAL(newConnect()), SLOT(newConnect()) );
- connect( btnQuit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( btnQuit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
}
void ServerInfo::newConnect()
diff --git a/examples/network/infoprotocol/infourlclient/client.cpp b/examples/network/infoprotocol/infourlclient/client.cpp
index 6ae2c72fd..992880dd3 100644
--- a/examples/network/infoprotocol/infourlclient/client.cpp
+++ b/examples/network/infoprotocol/infourlclient/client.cpp
@@ -22,7 +22,7 @@ ClientInfo::ClientInfo( TQWidget *parent, const char *name ) :
ClientInfoBase( parent, name )
{
connect( btnOpen, SIGNAL(clicked()), SLOT(downloadFile()) );
- connect( btnQuit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( btnQuit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
connect( &op, SIGNAL( data( const TQByteArray &, TQNetworkOperation * ) ),
this, SLOT( newData( const TQByteArray & ) ) );
}
diff --git a/examples/network/mail/smtp.cpp b/examples/network/mail/smtp.cpp
index 68c2aa4f6..43a2cf249 100644
--- a/examples/network/mail/smtp.cpp
+++ b/examples/network/mail/smtp.cpp
@@ -116,7 +116,7 @@ void Smtp::readyRead()
return;
} else {
// something broke.
- TQMessageBox::warning( qApp->activeWindow(),
+ TQMessageBox::warning( tqApp->activeWindow(),
tr( "TQt Mail Example" ),
tr( "Unexpected reply from SMTP server:\n\n" ) +
response );
diff --git a/examples/opengl/box/globjwin.cpp b/examples/opengl/box/globjwin.cpp
index ed40f9ec0..9176fe4bd 100644
--- a/examples/opengl/box/globjwin.cpp
+++ b/examples/opengl/box/globjwin.cpp
@@ -25,7 +25,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
// Create a menu
TQPopupMenu *file = new TQPopupMenu( this );
- file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
+ file->insertItem( "Exit", tqApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );
diff --git a/examples/opengl/glpixmap/globjwin.cpp b/examples/opengl/glpixmap/globjwin.cpp
index 1309207b0..59b6c244c 100644
--- a/examples/opengl/glpixmap/globjwin.cpp
+++ b/examples/opengl/glpixmap/globjwin.cpp
@@ -46,7 +46,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
insertMenuItemId = file->insertItem( "Insert Pixmap Here", this,
SLOT(makePixmapForMenu()) );
file->insertSeparator();
- file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
+ file->insertItem( "Exit", tqApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );
diff --git a/examples/opengl/overlay/globjwin.cpp b/examples/opengl/overlay/globjwin.cpp
index 0c79cd6a9..2b3761b12 100644
--- a/examples/opengl/overlay/globjwin.cpp
+++ b/examples/opengl/overlay/globjwin.cpp
@@ -22,7 +22,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
{
// Create a menu
TQPopupMenu *file = new TQPopupMenu( this );
- file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
+ file->insertItem( "Exit", tqApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );
@@ -39,7 +39,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
// Check if we obtained an overlay
if ( !c->format().hasOverlay() ) {
- TQMessageBox::warning( 0, qApp->argv()[0],
+ TQMessageBox::warning( 0, tqApp->argv()[0],
"Failed to get an OpenGL overlay",
"OK" );
}
diff --git a/examples/opengl/overlay/main.cpp b/examples/opengl/overlay/main.cpp
index ca1ec488c..22e367b4d 100644
--- a/examples/opengl/overlay/main.cpp
+++ b/examples/opengl/overlay/main.cpp
@@ -37,7 +37,7 @@ int main( int argc, char **argv )
// Check for existence of overlays
if ( !TQGLFormat::hasOpenGLOverlays() ) {
- TQMessageBox::critical( 0, qApp->argv()[0],
+ TQMessageBox::critical( 0, tqApp->argv()[0],
"This system does not support OpenGL overlays",
"Exit" );
return 1;
diff --git a/examples/opengl/overlay_x11/main.cpp b/examples/opengl/overlay_x11/main.cpp
index c96e3d9b0..45d3a0ea4 100644
--- a/examples/opengl/overlay_x11/main.cpp
+++ b/examples/opengl/overlay_x11/main.cpp
@@ -77,7 +77,7 @@ TQColor findOverlayTransparentColor()
for ( uint i = 0; i < nItems/4; i++ ) {
if ( (VisualID)overlayProp[i].visual == XVisualIDFromVisual(appVisual)
&& overlayProp[i].type == 1 )
- return TQColor( qRgb( 1, 2, 3 ), overlayProp[i].value );
+ return TQColor( tqRgb( 1, 2, 3 ), overlayProp[i].value );
}
qWarning( "Default visual is not in overlay plane" );
diff --git a/examples/opengl/sharedbox/globjwin.cpp b/examples/opengl/sharedbox/globjwin.cpp
index a50573bb8..d95482ff2 100644
--- a/examples/opengl/sharedbox/globjwin.cpp
+++ b/examples/opengl/sharedbox/globjwin.cpp
@@ -26,7 +26,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
TQPopupMenu *file = new TQPopupMenu( this );
file->insertItem( "Delete Left TQGLWidget", this,
SLOT(deleteFirstWidget()) );
- file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
+ file->insertItem( "Exit", tqApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );
diff --git a/examples/opengl/texture/globjwin.cpp b/examples/opengl/texture/globjwin.cpp
index a6a2e6c04..b02d0d171 100644
--- a/examples/opengl/texture/globjwin.cpp
+++ b/examples/opengl/texture/globjwin.cpp
@@ -36,7 +36,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
file->insertItem( "Toggle Animation", c, SLOT(toggleAnimation()),
CTRL+Key_A );
file->insertSeparator();
- file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
+ file->insertItem( "Exit", tqApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );
diff --git a/examples/process/process.cpp b/examples/process/process.cpp
index 0ff879ace..aceb71ccb 100644
--- a/examples/process/process.cpp
+++ b/examples/process/process.cpp
@@ -41,7 +41,7 @@ UicManager::UicManager()
output = new TQTextView( this );
quitButton = new TQPushButton( tr("Quit"), this );
connect( quitButton, SIGNAL(clicked()),
- qApp, SLOT(quit()) );
+ tqApp, SLOT(quit()) );
resize( 500, 500 );
// TQProcess related code
diff --git a/examples/progress/progress.cpp b/examples/progress/progress.cpp
index 548871708..3ed6beee9 100644
--- a/examples/progress/progress.cpp
+++ b/examples/progress/progress.cpp
@@ -151,7 +151,7 @@ public:
file->insertItem( drawItemText(i), i );
connect( menubar, SIGNAL(activated(int)), this, SLOT(doMenuItem(int)) );
file->insertSeparator();
- file->insertItem( "Quit", qApp, SLOT(quit()) );
+ file->insertItem( "Quit", tqApp, SLOT(quit()) );
options = new TQPopupMenu();
TQ_CHECK_PTR( options );
diff --git a/examples/qmag/qmag.cpp b/examples/qmag/qmag.cpp
index 34504300c..9753748e7 100644
--- a/examples/qmag/qmag.cpp
+++ b/examples/qmag/qmag.cpp
@@ -128,7 +128,7 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
quitButton = new TQPushButton( this );
TQ_CHECK_PTR(quitButton);
- connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quitButton, SIGNAL(clicked()), tqApp, SLOT(quit()) );
quitButton->setText( "Quit" );
quitButton->setGeometry( multiSaveButton->geometry().right() + 2, 2,
10+quitButton->fontMetrics().width("Quit"), 20 );
@@ -334,8 +334,8 @@ void MagWidget::mouseMoveEvent( TQMouseEvent *e )
{
TQRgb px = image.pixel(x,y);
pixelinfo.sprintf(" %3d,%3d,%3d #%02x%02x%02x",
- qRed(px), qGreen(px), qBlue(px),
- qRed(px), qGreen(px), qBlue(px));
+ tqRed(px), tqGreen(px), tqBlue(px),
+ tqRed(px), tqGreen(px), tqBlue(px));
}
TQString label;
label.sprintf( "x=%d, y=%d %s",
diff --git a/examples/qwerty/main.cpp b/examples/qwerty/main.cpp
index 01ab2a47d..c5b29d70a 100644
--- a/examples/qwerty/main.cpp
+++ b/examples/qwerty/main.cpp
@@ -16,8 +16,8 @@ int main( int argc, char **argv )
TQApplication a( argc, argv );
- bool isSmall = qApp->desktop()->size().width() < 450
- || qApp->desktop()->size().height() < 450;
+ bool isSmall = tqApp->desktop()->size().width() < 450
+ || tqApp->desktop()->size().height() < 450;
int i;
for ( i= argc <= 1 ? 0 : 1; i<argc; i++ ) {
diff --git a/examples/qwerty/qwerty.cpp b/examples/qwerty/qwerty.cpp
index 4d7911271..5f045448f 100644
--- a/examples/qwerty/qwerty.cpp
+++ b/examples/qwerty/qwerty.cpp
@@ -52,7 +52,7 @@ Editor::Editor( TQWidget * parent , const char * name )
#endif
file->insertSeparator();
file->insertItem( "&Close", this, SLOT(close()),ALT+Key_W );
- file->insertItem( "&Quit", qApp, SLOT(closeAllWindows()), ALT+Key_Q );
+ file->insertItem( "&Quit", tqApp, SLOT(closeAllWindows()), ALT+Key_Q );
connect( save_as, SIGNAL(activated(int)), this, SLOT(saveAsEncoding(int)) );
connect( open_as, SIGNAL(activated(int)), this, SLOT(openAsEncoding(int)) );
@@ -130,8 +130,8 @@ void Editor::rebuildCodecList()
void Editor::newDoc()
{
Editor *ed = new Editor;
- if ( qApp->desktop()->size().width() < 450
- || qApp->desktop()->size().height() < 450 ) {
+ if ( tqApp->desktop()->size().width() < 450
+ || tqApp->desktop()->size().height() < 450 ) {
ed->showMaximized();
} else {
ed->resize( 400, 400 );
diff --git a/examples/richtext/richtext.cpp b/examples/richtext/richtext.cpp
index ec549a3ad..066af1f36 100644
--- a/examples/richtext/richtext.cpp
+++ b/examples/richtext/richtext.cpp
@@ -100,7 +100,7 @@ MyRichText::MyRichText( TQWidget *parent, const char *name )
bPrev->setEnabled( FALSE );
- connect( bClose, SIGNAL( clicked() ), qApp, SLOT( quit() ) );
+ connect( bClose, SIGNAL( clicked() ), tqApp, SLOT( quit() ) );
connect( bPrev, SIGNAL( clicked() ), this, SLOT( prev() ) );
connect( bNext, SIGNAL( clicked() ), this, SLOT( next() ) );
diff --git a/examples/rot13/rot13.cpp b/examples/rot13/rot13.cpp
index 14b1e79a4..e3d17d87f 100644
--- a/examples/rot13/rot13.cpp
+++ b/examples/rot13/rot13.cpp
@@ -23,7 +23,7 @@ Rot13::Rot13()
TQPushButton * quit = new TQPushButton( "&Quit", this );
quit->setFocusPolicy( NoFocus );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
TQGridLayout * l = new TQGridLayout( this, 2, 2, 5 );
l->addWidget( left, 0, 0 );
diff --git a/examples/scribble/scribble.cpp b/examples/scribble/scribble.cpp
index 520cef7fd..03a3cf3e0 100644
--- a/examples/scribble/scribble.cpp
+++ b/examples/scribble/scribble.cpp
@@ -33,7 +33,7 @@ Canvas::Canvas( TQWidget *parent, const char *name )
mousePressed( FALSE ), buffer( width(), height() )
{
- if ((qApp->argc() > 0) && !buffer.load(qApp->argv()[1]))
+ if ((tqApp->argc() > 0) && !buffer.load(tqApp->argv()[1]))
buffer.fill( colorGroup().base() );
setBackgroundMode( TQWidget::PaletteBase );
#ifndef QT_NO_CURSOR
diff --git a/examples/scrollview/scrollview.cpp b/examples/scrollview/scrollview.cpp
index e7db2d2fc..f44853ddc 100644
--- a/examples/scrollview/scrollview.cpp
+++ b/examples/scrollview/scrollview.cpp
@@ -43,7 +43,7 @@ public:
for (int y=0; y<2000-h; y+=h+10) {
if (y == 0) {
TQButton* q=new TQPushButton("Quit", this);
- connect(q, SIGNAL(clicked()), qApp, SLOT(quit()));
+ connect(q, SIGNAL(clicked()), tqApp, SLOT(quit()));
} else {
TQString str;
if ( b > 0 ) {
@@ -207,7 +207,7 @@ public:
TQPopupMenu* file = new TQPopupMenu( menubar );
TQ_CHECK_PTR( file );
menubar->insertItem( "&File", file );
- file->insertItem( "Quit", qApp, SLOT(quit()) );
+ file->insertItem( "Quit", tqApp, SLOT(quit()) );
vp_options = new TQPopupMenu( menubar );
TQ_CHECK_PTR( vp_options );
@@ -433,7 +433,7 @@ int main( int argc, char **argv )
ve3.setCaption("TQt Example - Scrollviews");
ve3.show();
- TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
+ TQObject::connect(tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit()));
return a.exec();
}
diff --git a/examples/showimg/main.cpp b/examples/showimg/main.cpp
index 2b985a419..1d68c04b3 100644
--- a/examples/showimg/main.cpp
+++ b/examples/showimg/main.cpp
@@ -50,7 +50,7 @@ int main( int argc, char **argv )
}
}
- TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
+ TQObject::connect(tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit()));
return a.exec();
}
diff --git a/examples/showimg/showimg.cpp b/examples/showimg/showimg.cpp
index 526d0debb..579dbb514 100644
--- a/examples/showimg/showimg.cpp
+++ b/examples/showimg/showimg.cpp
@@ -57,7 +57,7 @@ ImageViewer::ImageViewer( TQWidget *parent, const char *name, int wFlags )
si = file->insertItem( "Save image", saveimage );
sp = file->insertItem( "Save pixmap", savepixmap );
file->insertSeparator();
- file->insertItem( "E&xit", qApp, SLOT(quit()), CTRL+Key_Q );
+ file->insertItem( "E&xit", tqApp, SLOT(quit()), CTRL+Key_Q );
edit = new TQPopupMenu( menubar );
menubar->insertItem( "&Edit", edit );
diff --git a/examples/sound/sound.cpp b/examples/sound/sound.cpp
index 8f8ac6c51..f2808e902 100644
--- a/examples/sound/sound.cpp
+++ b/examples/sound/sound.cpp
@@ -50,7 +50,7 @@ SoundPlayer::SoundPlayer() :
file->insertItem("Play 3 and 4 together", this, SLOT(doPlay34()));
file->insertItem("Play all together", this, SLOT(doPlay1234()));
file->insertSeparator();
- file->insertItem("E&xit", qApp, SLOT(quit()));
+ file->insertItem("E&xit", tqApp, SLOT(quit()));
menuBar()->insertItem("&File", file);
}
diff --git a/examples/tabdialog/tabdialog.cpp b/examples/tabdialog/tabdialog.cpp
index 6211ac939..dd2b107f4 100644
--- a/examples/tabdialog/tabdialog.cpp
+++ b/examples/tabdialog/tabdialog.cpp
@@ -25,7 +25,7 @@ TabDialog::TabDialog( TQWidget *parent, const char *name, const TQString &_filen
setupTab2();
setupTab3();
- connect( this, SIGNAL( applyButtonPressed() ), qApp, SLOT( quit() ) );
+ connect( this, SIGNAL( applyButtonPressed() ), tqApp, SLOT( quit() ) );
}
void TabDialog::setupTab1()
diff --git a/examples/tablet/canvas.cpp b/examples/tablet/canvas.cpp
index d71a95429..33ea83fad 100644
--- a/examples/tablet/canvas.cpp
+++ b/examples/tablet/canvas.cpp
@@ -23,7 +23,7 @@ Canvas::Canvas( TQWidget *parent, const char *name, WFlags fl )
buffer( width(), height() )
{
- if ((qApp->argc() > 0) && !buffer.load(qApp->argv()[1]))
+ if ((tqApp->argc() > 0) && !buffer.load(tqApp->argv()[1]))
buffer.fill( colorGroup().base() );
setBackgroundMode( TQWidget::PaletteBase );
#ifndef QT_NO_CURSOR
diff --git a/examples/tetrix/qtetrix.cpp b/examples/tetrix/qtetrix.cpp
index 8e7946ad1..dd709c5b0 100644
--- a/examples/tetrix/qtetrix.cpp
+++ b/examples/tetrix/qtetrix.cpp
@@ -172,5 +172,5 @@ void TQTetrix::gameOver()
void TQTetrix::quit()
{
- qApp->quit();
+ tqApp->quit();
}
diff --git a/examples/textedit/textedit.cpp b/examples/textedit/textedit.cpp
index e3441c858..66a3a4972 100644
--- a/examples/textedit/textedit.cpp
+++ b/examples/textedit/textedit.cpp
@@ -40,11 +40,11 @@ TextEdit::TextEdit( TQWidget *parent, const char *name )
this, SLOT( editorChanged( TQWidget * ) ) );
setCentralWidget( tabWidget );
- if ( qApp->argc() == 1 ) {
+ if ( tqApp->argc() == 1 ) {
load( "example.html" );
} else {
- for ( int i = 1; i < qApp->argc(); ++i )
- load( qApp->argv()[ i ] );
+ for ( int i = 1; i < tqApp->argc(); ++i )
+ load( tqApp->argv()[ i ] );
}
}
@@ -315,7 +315,7 @@ void TextEdit::fileClose()
void TextEdit::fileExit()
{
- qApp->quit();
+ tqApp->quit();
}
void TextEdit::editUndo()
diff --git a/examples/themes/themes.cpp b/examples/themes/themes.cpp
index 3cd7e0405..1f5417625 100644
--- a/examples/themes/themes.cpp
+++ b/examples/themes/themes.cpp
@@ -86,7 +86,7 @@ Themes::Themes( TQWidget *parent, const char *name, WFlags f )
}
ag->addTo(style);
style->insertSeparator();
- style->insertItem("&Quit", qApp, SLOT( quit() ), CTRL | Key_Q );
+ style->insertItem("&Quit", tqApp, SLOT( quit() ), CTRL | Key_Q );
TQPopupMenu * help = new TQPopupMenu( this );
menuBar()->insertSeparator();
@@ -95,7 +95,7 @@ Themes::Themes( TQWidget *parent, const char *name, WFlags f )
help->insertItem( "About &TQt", this, SLOT(aboutTQt()));
#ifndef QT_NO_STYLE_WINDOWS
- qApp->setStyle( new NorwegianWoodStyle );
+ tqApp->setStyle( new NorwegianWoodStyle );
#endif
}
@@ -103,20 +103,20 @@ void Themes::makeStyle(const TQString &style)
{
if(style == "Norwegian Wood") {
#ifndef QT_NO_STYLE_WINDOWS
- qApp->setStyle( new NorwegianWoodStyle );
+ tqApp->setStyle( new NorwegianWoodStyle );
#endif
} else if( style == "Metal" ) {
#ifndef QT_NO_STYLE_WINDOWS
- qApp->setStyle( new MetalStyle );
+ tqApp->setStyle( new MetalStyle );
#endif
} else {
- qApp->setStyle(style);
+ tqApp->setStyle(style);
if(style == "Platinum") {
TQPalette p( TQColor( 239, 239, 239 ) );
- qApp->setPalette( p, TRUE );
- qApp->setFont( appFont, TRUE );
+ tqApp->setPalette( p, TRUE );
+ tqApp->setFont( appFont, TRUE );
} else if(style == "Windows") {
- qApp->setFont( appFont, TRUE );
+ tqApp->setFont( appFont, TRUE );
} else if(style == "CDE") {
TQPalette p( TQColor( 75, 123, 130 ) );
p.setColor( TQPalette::Active, TQColorGroup::Base, TQColor( 55, 77, 78 ) );
@@ -137,12 +137,12 @@ void Themes::makeStyle(const TQString &style)
p.setColor( TQPalette::Disabled, TQColorGroup::Foreground, TQt::lightGray );
p.setColor( TQPalette::Disabled, TQColorGroup::Text, TQt::lightGray );
p.setColor( TQPalette::Disabled, TQColorGroup::ButtonText, TQt::lightGray );
- qApp->setPalette( p, TRUE );
- qApp->setFont( TQFont( "times", appFont.pointSize() ), TRUE );
+ tqApp->setPalette( p, TRUE );
+ tqApp->setFont( TQFont( "times", appFont.pointSize() ), TRUE );
} else if(style == "Motif" || style == "MotifPlus") {
TQPalette p( TQColor( 192, 192, 192 ) );
- qApp->setPalette( p, TRUE );
- qApp->setFont( appFont, TRUE );
+ tqApp->setPalette( p, TRUE );
+ tqApp->setFont( appFont, TRUE );
}
}
}
diff --git a/examples/tictac/tictac.cpp b/examples/tictac/tictac.cpp
index 3d0375869..03e4fa276 100644
--- a/examples/tictac/tictac.cpp
+++ b/examples/tictac/tictac.cpp
@@ -324,7 +324,7 @@ TicTacToe::TicTacToe( int boardSize, TQWidget *parent, const char *name )
newGame = new TQPushButton( "Play!", this );
connect( newGame, SIGNAL(clicked()), SLOT(newGameClicked()) );
quit = new TQPushButton( "Quit", this );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
TQHBoxLayout * b = new TQHBoxLayout;
l->addLayout( b );
b->addWidget( newGame );
diff --git a/examples/widgets/main.cpp b/examples/widgets/main.cpp
index a72de7e3f..6d7c217d6 100644
--- a/examples/widgets/main.cpp
+++ b/examples/widgets/main.cpp
@@ -26,7 +26,7 @@ public:
TQStringList styles = TQStyleFactory::keys();
s = (++s)%styles.count();
- qApp->setStyle( styles[ s] );
+ tqApp->setStyle( styles[ s] );
WidgetView::button1Clicked();
}
};
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() );
diff --git a/examples/xform/xform.cpp b/examples/xform/xform.cpp
index 8335660c1..d9632d6e0 100644
--- a/examples/xform/xform.cpp
+++ b/examples/xform/xform.cpp
@@ -287,7 +287,7 @@ void XFormControl::changeMode(int m)
else
rb_pic->setChecked(TRUE);
}
- qApp->flushX();
+ tqApp->flushX();
}
ShowXForm::ShowXForm( const TQFont &initialFont,