summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
commit520c05ef06ce203ad32470730f68402bc7719157 (patch)
tree8d0bb18bbbecb4c837e232848905e5819db84b81
parentb82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff)
downloadtqt3-520c05ef.tar.gz
tqt3-520c05ef.zip
Automated update from qt3
-rw-r--r--ChangeLog.immodule2
-rw-r--r--doc/dnd.doc2
-rw-r--r--doc/html/addressbook-example.html2
-rw-r--r--doc/html/canvas-chart-example.html2
-rw-r--r--doc/html/canvas-example.html10
-rw-r--r--doc/html/chart-chartform-cpp.html2
-rw-r--r--doc/html/clientserver-example.html4
-rw-r--r--doc/html/desktop-example.html12
-rw-r--r--doc/html/fileiconview-example.html2
-rw-r--r--doc/html/helpviewer-example.html2
-rw-r--r--doc/html/httpd-example.html2
-rw-r--r--doc/html/i18n-example.html12
-rw-r--r--doc/html/i18n.html4
-rw-r--r--doc/html/layout-example.html2
-rw-r--r--doc/html/linguist-manual-4.html12
-rw-r--r--doc/html/mail-example.html2
-rw-r--r--doc/html/mdi-example.html2
-rw-r--r--doc/html/menu-example.html2
-rw-r--r--doc/html/motif-customwidget-example.html2
-rw-r--r--doc/html/movies-example.html4
-rw-r--r--doc/html/ntqapplication.html10
-rw-r--r--doc/html/ntqcolor.html4
-rw-r--r--doc/html/ntqfile.html2
-rw-r--r--doc/html/ntqglcolormap.html2
-rw-r--r--doc/html/ntqimage.html2
-rw-r--r--doc/html/ntqprogressdialog.html2
-rw-r--r--doc/html/ntqsplashscreen.html4
-rw-r--r--doc/html/process-example.html2
-rw-r--r--doc/html/progress-example.html2
-rw-r--r--doc/html/qaction-application-example.html2
-rw-r--r--doc/html/qapplication-h.html6
-rw-r--r--doc/html/qcolor-h.html26
-rw-r--r--doc/html/qgfx_qws-h.html8
-rw-r--r--doc/html/qmag-example.html6
-rw-r--r--doc/html/qmessagebox-h.html2
-rw-r--r--doc/html/qwerty-example.html10
-rw-r--r--doc/html/qwindowdefs-h.html2
-rw-r--r--doc/html/richtext-example.html2
-rw-r--r--doc/html/rot-example.html2
-rw-r--r--doc/html/scribble-example.html2
-rw-r--r--doc/html/scrollview-example.html6
-rw-r--r--doc/html/showimg-example.html4
-rw-r--r--doc/html/simple-application-example.html2
-rw-r--r--doc/html/simple-application.html2
-rw-r--r--doc/html/sound-example.html2
-rw-r--r--doc/html/t10-main-cpp.html2
-rw-r--r--doc/html/t11-main-cpp.html2
-rw-r--r--doc/html/t12-main-cpp.html2
-rw-r--r--doc/html/t13-gamebrd-cpp.html2
-rw-r--r--doc/html/t14-gamebrd-cpp.html4
-rw-r--r--doc/html/t7-main-cpp.html2
-rw-r--r--doc/html/t8-main-cpp.html2
-rw-r--r--doc/html/t9-main-cpp.html2
-rw-r--r--doc/html/tabdialog-example.html2
-rw-r--r--doc/html/themes-example.html24
-rw-r--r--doc/html/threads.html4
-rw-r--r--doc/html/tictac-example.html2
-rw-r--r--doc/html/tutorial1-04.html6
-rw-r--r--doc/html/tutorial1-05.html2
-rw-r--r--doc/html/tutorial1-06.html4
-rw-r--r--doc/html/tutorial1-14.html2
-rw-r--r--doc/html/tutorial2-05.html2
-rw-r--r--doc/html/xform-example.html2
-rw-r--r--doc/i18n.doc4
-rw-r--r--doc/man/man3/qapplication.3qt10
-rw-r--r--doc/man/man3/qcolor.3qt30
-rw-r--r--doc/man/man3/qfile.3qt2
-rw-r--r--doc/man/man3/qglcolormap.3qt2
-rw-r--r--doc/man/man3/qimage.3qt16
-rw-r--r--doc/man/man3/qprogressdialog.3qt2
-rw-r--r--doc/man/man3/qsplashscreen.3qt4
-rw-r--r--doc/porting2.doc6
-rw-r--r--doc/threads.doc4
-rw-r--r--doc/tutorial.doc6
-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
-rw-r--r--extensions/nsplugin/src/qnp.cpp18
-rw-r--r--plugins/src/inputmethods/xim/qximinputcontext_x11.cpp4
-rw-r--r--src/dialogs/ntqmessagebox.h2
-rw-r--r--src/dialogs/qcolordialog.cpp34
-rw-r--r--src/dialogs/qdialog.cpp30
-rw-r--r--src/dialogs/qerrormessage.cpp4
-rw-r--r--src/dialogs/qfiledialog.cpp30
-rw-r--r--src/dialogs/qmessagebox.cpp6
-rw-r--r--src/dialogs/qprogressdialog.cpp4
-rw-r--r--src/iconview/qiconview.cpp2
-rw-r--r--src/kernel/ntqapplication.h6
-rw-r--r--src/kernel/ntqcolor.h26
-rw-r--r--src/kernel/ntqwindowdefs.h2
-rw-r--r--src/kernel/qapplication.cpp72
-rw-r--r--src/kernel/qapplication_x11.cpp64
-rw-r--r--src/kernel/qasyncimageio.cpp2
-rw-r--r--src/kernel/qclipboard_x11.cpp6
-rw-r--r--src/kernel/qcolor.cpp48
-rw-r--r--src/kernel/qcolor_x11.cpp18
-rw-r--r--src/kernel/qcursor_x11.cpp2
-rw-r--r--src/kernel/qdnd_x11.cpp26
-rw-r--r--src/kernel/qdragobject.cpp4
-rw-r--r--src/kernel/qevent.cpp2
-rw-r--r--src/kernel/qeventloop.cpp2
-rw-r--r--src/kernel/qeventloop_x11.cpp4
-rw-r--r--src/kernel/qfont.cpp2
-rw-r--r--src/kernel/qfontdatabase.cpp2
-rw-r--r--src/kernel/qimage.cpp228
-rw-r--r--src/kernel/qjpegio.cpp42
-rw-r--r--src/kernel/qlocalfs.cpp4
-rw-r--r--src/kernel/qobject.cpp2
-rw-r--r--src/kernel/qpaintdevice_x11.cpp2
-rw-r--r--src/kernel/qpainter.cpp4
-rw-r--r--src/kernel/qpainter_x11.cpp2
-rw-r--r--src/kernel/qpixmap_x11.cpp56
-rw-r--r--src/kernel/qpngio.cpp36
-rw-r--r--src/kernel/qpsprinter.cpp22
-rw-r--r--src/kernel/qrichtext_p.cpp8
-rw-r--r--src/kernel/qsound_x11.cpp10
-rw-r--r--src/kernel/qtextengine.cpp4
-rw-r--r--src/kernel/qtranslator.cpp14
-rw-r--r--src/kernel/qwidget.cpp56
-rw-r--r--src/kernel/qwidget_x11.cpp18
-rw-r--r--src/moc/moc.y8
-rw-r--r--src/moc/moc_yacc.cpp8
-rw-r--r--src/network/qdns.cpp4
-rw-r--r--src/opengl/qgl_x11.cpp14
-rw-r--r--src/opengl/qglcolormap.cpp14
-rw-r--r--src/sql/qsqldatabase.cpp4
-rw-r--r--src/sql/qsqlmanager_p.cpp28
-rw-r--r--src/styles/qstylefactory.cpp2
-rw-r--r--src/styles/qwindowsstyle.cpp4
-rw-r--r--src/table/qtable.cpp4
-rw-r--r--src/tools/qcomponentfactory.cpp2
-rw-r--r--src/tools/qfile.cpp2
-rw-r--r--src/widgets/qbuttongroup.cpp2
-rw-r--r--src/widgets/qcheckbox.cpp2
-rw-r--r--src/widgets/qcombobox.cpp2
-rw-r--r--src/widgets/qdatetimeedit.cpp8
-rw-r--r--src/widgets/qdockwindow.cpp20
-rw-r--r--src/widgets/qeffects.cpp22
-rw-r--r--src/widgets/qlistbox.cpp2
-rw-r--r--src/widgets/qlistview.cpp6
-rw-r--r--src/widgets/qmenubar.cpp6
-rw-r--r--src/widgets/qpopupmenu.cpp24
-rw-r--r--src/widgets/qpushbutton.cpp4
-rw-r--r--src/widgets/qradiobutton.cpp2
-rw-r--r--src/widgets/qspinbox.cpp2
-rw-r--r--src/widgets/qsplashscreen.cpp4
-rw-r--r--src/widgets/qtabbar.cpp2
-rw-r--r--src/widgets/qtabwidget.cpp2
-rw-r--r--src/widgets/qtextbrowser.cpp6
-rw-r--r--src/widgets/qtextedit.cpp2
-rw-r--r--src/widgets/qtoolbutton.cpp2
-rw-r--r--src/widgets/qtooltip.cpp18
-rw-r--r--src/widgets/qwhatsthis.cpp8
-rw-r--r--src/widgets/qwidgetresizehandler.cpp4
-rw-r--r--src/workspace/qworkspace.cpp24
-rw-r--r--tools/assistant/config.cpp12
-rw-r--r--tools/assistant/helpdialogimpl.cpp6
-rw-r--r--tools/assistant/index.cpp4
-rw-r--r--tools/assistant/mainwindow.ui.h16
-rw-r--r--tools/designer/designer/customwidgeteditorimpl.cpp2
-rw-r--r--tools/designer/designer/formfile.cpp2
-rw-r--r--tools/designer/designer/formwindow.cpp12
-rw-r--r--tools/designer/designer/hierarchyview.cpp2
-rw-r--r--tools/designer/designer/listeditor.ui.h2
-rw-r--r--tools/designer/designer/mainwindow.cpp20
-rw-r--r--tools/designer/designer/mainwindowactions.cpp10
-rw-r--r--tools/designer/designer/menubareditor.cpp2
-rw-r--r--tools/designer/designer/multilineeditorimpl.cpp4
-rw-r--r--tools/designer/designer/outputwindow.cpp2
-rw-r--r--tools/designer/designer/pixmapchooser.cpp12
-rw-r--r--tools/designer/designer/popupmenueditor.cpp2
-rw-r--r--tools/designer/designer/project.cpp2
-rw-r--r--tools/designer/designer/propertyeditor.cpp14
-rw-r--r--tools/designer/designer/resource.cpp4
-rw-r--r--tools/designer/designer/syntaxhighlighter_html.cpp10
-rw-r--r--tools/designer/editor/conf.cpp6
-rw-r--r--tools/designer/examples/addressbook/addressbook.ui.h2
-rw-r--r--tools/designer/examples/multiclip/multiclip.ui.h2
-rw-r--r--tools/designer/examples/richedit/richedit.ui.h2
-rw-r--r--tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp2
-rw-r--r--tools/designer/plugins/glade/glade2ui.cpp2
-rw-r--r--tools/designer/plugins/wizards/main.cpp4
-rw-r--r--tools/designer/shared/globaldefs.h2
-rw-r--r--tools/designer/uilib/qwidgetfactory.cpp8
-rw-r--r--tools/linguist/book/linguist-programmer.leaf6
-rw-r--r--tools/linguist/linguist/msgedit.cpp4
-rw-r--r--tools/linguist/linguist/phrase.cpp2
-rw-r--r--tools/linguist/linguist/trwindow.cpp26
-rw-r--r--tools/linguist/shared/metatranslator.cpp4
-rw-r--r--tools/linguist/tutorial/tt2/mainwindow.cpp2
-rw-r--r--tools/linguist/tutorial/tt3/mainwindow.cpp2
-rw-r--r--tools/makeqpf/main.cpp2
-rw-r--r--tools/qconfig/main.cpp2
-rw-r--r--tools/qtconfig/colorbutton.cpp2
-rw-r--r--tools/qtconfig/mainwindow.cpp4
-rw-r--r--tools/qvfb/qanimationwriter.cpp4
-rw-r--r--tools/qvfb/qvfb.cpp2
-rw-r--r--tools/qvfb/qvfbview.cpp16
-rw-r--r--tutorial/t10/main.cpp2
-rw-r--r--tutorial/t11/main.cpp2
-rw-r--r--tutorial/t12/main.cpp2
-rw-r--r--tutorial/t13/gamebrd.cpp2
-rw-r--r--tutorial/t14/gamebrd.cpp4
-rw-r--r--tutorial/t4/main.cpp2
-rw-r--r--tutorial/t5/main.cpp2
-rw-r--r--tutorial/t6/main.cpp2
-rw-r--r--tutorial/t7/main.cpp2
-rw-r--r--tutorial/t8/main.cpp2
-rw-r--r--tutorial/t9/main.cpp2
264 files changed, 1039 insertions, 1039 deletions
diff --git a/ChangeLog.immodule b/ChangeLog.immodule
index 46a5e9d7..38422046 100644
--- a/ChangeLog.immodule
+++ b/ChangeLog.immodule
@@ -1782,7 +1782,7 @@
excessive invalid QInputContext::unsetFocus().
QWidget::deactivateWidgetCleanup() handles
unfocusInputContext() appropriately via
- qApp->setActiveWindow( 0 ).
+ tqApp->setActiveWindow( 0 ).
2004-06-08 YamaKen <yamaken@bp.iij4u.or.jp>
diff --git a/doc/dnd.doc b/doc/dnd.doc
index 45acf8ad..31fedba4 100644
--- a/doc/dnd.doc
+++ b/doc/dnd.doc
@@ -336,7 +336,7 @@ feedback as the drag progresses, to start timers, to scroll the
window, or whatever is appropriate (don't forget to stop the scrolling
and timers in a dragLeaveEvent() though).
-The QApplication object (available as the \c qApp global) also
+The QApplication object (available as the \c tqApp global) also
provides some drag and drop related functions:
\l{QApplication::setStartDragTime()},
\l{QApplication::setStartDragDistance()}, and their corresponding
diff --git a/doc/html/addressbook-example.html b/doc/html/addressbook-example.html
index 54a26fcd..a1bcc8ef 100644
--- a/doc/html/addressbook-example.html
+++ b/doc/html/addressbook-example.html
@@ -141,7 +141,7 @@ void <a name="f264"></a>ABMainWindow::setupMenuBar()
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( TQPixmap( "fileprint.xpm" ), "Print...", this, SLOT( filePrint() ), CTRL + Key_P );
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Close", this, SLOT( closeWindow() ), CTRL + Key_W );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ), CTRL + Key_Q );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ), CTRL + Key_Q );
}
void <a name="f265"></a>ABMainWindow::setupFileTools()
diff --git a/doc/html/canvas-chart-example.html b/doc/html/canvas-chart-example.html
index 6142313a..fb33afb3 100644
--- a/doc/html/canvas-chart-example.html
+++ b/doc/html/canvas-chart-example.html
@@ -614,7 +614,7 @@ void <a name="f604"></a>ChartForm::fileQuit()
{
if ( okToClear() ) {
saveOptions();
-<a name="x2875"></a> qApp-&gt;<a href="ntqapplication.html#exit">exit</a>( 0 );
+<a name="x2875"></a> tqApp-&gt;<a href="ntqapplication.html#exit">exit</a>( 0 );
}
}
diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html
index 40f6d9c8..c9a0b0c0 100644
--- a/doc/html/canvas-example.html
+++ b/doc/html/canvas-example.html
@@ -214,7 +214,7 @@ bool <a name="f624"></a>ImageItem::hit( const <a href="ntqpoint.html">TQPoint</a
<a name="x2934"></a> if ( !image.<a href="ntqimage.html#valid">valid</a>( ix , iy ) )
return FALSE;
<a name="x2933"></a> TQRgb pixel = image.<a href="ntqimage.html#pixel">pixel</a>( ix, iy );
- return qAlpha( pixel ) != 0;
+ return tqAlpha( pixel ) != 0;
}
class NodeItem: public <a href="qcanvasellipse.html">TQCanvasEllipse</a>
@@ -454,7 +454,7 @@ static TQImage *logoimg;
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Print...", this, SLOT(print()), CTRL+Key_P);
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("E&amp;xit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q);
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("E&amp;xit", tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q);
menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;File", file);
<a href="ntqpopupmenu.html">TQPopupMenu</a>* edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menu );
@@ -544,9 +544,9 @@ void <a name="f627"></a>Main::newView()
{
// Open a new view... have it delete when closed.
Main *m = new Main(canvas, 0, 0, WDestructiveClose);
- qApp-&gt;<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(m);
+ tqApp-&gt;<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(m);
m-&gt;<a href="ntqwidget.html#show">show</a>();
- qApp-&gt;<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(0);
+ tqApp-&gt;<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(0);
}
void <a name="f628"></a>Main::clear()
@@ -922,7 +922,7 @@ int main(int argc, char** argv)
else
<a name="x2968"></a> m.<a href="ntqwidget.html#showMaximized">showMaximized</a>();
- TQObject::<a href="ntqobject.html#connect">connect</a>( qApp, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ TQObject::<a href="ntqobject.html#connect">connect</a>( tqApp, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
return app.<a href="ntqapplication.html#exec">exec</a>();
}
diff --git a/doc/html/chart-chartform-cpp.html b/doc/html/chart-chartform-cpp.html
index 22b65df7..e106621f 100644
--- a/doc/html/chart-chartform-cpp.html
+++ b/doc/html/chart-chartform-cpp.html
@@ -402,7 +402,7 @@ void <a name="f156"></a>ChartForm::fileQuit()
{
if ( okToClear() ) {
saveOptions();
-<a name="x2875"></a> qApp-&gt;<a href="ntqapplication.html#exit">exit</a>( 0 );
+<a name="x2875"></a> tqApp-&gt;<a href="ntqapplication.html#exit">exit</a>( 0 );
}
}
diff --git a/doc/html/clientserver-example.html b/doc/html/clientserver-example.html
index 5753ac9a..93a9f300 100644
--- a/doc/html/clientserver-example.html
+++ b/doc/html/clientserver-example.html
@@ -170,7 +170,7 @@ public:
connect( server, SIGNAL(newConnect(ClientSocket*)),
SLOT(newConnect(ClientSocket*)) );
- connect( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp,
+ connect( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp,
SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
}
@@ -249,7 +249,7 @@ public:
<a name="x792"></a> connect( send, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), SLOT(sendToServer()) );
connect( close, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), SLOT(closeConnection()) );
- connect( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ connect( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
// create the socket and connect various of its signals
socket = new <a href="ntqsocket.html">TQSocket</a>( this );
diff --git a/doc/html/desktop-example.html b/doc/html/desktop-example.html
index 1d778ace..8f245809 100644
--- a/doc/html/desktop-example.html
+++ b/doc/html/desktop-example.html
@@ -163,7 +163,7 @@ void rotate()
const int h = 64;
<a href="ntqimage.html">TQImage</a> image( w, h, 8, 128 ); // create image
for ( i=0; i&lt;128; i++ ) // build color table
-<a name="x1730"></a> image.<a href="ntqimage.html#setColor">setColor</a>( i, qRgb(i,0,0) );
+<a name="x1730"></a> image.<a href="ntqimage.html#setColor">setColor</a>( i, tqRgb(i,0,0) );
for ( int y=0; y&lt;h; y++ ) { // set image pixels
<a name="x1729"></a> uchar *p = image.<a href="ntqimage.html#scanLine">scanLine</a>(y);
for ( int x=0; x&lt;w; x++ )
@@ -303,7 +303,7 @@ void desktopWidget( const char *s = "Trolltech" )
{
DesktopWidget *t = new DesktopWidget(s);
t-&gt;<a href="ntqwidget.html#update">update</a>();
- qApp-&gt;<a href="ntqapplication.html#exec">exec</a>();
+ tqApp-&gt;<a href="ntqapplication.html#exec">exec</a>();
delete t;
}
@@ -311,7 +311,7 @@ void desktopText( const char *s = "Trolltech" )
{
const int border = 20;
-<a name="x1723"></a> <a href="ntqcolor.html">TQColor</a> c1 = qApp-&gt;<a href="ntqapplication.html#palette">palette</a>().inactive().background();
+<a name="x1723"></a> <a href="ntqcolor.html">TQColor</a> c1 = tqApp-&gt;<a href="ntqapplication.html#palette">palette</a>().inactive().background();
<a href="ntqcolor.html">TQColor</a> c2 = c1.<a href="ntqcolor.html#light">light</a>(104);
<a href="ntqcolor.html">TQColor</a> c3 = c1.<a href="ntqcolor.html#dark">dark</a>(106);
@@ -322,8 +322,8 @@ void desktopText( const char *s = "Trolltech" )
<a name="x1738"></a> <a href="ntqrect.html">TQRect</a> r = p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().boundingRect( s );
p.<a href="ntqpainter.html#end">end</a>();
- int appWidth = qApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width();
- int appHeight = qApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height();
+ int appWidth = tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width();
+ int appHeight = tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height();
if ( r.<a href="ntqrect.html#width">width</a>() &gt; appWidth - border*2 )
<a name="x1753"></a> r.<a href="ntqrect.html#setWidth">setWidth</a>( appWidth - border*2 );
if ( r.<a href="ntqrect.html#height">height</a>() &gt; appHeight - border*2 )
@@ -335,7 +335,7 @@ void desktopText( const char *s = "Trolltech" )
drawShadeText( &amp;p, -r.<a href="ntqrect.html#x">x</a>() + border, -r.<a href="ntqrect.html#y">y</a>() + border, s, c2, c3 );
p.<a href="ntqpainter.html#end">end</a>();
- qApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;setBackgroundPixmap( pm );
+ tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;setBackgroundPixmap( pm );
}
//
diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html
index b835b6f3..b2b2b0da 100644
--- a/doc/html/fileiconview-example.html
+++ b/doc/html/fileiconview-example.html
@@ -772,7 +772,7 @@ void <a name="f305"></a>TQtFileIconView::newDirectory()
<a name="x849"></a> item-&gt;<a href="qiconviewitem.html#setSelected">setSelected</a>( TRUE, TRUE );
<a href="ntqiconview.html#setCurrentItem">setCurrentItem</a>( item );
<a href="ntqiconview.html#repaintItem">repaintItem</a>( item );
-<a name="x808"></a> qApp-&gt;<a href="ntqapplication.html#processEvents">processEvents</a>();
+<a name="x808"></a> tqApp-&gt;<a href="ntqapplication.html#processEvents">processEvents</a>();
<a name="x845"></a> item-&gt;<a href="qiconviewitem.html#rename">rename</a>();
}
<a href="ntqiconview.html#setAutoArrange">setAutoArrange</a>( TRUE );
diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html
index a72528c9..19005697 100644
--- a/doc/html/helpviewer-example.html
+++ b/doc/html/helpviewer-example.html
@@ -174,7 +174,7 @@ private:
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("&amp;Print"), this, SLOT( print() ), CTRL+Key_P );
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("&amp;Close"), this, SLOT( <a href="ntqwidget.html#close">close</a>() ), CTRL+Key_Q );
-<a name="x980"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_X );
+<a name="x980"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), tqApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_X );
// The same three icons are used twice each.
<a href="ntqiconset.html">TQIconSet</a> icon_back( TQPixmap("back.xpm") );
diff --git a/doc/html/httpd-example.html b/doc/html/httpd-example.html
index 733d2e29..08673f7b 100644
--- a/doc/html/httpd-example.html
+++ b/doc/html/httpd-example.html
@@ -145,7 +145,7 @@ public:
connect( httpd, SIGNAL(newConnect()), SLOT(newConnect()) );
connect( httpd, SIGNAL(endConnect()), SLOT(endConnect()) );
connect( httpd, SIGNAL(wroteToClient()), SLOT(wroteToClient()) );
-<a name="x724"></a> connect( quit, SIGNAL(<a href="ntqbutton.html#pressed">pressed</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+<a name="x724"></a> connect( quit, SIGNAL(<a href="ntqbutton.html#pressed">pressed</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
}
~HttpInfo()
diff --git a/doc/html/i18n-example.html b/doc/html/i18n-example.html
index a517c949..88a09baa 100644
--- a/doc/html/i18n-example.html
+++ b/doc/html/i18n-example.html
@@ -112,7 +112,7 @@ private:
<a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>(central);
<a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(this);
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()),
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()),
<a name="x1921"></a> TQAccel::<a href="ntqaccel.html#stringToKey">stringToKey</a>(<a href="ntqobject.html#tr">tr</a>("Ctrl+Q")) );
<a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="ntqobject.html#tr">tr</a>("&amp;File"), file );
@@ -229,7 +229,7 @@ MyWidget* showLang(TQString lang)
static TQTranslator *translator = 0;
-<a name="x1934"></a> qApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>(TQPalette(TQColor(220-rand()%64,220-rand()%64,220-rand()%64)));
+<a name="x1934"></a> tqApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>(TQPalette(TQColor(220-rand()%64,220-rand()%64,220-rand()%64)));
lang = "mywidget_" + lang + ".qm";
<a href="ntqfileinfo.html">TQFileInfo</a> fi( lang );
@@ -241,12 +241,12 @@ MyWidget* showLang(TQString lang)
return 0;
}
if ( translator ) {
-<a name="x1932"></a> qApp-&gt;<a href="ntqapplication.html#removeTranslator">removeTranslator</a>( translator );
+<a name="x1932"></a> tqApp-&gt;<a href="ntqapplication.html#removeTranslator">removeTranslator</a>( translator );
delete translator;
}
translator = new <a href="ntqtranslator.html">TQTranslator</a>( 0 );
<a name="x1950"></a> translator-&gt;<a href="ntqtranslator.html#load">load</a>( lang, "." );
-<a name="x1930"></a> qApp-&gt;<a href="ntqapplication.html#installTranslator">installTranslator</a>( translator );
+<a name="x1930"></a> tqApp-&gt;<a href="ntqapplication.html#installTranslator">installTranslator</a>( translator );
MyWidget *m = new MyWidget;
<a name="x1951"></a> m-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - <a href="i18n.html#i18n">i18n</a> - " + m-&gt;<a href="ntqwidget.html#caption">caption</a>() );
return m;
@@ -284,7 +284,7 @@ int main( int argc, char** argv )
<a name="x1936"></a> r = dlg.<a href="ntqdialog.html#exec">exec</a>();
}
if ( r ) {
-<a name="x1928"></a> <a href="ntqrect.html">TQRect</a> screen = qApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;availableGeometry();
+<a name="x1928"></a> <a href="ntqrect.html">TQRect</a> screen = tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;availableGeometry();
bool tight = screen.<a href="ntqrect.html#width">width</a>() &lt; 1024;
<a name="x1942"></a> int x=screen.<a href="ntqrect.html#left">left</a>()+5;
int y=screen.<a href="ntqrect.html#top">top</a>()+25;
@@ -293,7 +293,7 @@ int main( int argc, char** argv )
MyWidget* w = showLang((const char*)qm[i]);
if( w == 0 ) exit( 0 );
- TQObject::<a href="ntqobject.html#connect">connect</a>(w, SIGNAL(closed()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
+ TQObject::<a href="ntqobject.html#connect">connect</a>(w, SIGNAL(closed()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
<a name="x1953"></a> w-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>(x,y,197,356);
w-&gt;<a href="ntqwidget.html#show">show</a>();
if ( tight ) {
diff --git a/doc/html/i18n.html b/doc/html/i18n.html
index a49407e1..14b5a0be 100644
--- a/doc/html/i18n.html
+++ b/doc/html/i18n.html
@@ -204,7 +204,7 @@ directly:
void same_global_function( LoginWidget *logwid )
{
<a href="ntqlabel.html">TQLabel</a> *label = new <a href="ntqlabel.html">TQLabel</a>(
- qApp-&gt;<a href="ntqapplication.html#translate">translate</a>("LoginWidget", "Password:"),
+ tqApp-&gt;<a href="ntqapplication.html#translate">translate</a>("LoginWidget", "Password:"),
logwid );
}
</pre>
@@ -240,7 +240,7 @@ The macros expand to just the text (without the context).
<a href="ntqstring.html">TQString</a> global_greeting( int greet_type )
{
- return qApp-&gt;<a href="ntqapplication.html#translate">translate</a>( "FriendlyConversation",
+ return tqApp-&gt;<a href="ntqapplication.html#translate">translate</a>( "FriendlyConversation",
greeting_strings[greet_type] );
}
</pre>
diff --git a/doc/html/layout-example.html b/doc/html/layout-example.html
index a7071775..c79f41ac 100644
--- a/doc/html/layout-example.html
+++ b/doc/html/layout-example.html
@@ -76,7 +76,7 @@ public:
<a name="x540"></a> menubar-&gt;<a href="ntqmenubar.html#setSeparator">setSeparator</a>( TQMenuBar::InWindowsStyle );
<a href="ntqpopupmenu.html">TQPopupMenu</a>* popup;
popup = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
- popup-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ popup-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", popup );
// ...and tell the layout about it.
diff --git a/doc/html/linguist-manual-4.html b/doc/html/linguist-manual-4.html
index 97645ddf..8a5e52c5 100644
--- a/doc/html/linguist-manual-4.html
+++ b/doc/html/linguist-manual-4.html
@@ -102,7 +102,7 @@ body { background: #ffffff; color: black; }
rbh = new TQRadioButton( tr("Enabled", "Hue frame"), this );
</pre>
<!-- index Ctrl Key --><p>Ctrl key accelerators are also translatable:</p>
-<pre> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()),
+<pre> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()),
<a href="ntqobject.html#tr">tr</a>("Ctrl+Q", "Quit") );
</pre>
<p>It is strongly recommended that the two argument form of <tt>tr()</tt> is used for Ctrl key accelerators. The second argument is the only clue the translator has as to the function performed by the accelerator.</p>
@@ -136,7 +136,7 @@ body { background: #ffffff; color: black; }
void same_global_function( LoginWidget *logwid )
{
TQLabel *label = new TQLabel(
- qApp-&gt;translate("LoginWidget", "Password:"),
+ tqApp-&gt;translate("LoginWidget", "Password:"),
logwid );
}
</pre>
@@ -167,7 +167,7 @@ body { background: #ffffff; color: black; }
TQString global_greeting( int greet_type )
{
- return qApp-&gt;translate( "FriendlyConversation",
+ return tqApp-&gt;translate( "FriendlyConversation",
greeting_strings[greet_type] );
}
</pre>
@@ -317,7 +317,7 @@ TRANSLATIONS = tt2_fr.ts \
</pre>
<!-- index TQ_OBJECT --><!-- index tr() --><!-- index TQObject!tr() --><!-- index Translation Contexts --><!-- index Contexts!for Translation --> <p>When <a href="linguist-manual-2.html#2">lupdate</a> is run it not only extracts the source texts but it also groups them into contexts. A context is the name of the class in which the source text appears. Thus, in this example, "ArrowPad" is a context: it is the context of the texts in the <tt>ArrowPad</tt> class. The <tt>TQ_OBJECT</tt> macro defines <tt>tr(x)</tt> in <tt>ArrowPad</tt> like this</p>
<!-- index TQApplication!translate() --><!-- index translate()!TQApplication --><pre>
- qApp-&gt;translate( "ArrowPad", x )
+ tqApp-&gt;translate( "ArrowPad", x )
</pre>
<p>Knowing which class each source text appears in enables <em>TQt Linguist</em> to group texts that are logically related together, e.g. all the text in a dialog will have the context of the dialog's class name and will be shown together. This provides useful information for the translator since the context in which text appears may influence how it should be translated. For some translations keyboard accelerators may need to be changed and having all the source texts in a particular context (class) grouped together makes it easier for the translator to perform any accelerator changes without introducing conflicts.</p>
<p>In <tt>arrowpad.cpp</tt> we implement the <tt>ArrowPad</tt> class.</p>
@@ -336,7 +336,7 @@ TRANSLATIONS = tt2_fr.ts \
<pre> ArrowPad *ap = new ArrowPad( this, "arrow pad" );
</pre>
<p>We also call <tt>MainWindow::tr()</tt> twice, once for the menu item and once for the accelerator.</p>
-<!-- index Ctrl Key --><!-- index Alt Key --><pre> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()),
+<!-- index Ctrl Key --><!-- index Alt Key --><pre> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()),
<a href="ntqobject.html#tr">tr</a>("Ctrl+Q", "Quit") );
</pre>
<p>Note the use of <tt>tr()</tt> to support different keys in other languages. "Ctrl+Q" is a good choice for Quit in English, but a Dutch translator might want to use "Ctrl+A" (for Afsluiten) and a German translator "Strg+E" (for Beenden). When using <tt>tr()</tt> for Ctrl key accelerators, the two argument form should be used with the second argument describing the function that the accelerator performs.</p>
@@ -452,7 +452,7 @@ TRANSLATIONS = tt3_pt.ts
<pre> <a href="ntqwidget.html#setCaption">setCaption</a>( <a href="ntqobject.html#tr">tr</a>("Troll Print 1.0") );
</pre>
<p>We must translate the window's caption.</p>
-<pre> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()),
+<pre> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()),
<a href="ntqobject.html#tr">tr</a>("Ctrl+Q", "Quit") );
<a href="ntqpopupmenu.html">TQPopupMenu</a> *help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("&amp;About"), this, SLOT(about()), Key_F1 );
diff --git a/doc/html/mail-example.html b/doc/html/mail-example.html
index e5200c75..e3c895e2 100644
--- a/doc/html/mail-example.html
+++ b/doc/html/mail-example.html
@@ -220,7 +220,7 @@ void <a name="f300"></a>Smtp::readyRead()
return;
} else {
// something broke.
-<a name="x708"></a><a name="x704"></a> TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>( qApp-&gt;<a href="ntqapplication.html#activeWindow">activeWindow</a>(),
+<a name="x708"></a><a name="x704"></a> TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>( tqApp-&gt;<a href="ntqapplication.html#activeWindow">activeWindow</a>(),
<a href="ntqobject.html#tr">tr</a>( "TQt Mail Example" ),
<a href="ntqobject.html#tr">tr</a>( "Unexpected reply from SMTP server:\n\n" ) +
response );
diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html
index 48022b47..94cf3aaf 100644
--- a/doc/html/mdi-example.html
+++ b/doc/html/mdi-example.html
@@ -233,7 +233,7 @@ const char * filePrintText = "Click this button to print the file you "
#endif
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, SLOT(closeWindow()), CTRL+Key_W );
-<a name="x2020"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", qApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q );
+<a name="x2020"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q );
windowsMenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a name="x2049"></a> windowsMenu-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html
index 6b17e6b4..89161446 100644
--- a/doc/html/menu-example.html
+++ b/doc/html/menu-example.html
@@ -242,7 +242,7 @@ private:
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Print", print, CTRL+Key_P );
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q );
<a href="ntqpopupmenu.html">TQPopupMenu</a> *edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit );
diff --git a/doc/html/motif-customwidget-example.html b/doc/html/motif-customwidget-example.html
index ea42cd02..01e80d33 100644
--- a/doc/html/motif-customwidget-example.html
+++ b/doc/html/motif-customwidget-example.html
@@ -97,7 +97,7 @@ int main( int argc, char **argv )
: <a href="ntqmainwindow.html">TQMainWindow</a>( 0, "mainwindow" )
{
<a href="ntqpopupmenu.html">TQPopupMenu</a> *filemenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
- filemenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("&amp;Quit"), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ filemenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("&amp;Quit"), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
<a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="ntqobject.html#tr">tr</a>("&amp;File"), filemenu );
<a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;message( <a href="ntqobject.html#tr">tr</a>("This is a TQMainWindow with an XmText widget.") );
diff --git a/doc/html/movies-example.html b/doc/html/movies-example.html
index da55fea6..dd3967d8 100644
--- a/doc/html/movies-example.html
+++ b/doc/html/movies-example.html
@@ -292,7 +292,7 @@ void <a name="f259"></a>MovieStarter::startMovie(const <a href="ntqstring.html">
<a name="x495"></a>void MovieStarter::<a href="ntqdialog.html#done">done</a>( int r )
{
if (r != Accepted)
- qApp-&gt;<a href="ntqapplication.html#quit">quit</a>(); // end on Cancel
+ tqApp-&gt;<a href="ntqapplication.html#quit">quit</a>(); // end on Cancel
<a href="ntqdialog.html#setResult">setResult</a>( r );
// And don't hide.
@@ -317,7 +317,7 @@ int main(int argc, char **argv)
(void)new MovieScreen(argv[arg], TQMovie(argv[arg]), 0, 0,
TQt::WDestructiveClose);
}
- TQObject::<a href="ntqobject.html#connect">connect</a>(qApp, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
+ TQObject::<a href="ntqobject.html#connect">connect</a>(tqApp, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
} else {
// "GUI" mode - open a chooser for movies
//
diff --git a/doc/html/ntqapplication.html b/doc/html/ntqapplication.html
index ef34d5a9..07f5573f 100644
--- a/doc/html/ntqapplication.html
+++ b/doc/html/ntqapplication.html
@@ -696,10 +696,10 @@ entry in the file menu as shown in the following code example:
<p> <pre>
// the "Quit" menu entry should try to close all windows
<a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", qApp, SLOT(<a href="#closeAllWindows">closeAllWindows</a>()), CTRL+Key_Q );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, SLOT(<a href="#closeAllWindows">closeAllWindows</a>()), CTRL+Key_Q );
// when the last window is closed, the application should quit
- <a href="ntqobject.html#connect">connect</a>( qApp, SIGNAL( <a href="#lastWindowClosed">lastWindowClosed</a>() ), qApp, SLOT( <a href="#quit">quit</a>() ) );
+ <a href="ntqobject.html#connect">connect</a>( tqApp, SIGNAL( <a href="#lastWindowClosed">lastWindowClosed</a>() ), tqApp, SLOT( <a href="#quit">quit</a>() ) );
</pre>
<p> The windows are closed in random order, until one window does not
@@ -1027,8 +1027,8 @@ reimplementing this virtual function is just one of them. All five
approaches are listed below:
<ol type=1>
<li> Reimplementing this function. This is very powerful, providing
-complete control; but only one subclass can be qApp.
-<p> <li> Installing an event filter on qApp. Such an event filter is able
+complete control; but only one subclass can be tqApp.
+<p> <li> Installing an event filter on tqApp. Such an event filter is able
to process all events for all widgets, so it's just as powerful as
reimplementing <a href="#notify">notify</a>(); furthermore, it's possible to have more
than one application-global event filter. Global event filters even
@@ -1126,7 +1126,7 @@ you also often connect e.g. <a href="ntqbutton.html#clicked">TQButton::clicked</
<p> Example:
<pre>
<a href="ntqpushbutton.html">TQPushButton</a> *quitButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit" );
- <a href="ntqobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="#quit">quit</a>()) );
</pre>
<p> <p>See also <a href="#exit">exit</a>(), <a href="#aboutToQuit">aboutToQuit</a>(), <a href="#lastWindowClosed">lastWindowClosed</a>(), and <a href="ntqaction.html">TQAction</a>.
diff --git a/doc/html/ntqcolor.html b/doc/html/ntqcolor.html
index 24ed8f71..465af190 100644
--- a/doc/html/ntqcolor.html
+++ b/doc/html/ntqcolor.html
@@ -92,7 +92,7 @@ body { background: #ffffff; color: black; }
<li class=fn>TQRgb <a href="#qRgb"><b>qRgb</b></a> ( int&nbsp;r, int&nbsp;g, int&nbsp;b )</li>
<li class=fn>TQRgb <a href="#qRgba"><b>qRgba</b></a> ( int&nbsp;r, int&nbsp;g, int&nbsp;b, int&nbsp;a )</li>
<li class=fn>int <a href="#qGray"><b>qGray</b></a> ( int&nbsp;r, int&nbsp;g, int&nbsp;b )</li>
-<li class=fn>int <a href="#qGray-2"><b>qGray</b></a> ( qRgb&nbsp;rgb )</li>
+<li class=fn>int <a href="#qGray-2"><b>qGray</b></a> ( tqRgb&nbsp;rgb )</li>
</ul>
<hr><a name="details"></a><h2>Detailed Description</h2>
@@ -569,7 +569,7 @@ Reads a color object, <em>c</em>, from the stream, <em>s</em>.
<p> The gray value is calculated using the formula (r*11 + g*16 +
b*5)/32.
-<h3 class=fn>int <a name="qGray-2"></a>qGray ( qRgb&nbsp;rgb )
+<h3 class=fn>int <a name="qGray-2"></a>qGray ( tqRgb&nbsp;rgb )
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p>
diff --git a/doc/html/ntqfile.html b/doc/html/ntqfile.html
index 58efb3bc..61ebcb6a 100644
--- a/doc/html/ntqfile.html
+++ b/doc/html/ntqfile.html
@@ -229,7 +229,7 @@ should translate it first, for example:
TQMessageBox::<a href="ntqmessagebox.html#critical">critical</a>(
this,
tr("Open failed"),
- tr("Could not open file for reading: %1").arg( qApp-&gt;<a href="ntqapplication.html#translate">translate</a>("TQFile",f.<a href="#errorString">errorString</a>()) )
+ tr("Could not open file for reading: %1").arg( tqApp-&gt;<a href="ntqapplication.html#translate">translate</a>("TQFile",f.<a href="#errorString">errorString</a>()) )
);
return;
}
diff --git a/doc/html/ntqglcolormap.html b/doc/html/ntqglcolormap.html
index 3468ee64..9de907b3 100644
--- a/doc/html/ntqglcolormap.html
+++ b/doc/html/ntqglcolormap.html
@@ -92,7 +92,7 @@ in child widgets.
// This will fill the colormap with colors ranging from
// black to white.
for ( int i = 0; i &lt; colormap.<a href="#size">size</a>(); i++ )
- colormap.<a href="#setEntry">setEntry</a>( i, qRgb( i, i, i ) );
+ colormap.<a href="#setEntry">setEntry</a>( i, tqRgb( i, i, i ) );
widget.setColormap( colormap );
widget.show();
diff --git a/doc/html/ntqimage.html b/doc/html/ntqimage.html
index 0fa29759..2e04c4c0 100644
--- a/doc/html/ntqimage.html
+++ b/doc/html/ntqimage.html
@@ -182,7 +182,7 @@ because they have a single byte per pixel:
<p> <pre>
TQImage image;
// set entry 19 in the color table to yellow
- image.<a href="#setColor">setColor</a>( 19, qRgb(255,255,0) );
+ image.<a href="#setColor">setColor</a>( 19, tqRgb(255,255,0) );
// set 8 bit pixel at (x,y) to value yellow (in color table)
*(image.<a href="#scanLine">scanLine</a>(y) + x) = 19;
</pre>
diff --git a/doc/html/ntqprogressdialog.html b/doc/html/ntqprogressdialog.html
index 68d8f3cb..9844b2b1 100644
--- a/doc/html/ntqprogressdialog.html
+++ b/doc/html/ntqprogressdialog.html
@@ -126,7 +126,7 @@ TQProgressDialog progress( "Copying files...", "Abort Copy", numFiles,
this, "progress", TRUE );
for ( int i = 0; i &lt; numFiles; i++ ) {
progress.setProgress( i );
- qApp-&gt;<a href="ntqapplication.html#processEvents">processEvents</a>();
+ tqApp-&gt;<a href="ntqapplication.html#processEvents">processEvents</a>();
if ( progress.wasCanceled() )
break;
diff --git a/doc/html/ntqsplashscreen.html b/doc/html/ntqsplashscreen.html
index da8cfa38..b2646ebb 100644
--- a/doc/html/ntqsplashscreen.html
+++ b/doc/html/ntqsplashscreen.html
@@ -114,10 +114,10 @@ call <a href="ntqapplication.html#processEvents">TQApplication::processEvents</a
splash-&gt;<a href="ntqwidget.html#show">show</a>();
... // Loading some items
splash-&gt;<a href="#message">message</a>( "Loaded modules" );
- qApp-&gt;<a href="ntqapplication.html#processEvents">processEvents</a>();
+ tqApp-&gt;<a href="ntqapplication.html#processEvents">processEvents</a>();
... // Establishing connections
splash-&gt;<a href="#message">message</a>( "Established connections" );
- qApp-&gt;<a href="ntqapplication.html#processEvents">processEvents</a>();
+ tqApp-&gt;<a href="ntqapplication.html#processEvents">processEvents</a>();
</pre>
<p> <p>See also <a href="misc.html">Miscellaneous Classes</a>.
diff --git a/doc/html/process-example.html b/doc/html/process-example.html
index d3b8ef8c..0ee3cba5 100644
--- a/doc/html/process-example.html
+++ b/doc/html/process-example.html
@@ -83,7 +83,7 @@ private:
output = new <a href="ntqtextview.html">TQTextView</a>( this );
quitButton = new <a href="ntqpushbutton.html">TQPushButton</a>( <a href="ntqobject.html#tr">tr</a>("Quit"), this );
<a href="ntqobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()),
- qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
<a href="ntqwidget.html#resize">resize</a>( 500, 500 );
// TQProcess related code
diff --git a/doc/html/progress-example.html b/doc/html/progress-example.html
index a5ae52bc..465316bd 100644
--- a/doc/html/progress-example.html
+++ b/doc/html/progress-example.html
@@ -192,7 +192,7 @@ public:
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( drawItemText(i), i );
<a name="x67"></a> connect( menubar, SIGNAL(<a href="ntqmenubar.html#activated">activated</a>(int)), this, SLOT(doMenuItem(int)) );
<a name="x69"></a> file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>();
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( options );
diff --git a/doc/html/qaction-application-example.html b/doc/html/qaction-application-example.html
index 89c4f889..5431f196 100644
--- a/doc/html/qaction-application-example.html
+++ b/doc/html/qaction-application-example.html
@@ -189,7 +189,7 @@ private:
fileQuitAction = new <a href="ntqaction.html">TQAction</a>( "Quit", "&amp;Quit", CTRL+Key_Q, this,
"quit" );
-<a name="x1127"></a> <a href="ntqobject.html#connect">connect</a>( fileQuitAction, SIGNAL( <a href="ntqaction.html#activated">activated</a>() ) , qApp,
+<a name="x1127"></a> <a href="ntqobject.html#connect">connect</a>( fileQuitAction, SIGNAL( <a href="ntqaction.html#activated">activated</a>() ) , tqApp,
SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ) );
// populate a tool bar with some actions
diff --git a/doc/html/qapplication-h.html b/doc/html/qapplication-h.html
index 858534ed..cd72c34d 100644
--- a/doc/html/qapplication-h.html
+++ b/doc/html/qapplication-h.html
@@ -100,7 +100,7 @@ class TQMutex;
class TQApplication;
-extern Q_EXPORT TQApplication *qApp; // global application object
+extern Q_EXPORT TQApplication *tqApp; // global application object
class Q_EXPORT TQApplication : public TQObject
@@ -532,10 +532,10 @@ inline TQSize TQApplication::globalStrut()
}
inline bool TQApplication::sendEvent( TQObject *receiver, TQEvent *event )
-{ if ( event ) event-&gt;spont = FALSE; return qApp ? qApp-&gt;notify( receiver, event ) : FALSE; }
+{ if ( event ) event-&gt;spont = FALSE; return tqApp ? tqApp-&gt;notify( receiver, event ) : FALSE; }
inline bool TQApplication::sendSpontaneousEvent( TQObject *receiver, TQEvent *event )
-{ if ( event ) event-&gt;spont = TRUE; return qApp ? qApp-&gt;notify( receiver, event ) : FALSE; }
+{ if ( event ) event-&gt;spont = TRUE; return tqApp ? tqApp-&gt;notify( receiver, event ) : FALSE; }
#ifdef QT_NO_TRANSLATION
// Simple versions
diff --git a/doc/html/qcolor-h.html b/doc/html/qcolor-h.html
index ccfea5d5..4dd1737e 100644
--- a/doc/html/qcolor-h.html
+++ b/doc/html/qcolor-h.html
@@ -82,31 +82,31 @@ body { background: #ffffff; color: black; }
#include "ntqstringlist.h"
#endif // QT_H
-const TQRgb RGB_MASK = 0x00ffffff; // masks RGB values
+const TQRgb TQT_RGB_MASK = 0x00ffffff; // masks RGB values
-Q_EXPORT inline int qRed( TQRgb rgb ) // get red part of RGB
+Q_EXPORT inline int tqRed( TQRgb rgb ) // get red part of RGB
{ return (int)((rgb &gt;&gt; 16) &amp; 0xff); }
-Q_EXPORT inline int qGreen( TQRgb rgb ) // get green part of RGB
+Q_EXPORT inline int tqGreen( TQRgb rgb ) // get green part of RGB
{ return (int)((rgb &gt;&gt; 8) &amp; 0xff); }
-Q_EXPORT inline int qBlue( TQRgb rgb ) // get blue part of RGB
+Q_EXPORT inline int tqBlue( TQRgb rgb ) // get blue part of RGB
{ return (int)(rgb &amp; 0xff); }
-Q_EXPORT inline int qAlpha( TQRgb rgb ) // get alpha part of RGBA
+Q_EXPORT inline int tqAlpha( TQRgb rgb ) // get alpha part of RGBA
{ return (int)((rgb &gt;&gt; 24) &amp; 0xff); }
-Q_EXPORT inline TQRgb qRgb( int r, int g, int b )// set RGB value
+Q_EXPORT inline TQRgb tqRgb( int r, int g, int b )// set RGB value
{ return (0xff &lt;&lt; 24) | ((r &amp; 0xff) &lt;&lt; 16) | ((g &amp; 0xff) &lt;&lt; 8) | (b &amp; 0xff); }
-Q_EXPORT inline TQRgb qRgba( int r, int g, int b, int a )// set RGBA value
+Q_EXPORT inline TQRgb tqRgba( int r, int g, int b, int a )// set RGBA value
{ return ((a &amp; 0xff) &lt;&lt; 24) | ((r &amp; 0xff) &lt;&lt; 16) | ((g &amp; 0xff) &lt;&lt; 8) | (b &amp; 0xff); }
-Q_EXPORT inline int qGray( int r, int g, int b )// convert R,G,B to gray 0..255
+Q_EXPORT inline int tqGray( int r, int g, int b )// convert R,G,B to gray 0..255
{ return (r*11+g*16+b*5)/32; }
-Q_EXPORT inline int qGray( TQRgb rgb ) // convert RGB to gray 0..255
-{ return qGray( qRed(rgb), qGreen(rgb), qBlue(rgb) ); }
+Q_EXPORT inline int tqGray( TQRgb rgb ) // convert RGB to gray 0..255
+{ return tqGray( tqRed(rgb), tqGreen(rgb), tqBlue(rgb) ); }
class Q_EXPORT TQColor
@@ -226,13 +226,13 @@ inline TQRgb TQColor::rgb() const
{ return d.argb; }
inline int TQColor::red() const
-{ return qRed(d.argb); }
+{ return tqRed(d.argb); }
inline int TQColor::green() const
-{ return qGreen(d.argb); }
+{ return tqGreen(d.argb); }
inline int TQColor::blue() const
-{ return qBlue(d.argb); }
+{ return tqBlue(d.argb); }
inline bool TQColor::isValid() const
{
diff --git a/doc/html/qgfx_qws-h.html b/doc/html/qgfx_qws-h.html
index 85705096..ecaee5af 100644
--- a/doc/html/qgfx_qws-h.html
+++ b/doc/html/qgfx_qws-h.html
@@ -113,9 +113,9 @@ inline ushort qt_convRgbTo16( const int r, const int g, const int b )
inline ushort qt_convRgbTo16( TQRgb c )
{
- const int tr = qRed(c) &lt;&lt; qt_red_shift;
- const int tg = qGreen(c) &lt;&lt; qt_green_shift;
- const int tb = qBlue(c) &gt;&gt; qt_neg_blue_shift;
+ const int tr = tqRed(c) &lt;&lt; qt_red_shift;
+ const int tg = tqGreen(c) &lt;&lt; qt_green_shift;
+ const int tb = tqBlue(c) &gt;&gt; qt_neg_blue_shift;
return (tb &amp; qt_blue_mask) | (tg &amp; qt_green_mask) | (tr &amp; qt_red_mask);
}
@@ -129,7 +129,7 @@ inline TQRgb qt_conv16ToRgb( ushort c )
const int tg = g &gt;&gt; qt_green_shift;
const int tb = b &lt;&lt; qt_neg_blue_shift;
- return qRgb(tr,tg,tb);
+ return tqRgb(tr,tg,tb);
}
inline void qt_conv16ToRgb( ushort c, int&amp; r, int&amp; g, int&amp; b )
diff --git a/doc/html/qmag-example.html b/doc/html/qmag-example.html
index 819d8a3f..24cd8aa0 100644
--- a/doc/html/qmag-example.html
+++ b/doc/html/qmag-example.html
@@ -173,7 +173,7 @@ static const int timer[] = {
quitButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(quitButton);
- <a href="ntqobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
quitButton-&gt;<a href="ntqbutton.html#setText">setText</a>( "Quit" );
quitButton-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( multiSaveButton-&gt;<a href="ntqwidget.html#geometry">geometry</a>().right() + 2, 2,
10+quitButton-&gt;<a href="ntqwidget.html#fontMetrics">fontMetrics</a>().width("Quit"), 20 );
@@ -379,8 +379,8 @@ void <a name="f490"></a>MagWidget::grabAround(TQPoint pos)
{
<a name="x1776"></a> TQRgb px = image.<a href="ntqimage.html#pixel">pixel</a>(x,y);
<a name="x1795"></a> pixelinfo.<a href="ntqstring.html#sprintf">sprintf</a>(" %3d,%3d,%3d #%02x%02x%02x",
- <a href="ntqcolor.html#qRed">qRed</a>(px), qGreen(px), qBlue(px),
- <a href="ntqcolor.html#qRed">qRed</a>(px), qGreen(px), qBlue(px));
+ <a href="ntqcolor.html#qRed">qRed</a>(px), tqGreen(px), tqBlue(px),
+ <a href="ntqcolor.html#qRed">qRed</a>(px), tqGreen(px), tqBlue(px));
}
<a href="ntqstring.html">TQString</a> label;
label.<a href="ntqstring.html#sprintf">sprintf</a>( "x=%d, y=%d %s",
diff --git a/doc/html/qmessagebox-h.html b/doc/html/qmessagebox-h.html
index 5c6bb833..c52826bd 100644
--- a/doc/html/qmessagebox-h.html
+++ b/doc/html/qmessagebox-h.html
@@ -247,7 +247,7 @@ private: // Disabled copy constructor and operator=
#define QT_REQUIRE_VERSION( argc, argv, str ) { TQString s=TQString::fromLatin1(str);\
TQString sq=TQString::fromLatin1(qVersion()); if ( (sq.section('.',0,0).toInt()&lt;&lt;16)+\
(sq.section('.',1,1).toInt()&lt;&lt;8)+sq.section('.',2,2).toInt()&lt;(s.section('.',0,0).toInt()&lt;&lt;16)+\
-(s.section('.',1,1).toInt()&lt;&lt;8)+s.section('.',2,2).toInt() ){if ( !qApp){ int c=0; new \
+(s.section('.',1,1).toInt()&lt;&lt;8)+s.section('.',2,2).toInt() ){if ( !tqApp){ int c=0; new \
TQApplication(argc,argv);} TQString s = TQApplication::tr("Executable '%1' requires TQt "\
"%2, found TQt %3.").arg(TQString::fromLatin1(tqAppName())).arg(TQString::fromLatin1(\
str)).arg(TQString::fromLatin1(qVersion()) ); TQMessageBox::critical( 0, TQApplication::tr(\
diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html
index c1b4413d..6f356d8c 100644
--- a/doc/html/qwerty-example.html
+++ b/doc/html/qwerty-example.html
@@ -153,7 +153,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
#endif
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, SLOT(<a href="ntqwidget.html#close">close</a>()),ALT+Key_W );
-<a name="x358"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", qApp, SLOT(<a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>()), ALT+Key_Q );
+<a name="x358"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, SLOT(<a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>()), ALT+Key_Q );
<a name="x386"></a> <a href="ntqobject.html#connect">connect</a>( save_as, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), this, SLOT(saveAsEncoding(int)) );
<a href="ntqobject.html#connect">connect</a>( open_as, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), this, SLOT(openAsEncoding(int)) );
@@ -231,8 +231,8 @@ void <a name="f236"></a>Editor::rebuildCodecList()
void <a name="f237"></a>Editor::newDoc()
{
Editor *ed = new Editor;
- if ( qApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().width() &lt; 450
- || qApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().height() &lt; 450 ) {
+ if ( tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().width() &lt; 450
+ || tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().height() &lt; 450 ) {
<a name="x413"></a> ed-&gt;<a href="ntqwidget.html#showMaximized">showMaximized</a>();
} else {
ed-&gt;<a href="ntqwidget.html#resize">resize</a>( 400, 400 );
@@ -476,8 +476,8 @@ int main( int argc, char **argv )
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
-<a name="x414"></a> bool isSmall = qApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().width() &lt; 450
- || qApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().height() &lt; 450;
+<a name="x414"></a> bool isSmall = tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().width() &lt; 450
+ || tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().height() &lt; 450;
int i;
for ( i= argc &lt;= 1 ? 0 : 1; i&lt;argc; i++ ) {
diff --git a/doc/html/qwindowdefs-h.html b/doc/html/qwindowdefs-h.html
index ff2fc747..75e2dea0 100644
--- a/doc/html/qwindowdefs-h.html
+++ b/doc/html/qwindowdefs-h.html
@@ -190,7 +190,7 @@ Q_EXPORT WId qt_xrootwin( int scrn ); // ### 4.0 add default arg of -1
Q_EXPORT GC qt_xget_readonly_gc( int scrn, bool monochrome );
Q_EXPORT GC qt_xget_temp_gc( int scrn, bool monochrome );
-Q_EXPORT const char *qAppClass(); // get application class
+Q_EXPORT const char *tqAppClass(); // get application class
#endif // Q_WS_X11
diff --git a/doc/html/richtext-example.html b/doc/html/richtext-example.html
index eea3cfc2..19cc4d3e 100644
--- a/doc/html/richtext-example.html
+++ b/doc/html/richtext-example.html
@@ -182,7 +182,7 @@ static const char* sayings[] = {
<a name="x466"></a> bPrev-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
-<a name="x462"></a> <a href="ntqobject.html#connect">connect</a>( bClose, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), qApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ) );
+<a name="x462"></a> <a href="ntqobject.html#connect">connect</a>( bClose, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), tqApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ) );
<a href="ntqobject.html#connect">connect</a>( bPrev, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( prev() ) );
<a href="ntqobject.html#connect">connect</a>( bNext, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( next() ) );
diff --git a/doc/html/rot-example.html b/doc/html/rot-example.html
index 64aacf9c..955d8f0a 100644
--- a/doc/html/rot-example.html
+++ b/doc/html/rot-example.html
@@ -105,7 +105,7 @@ private:
<a href="ntqpushbutton.html">TQPushButton</a> * quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Quit", this );
<a name="x1379"></a> quit-&gt;<a href="ntqwidget.html#setFocusPolicy">setFocusPolicy</a>( NoFocus );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
<a href="qgridlayout.html">TQGridLayout</a> * l = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 5 );
<a name="x1370"></a> l-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( left, 0, 0 );
diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html
index b354b6d9..5ee6f459 100644
--- a/doc/html/scribble-example.html
+++ b/doc/html/scribble-example.html
@@ -165,7 +165,7 @@ const bool no_writing = FALSE;
mousePressed( FALSE ), buffer( <a href="ntqwidget.html#width">width</a>(), height() )
{
-<a name="x907"></a><a name="x906"></a> if ((qApp-&gt;<a href="ntqapplication.html#argc">argc</a>() &gt; 0) &amp;&amp; !buffer.load(qApp-&gt;<a href="ntqapplication.html#argv">argv</a>()[1]))
+<a name="x907"></a><a name="x906"></a> if ((tqApp-&gt;<a href="ntqapplication.html#argc">argc</a>() &gt; 0) &amp;&amp; !buffer.load(tqApp-&gt;<a href="ntqapplication.html#argv">argv</a>()[1]))
buffer.fill( <a href="ntqwidget.html#colorGroup">colorGroup</a>().base() );
<a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>( TQWidget::PaletteBase );
#ifndef QT_NO_CURSOR
diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html
index 0c33a7ff..209d2ace 100644
--- a/doc/html/scrollview-example.html
+++ b/doc/html/scrollview-example.html
@@ -83,7 +83,7 @@ public:
for (int y=0; y&lt;2000-h; y+=h+10) {
if (y == 0) {
<a href="ntqbutton.html">TQButton</a>* q=new <a href="ntqpushbutton.html">TQPushButton</a>("Quit", this);
- connect(q, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
+ connect(q, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
} else {
<a href="ntqstring.html">TQString</a> str;
if ( b &gt; 0 ) {
@@ -247,7 +247,7 @@ public:
<a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file );
<a name="x634"></a> menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
vp_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( vp_options );
@@ -473,7 +473,7 @@ int main( int argc, char **argv )
ve3.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Scrollviews");
ve3.<a href="ntqwidget.html#show">show</a>();
- TQObject::<a href="ntqobject.html#connect">connect</a>(qApp, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
+ TQObject::<a href="ntqobject.html#connect">connect</a>(tqApp, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
return a.<a href="ntqapplication.html#exec">exec</a>();
}
diff --git a/doc/html/showimg-example.html b/doc/html/showimg-example.html
index 701b6930..fd1cda85 100644
--- a/doc/html/showimg-example.html
+++ b/doc/html/showimg-example.html
@@ -195,7 +195,7 @@ private slots:
si = file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Save image", saveimage );
sp = file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Save pixmap", savepixmap );
<a name="x1328"></a> file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q );
edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit );
@@ -865,7 +865,7 @@ int main( int argc, char **argv )
}
}
- TQObject::<a href="ntqobject.html#connect">connect</a>(qApp, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
+ TQObject::<a href="ntqobject.html#connect">connect</a>(tqApp, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
return a.<a href="ntqapplication.html#exec">exec</a>();
}
diff --git a/doc/html/simple-application-example.html b/doc/html/simple-application-example.html
index 25ee03d5..3676b6c7 100644
--- a/doc/html/simple-application-example.html
+++ b/doc/html/simple-application-example.html
@@ -206,7 +206,7 @@ private:
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, SLOT(<a href="ntqwidget.html#close">close</a>()), CTRL+Key_W );
-<a name="x1544"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", qApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q );
+<a name="x1544"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q );
<a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertSeparator();
diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html
index 95af018e..429e7736 100644
--- a/doc/html/simple-application.html
+++ b/doc/html/simple-application.html
@@ -292,7 +292,7 @@ example for a shorter and easier approach.)
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, SLOT(<a href="ntqwidget.html#close">close</a>()), CTRL+Key_W );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", qApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q );
</pre>
<p> ... the <em>Print</em> command with "What's This?" help, another separator and
two more commands (<em>Close</em> and <em>Quit</em>) without "What's This?" and pixmaps.
diff --git a/doc/html/sound-example.html b/doc/html/sound-example.html
index 2cb98706..21cebf2e 100644
--- a/doc/html/sound-example.html
+++ b/doc/html/sound-example.html
@@ -128,7 +128,7 @@ private:
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("Play 3 and 4 together", this, SLOT(doPlay34()));
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("Play all together", this, SLOT(doPlay1234()));
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("E&amp;xit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("E&amp;xit", tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
<a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem("&amp;File", file);
}
diff --git a/doc/html/t10-main-cpp.html b/doc/html/t10-main-cpp.html
index 857f5e2b..bd7de6d6 100644
--- a/doc/html/t10-main-cpp.html
+++ b/doc/html/t10-main-cpp.html
@@ -61,7 +61,7 @@ public:
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle-&gt;setRange( 5, 70 );
diff --git a/doc/html/t11-main-cpp.html b/doc/html/t11-main-cpp.html
index 54f44f72..58d2d550 100644
--- a/doc/html/t11-main-cpp.html
+++ b/doc/html/t11-main-cpp.html
@@ -61,7 +61,7 @@ public:
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle-&gt;setRange( 5, 70 );
diff --git a/doc/html/t12-main-cpp.html b/doc/html/t12-main-cpp.html
index ab8667db..cdfc499d 100644
--- a/doc/html/t12-main-cpp.html
+++ b/doc/html/t12-main-cpp.html
@@ -61,7 +61,7 @@ public:
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle-&gt;setRange( 5, 70 );
diff --git a/doc/html/t13-gamebrd-cpp.html b/doc/html/t13-gamebrd-cpp.html
index cde268bb..abf0072a 100644
--- a/doc/html/t13-gamebrd-cpp.html
+++ b/doc/html/t13-gamebrd-cpp.html
@@ -56,7 +56,7 @@ body { background: #ffffff; color: black; }
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle-&gt;setRange( 5, 70 );
diff --git a/doc/html/t14-gamebrd-cpp.html b/doc/html/t14-gamebrd-cpp.html
index 4f677049..8b3256dc 100644
--- a/doc/html/t14-gamebrd-cpp.html
+++ b/doc/html/t14-gamebrd-cpp.html
@@ -58,7 +58,7 @@ body { background: #ffffff; color: black; }
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle-&gt;setRange( 5, 70 );
@@ -112,7 +112,7 @@ body { background: #ffffff; color: black; }
accel-&gt;<a href="ntqaccel.html#connectItem">connectItem</a>( accel-&gt;<a href="ntqaccel.html#insertItem">insertItem</a>( Key_Return ),
this, SLOT(fire()) );
accel-&gt;<a href="ntqaccel.html#connectItem">connectItem</a>( accel-&gt;<a href="ntqaccel.html#insertItem">insertItem</a>( CTRL+Key_Q ),
- qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
<a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 10 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
diff --git a/doc/html/t7-main-cpp.html b/doc/html/t7-main-cpp.html
index 83ce9c1e..0e1c4695 100644
--- a/doc/html/t7-main-cpp.html
+++ b/doc/html/t7-main-cpp.html
@@ -61,7 +61,7 @@ public:
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
<a href="ntqgrid.html">TQGrid</a> *grid = new <a href="ntqgrid.html">TQGrid</a>( 4, this );
diff --git a/doc/html/t8-main-cpp.html b/doc/html/t8-main-cpp.html
index 7a22b88c..2d89e6bd 100644
--- a/doc/html/t8-main-cpp.html
+++ b/doc/html/t8-main-cpp.html
@@ -61,7 +61,7 @@ public:
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle-&gt;setRange( 5, 70 );
diff --git a/doc/html/t9-main-cpp.html b/doc/html/t9-main-cpp.html
index 8cc241ff..12004c19 100644
--- a/doc/html/t9-main-cpp.html
+++ b/doc/html/t9-main-cpp.html
@@ -61,7 +61,7 @@ public:
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle-&gt;setRange( 5, 70 );
diff --git a/doc/html/tabdialog-example.html b/doc/html/tabdialog-example.html
index a520a6d6..151dc0cc 100644
--- a/doc/html/tabdialog-example.html
+++ b/doc/html/tabdialog-example.html
@@ -106,7 +106,7 @@ protected:
setupTab2();
setupTab3();
- <a href="ntqobject.html#connect">connect</a>( this, SIGNAL( <a href="ntqtabdialog.html#applyButtonPressed">applyButtonPressed</a>() ), qApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ) );
+ <a href="ntqobject.html#connect">connect</a>( this, SIGNAL( <a href="ntqtabdialog.html#applyButtonPressed">applyButtonPressed</a>() ), tqApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ) );
}
void <a name="f201"></a>TabDialog::setupTab1()
diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html
index 820ea49a..93ee9592 100644
--- a/doc/html/themes-example.html
+++ b/doc/html/themes-example.html
@@ -2253,7 +2253,7 @@ private:
}
<a name="x318"></a> ag-&gt;<a href="qactiongroup.html#addTo">addTo</a>(style);
style-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- style-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Quit", qApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ), CTRL | Key_Q );
+ style-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Quit", tqApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ), CTRL | Key_Q );
<a href="ntqpopupmenu.html">TQPopupMenu</a> * help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertSeparator();
@@ -2262,7 +2262,7 @@ private:
help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "About &amp;TQt", this, SLOT(aboutTQt()));
#ifndef QT_NO_STYLE_WINDOWS
-<a name="x325"></a> qApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>( new NorwegianWoodStyle );
+<a name="x325"></a> tqApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>( new NorwegianWoodStyle );
#endif
}
@@ -2270,20 +2270,20 @@ void <a name="f232"></a>Themes::makeStyle(const <a href="ntqstring.html">TQStrin
{
if(style == "Norwegian Wood") {
#ifndef QT_NO_STYLE_WINDOWS
- qApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>( new NorwegianWoodStyle );
+ tqApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>( new NorwegianWoodStyle );
#endif
} else if( style == "Metal" ) {
#ifndef QT_NO_STYLE_WINDOWS
- qApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>( new MetalStyle );
+ tqApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>( new MetalStyle );
#endif
} else {
- qApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>(style);
+ tqApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>(style);
if(style == "Platinum") {
<a href="ntqpalette.html">TQPalette</a> p( TQColor( 239, 239, 239 ) );
-<a name="x324"></a> qApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE );
-<a name="x323"></a> qApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE );
+<a name="x324"></a> tqApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE );
+<a name="x323"></a> tqApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE );
} else if(style == "Windows") {
- qApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE );
+ tqApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE );
} else if(style == "CDE") {
<a href="ntqpalette.html">TQPalette</a> p( TQColor( 75, 123, 130 ) );
<a name="x332"></a> p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Base, TQColor( 55, 77, 78 ) );
@@ -2304,12 +2304,12 @@ void <a name="f232"></a>Themes::makeStyle(const <a href="ntqstring.html">TQStrin
p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Foreground, TQt::lightGray );
p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Text, TQt::lightGray );
p.<a href="ntqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::ButtonText, TQt::lightGray );
- qApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE );
- qApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( TQFont( "times", appFont.pointSize() ), TRUE );
+ tqApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE );
+ tqApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( TQFont( "times", appFont.pointSize() ), TRUE );
} else if(style == "Motif" || style == "MotifPlus") {
<a href="ntqpalette.html">TQPalette</a> p( TQColor( 192, 192, 192 ) );
- qApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE );
- qApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE );
+ tqApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE );
+ tqApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE );
}
}
}
diff --git a/doc/html/threads.html b/doc/html/threads.html
index 1a2fd8f2..16027c1c 100644
--- a/doc/html/threads.html
+++ b/doc/html/threads.html
@@ -239,7 +239,7 @@ operations. Operations such as creating a <a href="ntqpainter.html">TQPainter</
are examples of simple GUI operations:
<p> <pre>
...
- qApp-&gt;<a href="ntqapplication.html#lock">lock</a>();
+ tqApp-&gt;<a href="ntqapplication.html#lock">lock</a>();
<a href="ntqpainter.html">TQPainter</a> p;
p.<a href="ntqpainter.html#begin">begin</a>( mywidget );
@@ -247,7 +247,7 @@ are examples of simple GUI operations:
p.<a href="ntqpainter.html#drawLine">drawLine</a>( 0,0,100,100 );
p.<a href="ntqpainter.html#end">end</a>();
- qApp-&gt;<a href="ntqapplication.html#unlock">unlock</a>();
+ tqApp-&gt;<a href="ntqapplication.html#unlock">unlock</a>();
...
</pre>
diff --git a/doc/html/tictac-example.html b/doc/html/tictac-example.html
index 85579a1e..d8bc0949 100644
--- a/doc/html/tictac-example.html
+++ b/doc/html/tictac-example.html
@@ -479,7 +479,7 @@ void <a name="f195"></a>TicTacGameBoard::computerMove()
newGame = new <a href="ntqpushbutton.html">TQPushButton</a>( "Play!", this );
<a href="ntqobject.html#connect">connect</a>( newGame, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), SLOT(newGameClicked()) );
quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit", this );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
<a href="qhboxlayout.html">TQHBoxLayout</a> * b = new <a href="qhboxlayout.html">TQHBoxLayout</a>;
<a name="x19"></a> l-&gt;<a href="qboxlayout.html#addLayout">addLayout</a>( b );
b-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( newGame );
diff --git a/doc/html/tutorial1-04.html b/doc/html/tutorial1-04.html
index c28d5ca5..6d0f424a 100644
--- a/doc/html/tutorial1-04.html
+++ b/doc/html/tutorial1-04.html
@@ -63,7 +63,7 @@ public:
quit-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( 62, 40, 75, 30 );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
}
@@ -132,7 +132,7 @@ when you choose to, the child will automatically tell TQt about its
imminent death.)
<p> The setGeometry() call does the same as move() and resize() did in the
previous chapters.
-<p> <pre> <a name="x2306"></a><a name="x2304"></a> <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+<p> <pre> <a name="x2306"></a><a name="x2304"></a> <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
}
</pre>
<p> Because the MyWidget class doesn't know about the application object, it
@@ -141,7 +141,7 @@ has to connect to TQt's pointer to it, <tt>qApp</tt>.
about its environment in order to be as general and reusable as
possible.
<p> Knowing the name of the application object would break this principle,
-so TQt offers an alias, qApp, for the cases in which a component such as
+so TQt offers an alias, tqApp, for the cases in which a component such as
MyWidget needs to talk to the application object.
<p> <pre> int main( int argc, char **argv )
{
diff --git a/doc/html/tutorial1-05.html b/doc/html/tutorial1-05.html
index 772569d0..b7db3f3b 100644
--- a/doc/html/tutorial1-05.html
+++ b/doc/html/tutorial1-05.html
@@ -62,7 +62,7 @@ public:
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
<a href="ntqlcdnumber.html">TQLCDNumber</a> *lcd = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 2, this, "lcd" );
diff --git a/doc/html/tutorial1-06.html b/doc/html/tutorial1-06.html
index 3c9f4c9c..fb8da088 100644
--- a/doc/html/tutorial1-06.html
+++ b/doc/html/tutorial1-06.html
@@ -80,7 +80,7 @@ public:
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
<a href="ntqgrid.html">TQGrid</a> *grid = new <a href="ntqgrid.html">TQGrid</a>( 4, this );
@@ -139,7 +139,7 @@ is renamed.
<a href="ntqpushbutton.html">TQPushButton</a> *quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
<a name="x2328"></a> quit-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
- <a name="x2321"></a> <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a name="x2321"></a> <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
</pre>
<p> The push button that used to be in what is now LCDRange has been
separated so that we can have one "Quit" button and many LCDRange
diff --git a/doc/html/tutorial1-14.html b/doc/html/tutorial1-14.html
index f3d7a909..c5a94dbc 100644
--- a/doc/html/tutorial1-14.html
+++ b/doc/html/tutorial1-14.html
@@ -226,7 +226,7 @@ key Ctrl+Q is pressed. Because Enter is sometimes Return and there
are even keyboards with <em>both</em> keys, we make both Enter and Return
invoke fire().
<p> <pre> accel-&gt;<a href="ntqaccel.html#connectItem">connectItem</a>( accel-&gt;<a href="ntqaccel.html#insertItem">insertItem</a>( CTRL+Key_Q ),
- qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
</pre>
<p> And then we set up Ctrl+Q to do the same thing as Alt+Q. Some
people are more used to Ctrl+Q (and anyway it shows how do do it).
diff --git a/doc/html/tutorial2-05.html b/doc/html/tutorial2-05.html
index 8583795f..35a797c4 100644
--- a/doc/html/tutorial2-05.html
+++ b/doc/html/tutorial2-05.html
@@ -499,7 +499,7 @@ item id.
{
if ( okToClear() ) {
saveOptions();
- qApp-&gt;<a href="ntqapplication.html#exit">exit</a>( 0 );
+ tqApp-&gt;<a href="ntqapplication.html#exit">exit</a>( 0 );
}
}
</pre>
diff --git a/doc/html/xform-example.html b/doc/html/xform-example.html
index 864f94f5..d6f88907 100644
--- a/doc/html/xform-example.html
+++ b/doc/html/xform-example.html
@@ -327,7 +327,7 @@ void <a name="f403"></a>XFormControl::changeMode(int m)
else
rb_pic-&gt;<a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE);
}
-<a name="x1217"></a> qApp-&gt;<a href="ntqapplication.html#flushX">flushX</a>();
+<a name="x1217"></a> tqApp-&gt;<a href="ntqapplication.html#flushX">flushX</a>();
}
<a name="f388"></a>ShowXForm::ShowXForm( const <a href="ntqfont.html">TQFont</a> &amp;initialFont,
diff --git a/doc/i18n.doc b/doc/i18n.doc
index 02bb1954..d10a4f30 100644
--- a/doc/i18n.doc
+++ b/doc/i18n.doc
@@ -208,7 +208,7 @@ directly:
void same_global_function( LoginWidget *logwid )
{
QLabel *label = new QLabel(
- qApp->translate("LoginWidget", "Password:"),
+ tqApp->translate("LoginWidget", "Password:"),
logwid );
}
\endcode
@@ -245,7 +245,7 @@ Example of QT_TRANSLATE_NOOP():
QString global_greeting( int greet_type )
{
- return qApp->translate( "FriendlyConversation",
+ return tqApp->translate( "FriendlyConversation",
greeting_strings[greet_type] );
}
\endcode
diff --git a/doc/man/man3/qapplication.3qt b/doc/man/man3/qapplication.3qt
index 10d6bb92..7b67978e 100644
--- a/doc/man/man3/qapplication.3qt
+++ b/doc/man/man3/qapplication.3qt
@@ -792,12 +792,12 @@ This function is particularly useful for applications with many top-level window
.br
QPopupMenu* file = new QPopupMenu( this );
.br
- file->insertItem( "&Quit", qApp, SLOT(closeAllWindows()), CTRL+Key_Q );
+ file->insertItem( "&Quit", tqApp, SLOT(closeAllWindows()), CTRL+Key_Q );
.br
.br
// when the last window is closed, the application should quit
.br
- connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( quit() ) );
+ connect( tqApp, SIGNAL( lastWindowClosed() ), tqApp, SLOT( quit() ) );
.br
.fi
.PP
@@ -1047,10 +1047,10 @@ For certain types of events (e.g. mouse and key events), the event will be propa
.PP
There are five different ways that events can be processed; reimplementing this virtual function is just one of them. All five approaches are listed below: <ol type=1>
.TP
-Reimplementing this function. This is very powerful, providing complete control; but only one subclass can be qApp.
+Reimplementing this function. This is very powerful, providing complete control; but only one subclass can be tqApp.
.IP
.TP
-Installing an event filter on qApp. Such an event filter is able to process all events for all widgets, so it's just as powerful as reimplementing notify(); furthermore, it's possible to have more than one application-global event filter. Global event filters even see mouse events for disabled widgets, and if global mouse tracking is enabled, as well as mouse move events for all widgets.
+Installing an event filter on tqApp. Such an event filter is able to process all events for all widgets, so it's just as powerful as reimplementing notify(); furthermore, it's possible to have more than one application-global event filter. Global event filters even see mouse events for disabled widgets, and if global mouse tracking is enabled, as well as mouse move events for all widgets.
.IP
.TP
Reimplementing QObject::event() (as QWidget does). If you do this you get Tab key presses, and you get to see the events before any widget-specific event filters.
@@ -1131,7 +1131,7 @@ Example:
.br
QPushButton *quitButton = new QPushButton( "Quit" );
.br
- connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quitButton, SIGNAL(clicked()), tqApp, SLOT(quit()) );
.br
.fi
.PP
diff --git a/doc/man/man3/qcolor.3qt b/doc/man/man3/qcolor.3qt
index 76793dd4..17024287 100644
--- a/doc/man/man3/qcolor.3qt
+++ b/doc/man/man3/qcolor.3qt
@@ -167,7 +167,7 @@ QColor \- Colors based on RGB or HSV values
.BI "int \fBqGray\fR ( int r, int g, int b )"
.br
.ti -1c
-.BI "int \fBqGray\fR ( qRgb rgb )"
+.BI "int \fBqGray\fR ( tqRgb rgb )"
.br
.in -1c
.SH DESCRIPTION
@@ -482,7 +482,7 @@ The return type \fIQRgb\fR is equivalent to \fCunsigned\fR \fCint\fR.
.PP
For an invalid color, the alpha value of the returned color is unspecified.
.PP
-See also setRgb(), hsv(), qRed(), qBlue(), qGreen(), and isValid().
+See also setRgb(), hsv(), tqRed(), tqBlue(), tqGreen(), and isValid().
.SH "void QColor::rgb ( int * r, int * g, int * b ) const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. Use getRgb() instead
.SH "void QColor::setHsv ( int h, int s, int v )"
@@ -531,40 +531,40 @@ See also Format of the QDataStream operators.
Reads a color object, \fIc\fR, from the stream, \fIs\fR.
.PP
See also Format of the QDataStream operators.
-.SH "int qAlpha ( QRgb rgba )"
+.SH "int tqAlpha ( QRgb rgba )"
Returns the alpha component of the RGBA quadruplet \fIrgba\fR.
-.SH "int qBlue ( QRgb rgb )"
+.SH "int tqBlue ( QRgb rgb )"
Returns the blue component of the RGB triplet \fIrgb\fR.
.PP
-See also qRgb() and QColor::blue().
-.SH "int qGray ( int r, int g, int b )"
+See also tqRgb() and QColor::blue().
+.SH "int tqGray ( int r, int g, int b )"
Returns a gray value 0..255 from the (\fIr\fR, \fIg\fR, \fIb\fR) triplet.
.PP
The gray value is calculated using the formula (r*11 + g*16 + b*5)/32.
-.SH "int qGray ( qRgb rgb )"
+.SH "int tqGray ( tqRgb rgb )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns a gray value 0..255 from the given \fIrgb\fR colour.
-.SH "int qGreen ( QRgb rgb )"
+.SH "int tqGreen ( QRgb rgb )"
Returns the green component of the RGB triplet \fIrgb\fR.
.PP
-See also qRgb() and QColor::green().
-.SH "int qRed ( QRgb rgb )"
+See also tqRgb() and QColor::green().
+.SH "int tqRed ( QRgb rgb )"
Returns the red component of the RGB triplet \fIrgb\fR.
.PP
-See also qRgb() and QColor::red().
-.SH "QRgb qRgb ( int r, int g, int b )"
+See also tqRgb() and QColor::red().
+.SH "QRgb tqRgb ( int r, int g, int b )"
Returns the RGB triplet \fI(r,g,b)\fR.
.PP
The return type QRgb is equivalent to \fCunsigned\fR \fCint\fR.
.PP
-See also qRgba(), qRed(), qGreen(), and qBlue().
-.SH "QRgb qRgba ( int r, int g, int b, int a )"
+See also tqRgba(), tqRed(), tqGreen(), and tqBlue().
+.SH "QRgb tqRgba ( int r, int g, int b, int a )"
Returns the RGBA quadruplet \fI(r,g,b,a)\fR.
.PP
The return type QRgba is equivalent to \fCunsigned\fR \fCint\fR.
.PP
-See also qRgb(), qRed(), qGreen(), and qBlue().
+See also tqRgb(), tqRed(), tqGreen(), and tqBlue().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqcolor.html
diff --git a/doc/man/man3/qfile.3qt b/doc/man/man3/qfile.3qt
index 841ef89f..b06be825 100644
--- a/doc/man/man3/qfile.3qt
+++ b/doc/man/man3/qfile.3qt
@@ -258,7 +258,7 @@ The returned strings are not translated with the QObject::tr() or QApplication::
.br
tr("Open failed"),
.br
- tr("Could not open file for reading: %1").arg( qApp->translate("QFile",f.errorString()) )
+ tr("Could not open file for reading: %1").arg( tqApp->translate("QFile",f.errorString()) )
.br
);
.br
diff --git a/doc/man/man3/qglcolormap.3qt b/doc/man/man3/qglcolormap.3qt
index 726f2c8e..a7e0484f 100644
--- a/doc/man/man3/qglcolormap.3qt
+++ b/doc/man/man3/qglcolormap.3qt
@@ -94,7 +94,7 @@ Example of use:
.br
for ( int i = 0; i < colormap.size(); i++ )
.br
- colormap.setEntry( i, qRgb( i, i, i ) );
+ colormap.setEntry( i, tqRgb( i, i, i ) );
.br
.br
widget.setColormap( colormap );
diff --git a/doc/man/man3/qimage.3qt b/doc/man/man3/qimage.3qt
index fe1300d5..ad47abd2 100644
--- a/doc/man/man3/qimage.3qt
+++ b/doc/man/man3/qimage.3qt
@@ -311,7 +311,7 @@ An image has the parameters width, height and depth (bits per pixel, bpp), a col
.PP
32-bpp images encode an RGB value in 24 bits and ignore the color table. The most significant byte is used for the alpha buffer.
.PP
-An entry in the color table is an RGB triplet encoded as a \fCuint\fR. Use the qRed(), qGreen() and qBlue() functions (ntqcolor.h) to access the components, and qRgb to make an RGB triplet (see the QColor class documentation).
+An entry in the color table is an RGB triplet encoded as a \fCuint\fR. Use the tqRed(), tqGreen() and tqBlue() functions (ntqcolor.h) to access the components, and tqRgb to make an RGB triplet (see the QColor class documentation).
.PP
1-bpp (monochrome) images have a color table with a most two colors. There are two different formats: big endian (MSB first) or little endian (LSB first) bit order. To access a single bit you will must do some bit shifts:
.PP
@@ -341,7 +341,7 @@ If this looks complicated, it might be a good idea to convert the 1-bpp image to
.br
// set entry 19 in the color table to yellow
.br
- image.setColor( 19, qRgb(255,255,0) );
+ image.setColor( 19, tqRgb(255,255,0) );
.br
// set 8 bit pixel at (x,y) to value yellow (in color table)
.br
@@ -359,7 +359,7 @@ If this looks complicated, it might be a good idea to convert the 1-bpp image to
.br
uint *p = (uint *)image.scanLine(y) + x;
.br
- *p = qRgb(255,255,0);
+ *p = tqRgb(255,255,0);
.br
.fi
.PP
@@ -503,7 +503,7 @@ See also numBytes() and scanLine().
.SH "QRgb QImage::color ( int i ) const"
Returns the color in the color table at index \fIi\fR. The first color is at index 0.
.PP
-A color value is an RGB triplet. Use the qRed(), qGreen() and qBlue() functions (defined in ntqcolor.h) to get the color value components.
+A color value is an RGB triplet. Use the tqRed(), tqGreen() and tqBlue() functions (defined in ntqcolor.h) to get the color value components.
.PP
See also setColor(), numColors(), and QColor.
.PP
@@ -798,7 +798,7 @@ Returns the color of the pixel at the coordinates (\fIx\fR, \fIy\fR).
.PP
If (\fIx\fR, \fIy\fR) is not on the image, the results are undefined.
.PP
-See also setPixel(), qRed(), qGreen(), qBlue(), and valid().
+See also setPixel(), tqRed(), tqGreen(), tqBlue(), and valid().
.PP
Examples:
.)l canvas/canvas.cpp and qmag/qmag.cpp.
@@ -875,7 +875,7 @@ Returns a pointer to the pixel data at the scanline with index \fIi\fR. The firs
.PP
The scanline data is aligned on a 32-bit boundary.
.PP
-\fBWarning:\fR If you are accessing 32-bpp image data, cast the returned pointer to \fCQRgb*\fR (QRgb has a 32-bit size) and use it to read/write the pixel value. You cannot use the \fCuchar*\fR pointer directly, because the pixel format depends on the byte order on the underlying platform. Hint: use qRed(), qGreen() and qBlue(), etc. (ntqcolor.h) to access the pixels.
+\fBWarning:\fR If you are accessing 32-bpp image data, cast the returned pointer to \fCQRgb*\fR (QRgb has a 32-bit size) and use it to read/write the pixel value. You cannot use the \fCuchar*\fR pointer directly, because the pixel format depends on the byte order on the underlying platform. Hint: use tqRed(), tqGreen() and tqBlue(), etc. (ntqcolor.h) to access the pixels.
.PP
\fBWarning:\fR If you are accessing 16-bpp image data, you must handle endianness yourself. (Qt/Embedded only)
.PP
@@ -897,7 +897,7 @@ See also hasAlphaBuffer() and createAlphaMask().
.SH "void QImage::setColor ( int i, QRgb c )"
Sets a color in the color table at index \fIi\fR to \fIc\fR.
.PP
-A color value is an RGB triplet. Use the qRgb() function (defined in ntqcolor.h) to make RGB triplets.
+A color value is an RGB triplet. Use the tqRgb() function (defined in ntqcolor.h) to make RGB triplets.
.PP
See also color(), setNumColors(), and numColors().
.PP
@@ -922,7 +922,7 @@ If (\fIx\fR, \fIy\fR) is not valid, the result is undefined.
.PP
If the image is a paletted image (depth() <= 8) and \fIindex_or_rgb\fR >= numColors(), the result is undefined.
.PP
-See also pixelIndex(), pixel(), qRgb(), qRgba(), and valid().
+See also pixelIndex(), pixel(), tqRgb(), tqRgba(), and valid().
.SH "void QImage::setText ( const char * key, const char * lang, const QString & s )"
Records string \fIs\fR for the keyword \fIkey\fR. The \fIkey\fR should be a portable keyword recognizable by other software - some suggested values can be found in the PNG specification. \fIs\fR can be any text. \fIlang\fR should specify the language code (see RFC 1766) or 0.
.SH "QSize QImage::size () const"
diff --git a/doc/man/man3/qprogressdialog.3qt b/doc/man/man3/qprogressdialog.3qt
index 89cc713a..2e1dd7cf 100644
--- a/doc/man/man3/qprogressdialog.3qt
+++ b/doc/man/man3/qprogressdialog.3qt
@@ -161,7 +161,7 @@ for ( int i = 0; i < numFiles; i++ ) {
.br
progress.setProgress( i );
.br
- qApp->processEvents();
+ tqApp->processEvents();
.br
.br
if ( progress.wasCanceled() )
diff --git a/doc/man/man3/qsplashscreen.3qt b/doc/man/man3/qsplashscreen.3qt
index c8670868..ef0e7602 100644
--- a/doc/man/man3/qsplashscreen.3qt
+++ b/doc/man/man3/qsplashscreen.3qt
@@ -114,13 +114,13 @@ The user can hide the splash screen by clicking on it with the mouse. Since the
.br
splash->message( "Loaded modules" );
.br
- qApp->processEvents();
+ tqApp->processEvents();
.br
... // Establishing connections
.br
splash->message( "Established connections" );
.br
- qApp->processEvents();
+ tqApp->processEvents();
.br
.fi
.PP
diff --git a/doc/porting2.doc b/doc/porting2.doc
index 26ff61b5..5b70b5fd 100644
--- a/doc/porting2.doc
+++ b/doc/porting2.doc
@@ -576,10 +576,10 @@ be in the more efficient order (for typical contemporary hardware). If your
code made assumptions about the order, you will get blue where you expect
red and vice versa (you'll not notice the problem if you use shades of
gray, green, or magenta). You should port your code to use the
-creator function qRgb(int r,int g,int b) and the
-access functions qRed(QRgb), qBlue(QRgb), and qGreen(QRgb).
+creator function tqRgb(int r,int g,int b) and the
+access functions tqRed(QRgb), tqBlue(QRgb), and tqGreen(QRgb).
If you are using the alpha channel, it hasn't moved, but you should use
-the functions qRgba(int,int,int,int) and qAlpha(QRgb). Note also that
+the functions tqRgba(int,int,int,int) and tqAlpha(QRgb). Note also that
QColor::pixel() does <i>not</i> return a QRgb (it never did on all platforms,
but your code may have assumed so on your platform) - this may also produce
strange color results - use QColor::rgb() if you want a QRgb.
diff --git a/doc/threads.doc b/doc/threads.doc
index 21f98695..f05fe8d0 100644
--- a/doc/threads.doc
+++ b/doc/threads.doc
@@ -255,7 +255,7 @@ are examples of simple GUI operations:
\code
...
- qApp->lock();
+ tqApp->lock();
QPainter p;
p.begin( mywidget );
@@ -263,7 +263,7 @@ are examples of simple GUI operations:
p.drawLine( 0,0,100,100 );
p.end();
- qApp->unlock();
+ tqApp->unlock();
...
\endcode
diff --git a/doc/tutorial.doc b/doc/tutorial.doc
index c015928c..5ed29990 100644
--- a/doc/tutorial.doc
+++ b/doc/tutorial.doc
@@ -445,18 +445,18 @@ imminent death.)
The setGeometry() call does the same as move() and resize() did in the
previous chapters.
-\printline qApp
+\printline tqApp
\printline }
Because the MyWidget class doesn't know about the application object, it
-has to connect to Qt's pointer to it, \c qApp.
+has to connect to Qt's pointer to it, \c tqApp.
A widget is a software component and should know as little as possible
about its environment in order to be as general and reusable as
possible.
Knowing the name of the application object would break this principle,
-so Qt offers an alias, qApp, for the cases in which a component such as
+so Qt offers an alias, tqApp, for the cases in which a component such as
MyWidget needs to talk to the application object.
\printuntil }
diff --git a/examples/action/application.cpp b/examples/action/application.cpp
index 2151c8f6..2571379d 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 1e179b2a..11b93a8e 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 9c87aafb..ee7b945f 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 e4a498b2..d2f761db 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 47bc9b6a..86405b51 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 4a4c4eff..92c720d7 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 bc1da57d..acb90dbd 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 b804a1f5..c9106dc3 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 2c7152b5..0cd5006a 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 1fba8925..925fdf13 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 295847ac..d2d86ec3 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 c17aa508..d76f16a0 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 4831efe5..330c6ad3 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 fc5a3e82..2af77d59 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 89cddb44..98442281 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 053a54ff..724e1ed4 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 fdff78d0..e43634c4 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 4135054f..77cce33f 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 87bfde22..e40f96be 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 c1c3cce0..c1be353b 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 028bab26..1b8604f5 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 12460172..14e1b583 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 93fbeb43..da2b0b9e 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 26daf93b..7d9ba68e 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 c7644b10..fa6f83ac 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 3c8b94b3..827d5cdb 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 58105a51..7bff123b 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 0402f634..116ac0cb 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 6ae2c72f..992880dd 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 68c2aa4f..43a2cf24 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 ed40f9ec..9176fe4b 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 1309207b..59b6c244 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 0c79cd6a..2b3761b1 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 ca1ec488..22e367b4 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 c96e3d9b..45d3a0ea 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 a50573bb..d95482ff 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 a6a2e6c0..b02d0d17 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 0ff879ac..aceb71cc 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 54887170..3ed6beee 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 34504300..9753748e 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 01ab2a47..c5b29d70 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 4d791127..5f045448 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 ec549a3a..066af1f3 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 14b1e79a..e3d17d87 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 520cef7f..03a3cf3e 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 e7db2d2f..f44853dd 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 2b985a41..1d68c04b 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 526d0deb..579dbb51 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 8f8ac6c5..f2808e90 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 6211ac93..dd2b107f 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 d71a9542..33ea83fa 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 8e7946ad..dd709c5b 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 e3441c85..66a3a497 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 3cd7e040..1f541762 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 3d037586..03e4fa27 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 a72de7e3..6d7c217d 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 2f6ec11e..8a1f5d69 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 8335660c..d9632d6e 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,
diff --git a/extensions/nsplugin/src/qnp.cpp b/extensions/nsplugin/src/qnp.cpp
index e26bb958..108223fa 100644
--- a/extensions/nsplugin/src/qnp.cpp
+++ b/extensions/nsplugin/src/qnp.cpp
@@ -218,9 +218,9 @@ static HHOOK hhook = 0;
LRESULT CALLBACK FilterProc( int nCode, WPARAM wParam, LPARAM lParam )
{
- if ( qApp ) {
- qApp->sendPostedEvents();
- qApp->eventLoop()->activateSocketNotifiers();
+ if ( tqApp ) {
+ tqApp->sendPostedEvents();
+ tqApp->eventLoop()->activateSocketNotifiers();
qWinProcessConfigRequests();
}
@@ -326,7 +326,7 @@ NPP_Shutdown(void)
if ( original_x_errhandler )
XSetErrorHandler( original_x_errhandler );
#endif
- if ( qApp) {
+ if ( tqApp) {
#ifdef Q_WS_WIN32
if ( hhook )
UnhookWindowsHookEx( hhook );
@@ -469,7 +469,7 @@ NPP_SetWindow(NPP instance, NPWindow* window)
This->height = window->height;
- if (!qApp) {
+ if (!tqApp) {
#ifdef Q_WS_X11
// We are the first TQt-based plugin to arrive
event_loop = new TQNPXt( "qnp", XtDisplayToApplicationContext(This->display) );
@@ -1734,7 +1734,7 @@ Boolean qnpxt_event_dispatcher( XEvent *event )
do_deliver = FALSE;
last_xevent = event;
- bool delivered = do_deliver && ( qApp->x11ProcessEvent( event ) != -1 );
+ bool delivered = do_deliver && ( tqApp->x11ProcessEvent( event ) != -1 );
last_xevent = 0;
if ( qnpxt ) {
switch ( event->type ) {
@@ -1887,15 +1887,15 @@ void TQNPXt::appStartingUp()
XtFree( (char *) displays );
if ( ! display_found ) {
- int argc = qApp->argc();
+ int argc = tqApp->argc();
XtDisplayInitialize( d->appContext,
TQPaintDevice::x11AppDisplay(),
- qApp->name(),
+ tqApp->name(),
d->applicationClass,
d->options,
d->numOptions,
&argc,
- qApp->argv() );
+ tqApp->argv() );
}
d->hookMeUp();
diff --git a/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp b/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
index 43328071..a184874b 100644
--- a/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
+++ b/plugins/src/inputmethods/xim/qximinputcontext_x11.cpp
@@ -628,8 +628,8 @@ bool TQXIMInputContext::x11FilterEvent( TQWidget *keywidget, XEvent *event )
if ( focus_widget )
keywidget = (TQETWidget*)focus_widget;
if ( !keywidget ) {
- if ( qApp->inPopupMode() ) // no focus widget, see if we have a popup
- keywidget = (TQETWidget*) qApp->activePopupWidget();
+ if ( tqApp->inPopupMode() ) // no focus widget, see if we have a popup
+ keywidget = (TQETWidget*) tqApp->activePopupWidget();
else if ( widget )
keywidget = (TQETWidget*)widget->topLevelWidget();
}
diff --git a/src/dialogs/ntqmessagebox.h b/src/dialogs/ntqmessagebox.h
index 0296612a..11b79fc3 100644
--- a/src/dialogs/ntqmessagebox.h
+++ b/src/dialogs/ntqmessagebox.h
@@ -211,7 +211,7 @@ private: // Disabled copy constructor and operator=
#define QT_REQUIRE_VERSION( argc, argv, str ) { TQString s=TQString::fromLatin1(str);\
TQString sq=TQString::fromLatin1(qVersion()); if ( (sq.section('.',0,0).toInt()<<16)+\
(sq.section('.',1,1).toInt()<<8)+sq.section('.',2,2).toInt()<(s.section('.',0,0).toInt()<<16)+\
-(s.section('.',1,1).toInt()<<8)+s.section('.',2,2).toInt() ){if ( !qApp){ int c=0; new \
+(s.section('.',1,1).toInt()<<8)+s.section('.',2,2).toInt() ){if ( !tqApp){ int c=0; new \
TQApplication(argc,argv);} TQString s = TQApplication::tr("Executable '%1' requires TQt "\
"%2, found TQt %3.").arg(TQString::fromLatin1(tqAppName())).arg(TQString::fromLatin1(\
str)).arg(TQString::fromLatin1(qVersion()) ); TQMessageBox::critical( 0, TQApplication::tr(\
diff --git a/src/dialogs/qcolordialog.cpp b/src/dialogs/qcolordialog.cpp
index 68838c45..d365e96f 100644
--- a/src/dialogs/qcolordialog.cpp
+++ b/src/dialogs/qcolordialog.cpp
@@ -448,10 +448,10 @@ static void initRGB()
for ( int g = 0; g < 4; g++ )
for ( int r = 0; r < 4; r++ )
for ( int b = 0; b < 3; b++ )
- stdrgb[i++] = qRgb( r*255/3, g*255/3, b*255/2 );
+ stdrgb[i++] = tqRgb( r*255/3, g*255/3, b*255/2 );
for ( i = 0; i < 2*8; i++ )
- cusrgb[i] = qRgb(0xff,0xff,0xff);
+ cusrgb[i] = tqRgb(0xff,0xff,0xff);
}
/*!
@@ -1077,7 +1077,7 @@ void TQColorShowLabel::mouseReleaseEvent( TQMouseEvent * )
TQColorShower::TQColorShower( TQWidget *parent, const char *name )
:TQWidget( parent, name)
{
- curCol = qRgb( -1, -1, -1 );
+ curCol = tqRgb( -1, -1, -1 );
TQColIntValidator *val256 = new TQColIntValidator( 0, 255, this );
TQColIntValidator *val360 = new TQColIntValidator( 0, 360, this );
@@ -1161,9 +1161,9 @@ void TQColorShower::rgbEd()
{
rgbOriginal = TRUE;
if ( alphaEd->isVisible() )
- curCol = qRgba( rEd->val(), gEd->val(), bEd->val(), currentAlpha() );
+ curCol = tqRgba( rEd->val(), gEd->val(), bEd->val(), currentAlpha() );
else
- curCol = qRgb( rEd->val(), gEd->val(), bEd->val() );
+ curCol = tqRgb( rEd->val(), gEd->val(), bEd->val() );
rgb2hsv(currentColor(), hue, sat, val );
@@ -1184,9 +1184,9 @@ void TQColorShower::hsvEd()
curCol = TQColor( hue, sat, val, TQColor::Hsv ).rgb();
- rEd->setNum( qRed(currentColor()) );
- gEd->setNum( qGreen(currentColor()) );
- bEd->setNum( qBlue(currentColor()) );
+ rEd->setNum( tqRed(currentColor()) );
+ gEd->setNum( tqGreen(currentColor()) );
+ bEd->setNum( tqBlue(currentColor()) );
showCurrentColor();
emit newCol( currentColor() );
@@ -1203,9 +1203,9 @@ void TQColorShower::setRgb( TQRgb rgb )
sEd->setNum( sat );
vEd->setNum( val );
- rEd->setNum( qRed(currentColor()) );
- gEd->setNum( qGreen(currentColor()) );
- bEd->setNum( qBlue(currentColor()) );
+ rEd->setNum( tqRed(currentColor()) );
+ gEd->setNum( tqGreen(currentColor()) );
+ bEd->setNum( tqBlue(currentColor()) );
showCurrentColor();
}
@@ -1220,9 +1220,9 @@ void TQColorShower::setHsv( int h, int s, int v )
sEd->setNum( sat );
vEd->setNum( val );
- rEd->setNum( qRed(currentColor()) );
- gEd->setNum( qGreen(currentColor()) );
- bEd->setNum( qBlue(currentColor()) );
+ rEd->setNum( tqRed(currentColor()) );
+ gEd->setNum( tqGreen(currentColor()) );
+ bEd->setNum( tqBlue(currentColor()) );
showCurrentColor();
}
@@ -1303,7 +1303,7 @@ TQColorDialogPrivate::TQColorDialogPrivate( TQColorDialog *dialog ) :
compact = FALSE;
// small displays (e.g. PDAs cannot fit the full color dialog,
// so just use the color picker.
- if ( qApp->desktop()->width() < 480 || qApp->desktop()->height() < 350 )
+ if ( tqApp->desktop()->width() < 480 || tqApp->desktop()->height() < 350 )
compact = TRUE;
nextCust = 0;
@@ -1545,14 +1545,14 @@ TQRgb TQColorDialog::getRgba( TQRgb initial, bool *ok,
#endif
dlg->setColor( initial );
dlg->selectColor( initial );
- dlg->setSelectedAlpha( qAlpha(initial) );
+ dlg->setSelectedAlpha( tqAlpha(initial) );
int resultCode = dlg->exec();
TQColor::leaveAllocContext();
TQRgb result = initial;
if ( resultCode == TQDialog::Accepted ) {
TQRgb c = dlg->color().rgb();
int alpha = dlg->selectedAlpha();
- result = qRgba( qRed(c), qGreen(c), qBlue(c), alpha );
+ result = tqRgba( tqRed(c), tqGreen(c), tqBlue(c), alpha );
}
if ( ok )
*ok = resultCode == TQDialog::Accepted;
diff --git a/src/dialogs/qdialog.cpp b/src/dialogs/qdialog.cpp
index 1ef49e0c..a25ad609 100644
--- a/src/dialogs/qdialog.cpp
+++ b/src/dialogs/qdialog.cpp
@@ -359,15 +359,15 @@ void TQDialog::hideSpecial()
TQPushButton *pb;
while ( (pb = (TQPushButton*)it.current()) ) {
if ( !showOK &&
- pb->text() == qApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Ok] ) ) {
+ pb->text() == tqApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Ok] ) ) {
pb->hide();
showOK = TRUE;
} else if ( !showX &&
- pb->text() == qApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Cancel] ) ) {
+ pb->text() == tqApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Cancel] ) ) {
pb->hide();
showX = TRUE;
} else if ( !showQ &&
- pb->text() == qApp->tr("Help") ) {
+ pb->text() == tqApp->tr("Help") ) {
pb->hide();
showQ = TRUE;
}
@@ -432,7 +432,7 @@ int TQDialog::exec()
show();
in_loop = TRUE;
- qApp->enter_loop();
+ tqApp->enter_loop();
if ( !wasShowModal )
clearWFlags( WShowModal );
@@ -465,14 +465,14 @@ void TQDialog::done( int r )
setResult( r );
// emulate TQWidget::close()
- bool isMain = qApp->mainWidget() == this;
+ bool isMain = tqApp->mainWidget() == this;
bool checkLastWindowClosed = isTopLevel() && !isPopup();
if ( checkLastWindowClosed
- && qApp->receivers(SIGNAL(lastWindowClosed())) ) {
+ && tqApp->receivers(SIGNAL(lastWindowClosed())) ) {
/* if there is no non-withdrawn top level window left (except
the desktop, popups, or dialogs with parents), we emit the
lastWindowClosed signal */
- TQWidgetList *list = qApp->topLevelWidgets();
+ TQWidgetList *list = tqApp->topLevelWidgets();
TQWidget *widget = list->first();
while ( widget ) {
if ( !widget->isHidden()
@@ -484,10 +484,10 @@ void TQDialog::done( int r )
}
delete list;
if ( widget == 0 )
- emit qApp->lastWindowClosed();
+ emit tqApp->lastWindowClosed();
}
if ( isMain )
- qApp->quit();
+ tqApp->quit();
else if ( testWFlags(WDestructiveClose) ) {
clearWFlags(WDestructiveClose);
deleteLater();
@@ -644,8 +644,8 @@ bool TQDialog::event( TQEvent *e )
{
TQString bName =
(e->type() == TQEvent::OkRequest)
- ? qApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Ok] )
- : qApp->tr( "Help" );
+ ? tqApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Ok] )
+ : tqApp->tr( "Help" );
TQObjectList *list = queryList( "TQPushButton" );
TQObjectListIt it( *list );
@@ -712,10 +712,10 @@ void TQDialog::show()
#if defined(Q_WS_X11)
if (!parentWidget() && testWFlags(WShowModal)
- && qApp->mainWidget() && qApp->mainWidget()->isVisible()
- && !qApp->mainWidget()->isMinimized()) {
+ && tqApp->mainWidget() && tqApp->mainWidget()->isVisible()
+ && !tqApp->mainWidget()->isMinimized()) {
// make sure the transient for hint is set properly for modal dialogs
- x11SetWindowTransient( qApp->mainWidget());
+ x11SetWindowTransient( tqApp->mainWidget());
}
#endif // Q_WS_X11
@@ -900,7 +900,7 @@ void TQDialog::hide()
TQWidget::hide();
if ( in_loop ) {
in_loop = FALSE;
- qApp->exit_loop();
+ tqApp->exit_loop();
}
}
diff --git a/src/dialogs/qerrormessage.cpp b/src/dialogs/qerrormessage.cpp
index a33872bb..70e67068 100644
--- a/src/dialogs/qerrormessage.cpp
+++ b/src/dialogs/qerrormessage.cpp
@@ -226,8 +226,8 @@ TQErrorMessage * TQErrorMessage::qtHandler()
qtMessageHandler = new TQErrorMessage( 0, "automatic message handler" );
qAddPostRoutine( deleteStaticcTQErrorMessage ); // clean up
#ifndef QT_NO_WIDGET_TOPEXTRA
- if ( qApp->mainWidget() )
- qtMessageHandler->setCaption( qApp->mainWidget()->caption() );
+ if ( tqApp->mainWidget() )
+ qtMessageHandler->setCaption( tqApp->mainWidget()->caption() );
#endif
qInstallMsgHandler( jump );
}
diff --git a/src/dialogs/qfiledialog.cpp b/src/dialogs/qfiledialog.cpp
index fddc5716..019d3d56 100644
--- a/src/dialogs/qfiledialog.cpp
+++ b/src/dialogs/qfiledialog.cpp
@@ -616,7 +616,7 @@ static void makeVariables() {
detailViewMode = FALSE;
#if defined(Q_WS_WIN)
if ( !fileIconProvider )
- fileIconProvider = new TQWindowsIconProvider( qApp );
+ fileIconProvider = new TQWindowsIconProvider( tqApp );
#endif
}
}
@@ -3498,12 +3498,12 @@ TQString TQFileDialog::getOpenFileName( const TQString & startWith,
return TQKDEIntegration::getOpenFileNames( filter, workingDirectory, parent, name,
caption, selectedFilter, false ).first();
#elif defined(Q_WS_WIN)
- if ( qt_use_native_dialogs && qApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle )
+ if ( qt_use_native_dialogs && tqApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle )
return winGetOpenFileName( initialSelection, filter, workingDirectory,
parent, name, caption, selectedFilter );
#elif defined(Q_WS_MAC)
- if (qt_use_native_dialogs && (qApp->style().inherits(TQMAC_DEFAULT_STYLE)
- || qApp->style().inherits("TQMacStyle")))
+ if (qt_use_native_dialogs && (tqApp->style().inherits(TQMAC_DEFAULT_STYLE)
+ || tqApp->style().inherits("TQMacStyle")))
return qt_mac_precomposeFileName(macGetOpenFileNames(filter,
startWith.isEmpty() ? 0 : workingDirectory,
parent, name, caption, selectedFilter, FALSE).first());
@@ -3623,12 +3623,12 @@ TQString TQFileDialog::getSaveFileName( const TQString & startWith,
return TQKDEIntegration::getSaveFileName( initialSelection, filter, workingDirectory,
parent, name, caption, selectedFilter );
#elif defined(Q_WS_WIN)
- if ( qt_use_native_dialogs && qApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle )
+ if ( qt_use_native_dialogs && tqApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle )
return winGetSaveFileName( initialSelection, filter, workingDirectory,
parent, name, caption, selectedFilter );
#elif defined(Q_WS_MAC)
- if (qt_use_native_dialogs && (qApp->style().inherits(TQMAC_DEFAULT_STYLE)
- || qApp->style().inherits("TQMacStyle")))
+ if (qt_use_native_dialogs && (tqApp->style().inherits(TQMAC_DEFAULT_STYLE)
+ || tqApp->style().inherits("TQMacStyle")))
return qt_mac_precomposeFileName(macGetSaveFileName(initialSelection, filter,
startWith.isEmpty() ? 0 : workingDirectory, parent, name,
caption, selectedFilter));
@@ -4530,7 +4530,7 @@ TQString TQFileDialog::getExistingDirectory( const TQString & dir,
initialDir = dir;
} else
initialDir = TQString::null;
- if ( qt_use_native_dialogs && qApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle && dirOnly )
+ if ( qt_use_native_dialogs && tqApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle && dirOnly )
return winGetExistingDirectory( initialDir, parent, name, caption );
#endif
#if defined(Q_WS_MAC)
@@ -4540,8 +4540,8 @@ TQString TQFileDialog::getExistingDirectory( const TQString & dir,
if (TQFileInfo(u.path()).isDir())
initialDir = (TQString *)&dir;
}
- if( qt_use_native_dialogs && (qApp->style().inherits(TQMAC_DEFAULT_STYLE)
- || qApp->style().inherits("TQMacStyle")))
+ if( qt_use_native_dialogs && (tqApp->style().inherits(TQMAC_DEFAULT_STYLE)
+ || tqApp->style().inherits("TQMacStyle")))
return qt_mac_precomposeFileName(macGetOpenFileNames("", initialDir, parent, name,
caption, 0, FALSE, TRUE).first());
#endif
@@ -5690,11 +5690,11 @@ TQStringList TQFileDialog::getOpenFileNames( const TQString & filter,
if ( qt_use_native_dialogs && TQKDEIntegration::enabled())
return TQKDEIntegration::getOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter, true );
#elif defined(Q_WS_WIN)
- if ( qt_use_native_dialogs && qApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle )
+ if ( qt_use_native_dialogs && tqApp->style().styleHint( TQStyle::SH_GUIStyle ) == WindowsStyle )
return winGetOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter );
#elif defined(Q_WS_MAC)
- if (qt_use_native_dialogs && (qApp->style().inherits(TQMAC_DEFAULT_STYLE)
- || qApp->style().inherits("TQMacStyle"))) {
+ if (qt_use_native_dialogs && (tqApp->style().inherits(TQMAC_DEFAULT_STYLE)
+ || tqApp->style().inherits("TQMacStyle"))) {
TQStringList sl = macGetOpenFileNames(filter, dir.isEmpty() ? 0 : workingDirectory, parent,
name, caption, selectedFilter);
TQStringList::iterator it = sl.begin();
@@ -6375,7 +6375,7 @@ void TQFileDialog::doMimeTypeLookup()
// evil hack to avoid much too much repaints!
TQGuardedPtr<TQFileDialog> that( this ); // this may be deleted by an event handler
- qApp->processEvents();
+ tqApp->processEvents();
if ( that.isNull() )
return;
files->setUpdatesEnabled( FALSE );
@@ -6383,7 +6383,7 @@ void TQFileDialog::doMimeTypeLookup()
if ( item != d->pendingItems.first() )
return;
item->setPixmap( 0, *p );
- qApp->processEvents();
+ tqApp->processEvents();
if ( that.isNull() )
return;
files->setUpdatesEnabled( TRUE );
diff --git a/src/dialogs/qmessagebox.cpp b/src/dialogs/qmessagebox.cpp
index ce6c505b..96aabc06 100644
--- a/src/dialogs/qmessagebox.cpp
+++ b/src/dialogs/qmessagebox.cpp
@@ -1324,7 +1324,7 @@ void TQMessageBox::about( TQWidget *parent, const TQString &caption,
if ( pm && !pm->isNull() )
mb->setIconPixmap( *pm );
else {
- pm = qApp && qApp->mainWidget() ? qApp->mainWidget()->icon() : 0;
+ pm = tqApp && tqApp->mainWidget() ? tqApp->mainWidget()->icon() : 0;
if ( pm && !pm->isNull() )
mb->setIconPixmap( *pm );
}
@@ -1607,8 +1607,8 @@ void TQMessageBox::aboutTQt( TQWidget *parent, const TQString &caption )
#ifndef QT_NO_IMAGEIO
TQPixmap pm;
TQImage logo( (const char **)qtlogo_xpm);
- if ( qGray(mb->palette().active().text().rgb()) >
- qGray(mb->palette().active().base().rgb()) )
+ if ( tqGray(mb->palette().active().text().rgb()) >
+ tqGray(mb->palette().active().base().rgb()) )
{
// light on dark, adjust some colors (where's 10?)
logo.setColor( 0, 0xffffffff );
diff --git a/src/dialogs/qprogressdialog.cpp b/src/dialogs/qprogressdialog.cpp
index d29b4c58..fe5168a0 100644
--- a/src/dialogs/qprogressdialog.cpp
+++ b/src/dialogs/qprogressdialog.cpp
@@ -143,7 +143,7 @@ TQProgressDialog progress( "Copying files...", "Abort Copy", numFiles,
this, "progress", TRUE );
for ( int i = 0; i < numFiles; i++ ) {
progress.setProgress( i );
- qApp->processEvents();
+ tqApp->processEvents();
if ( progress.wasCanceled() )
break;
@@ -580,7 +580,7 @@ void TQProgressDialog::setProgress( int progress )
if ( d->shown_once ) {
if (testWFlags(WShowModal))
- qApp->processEvents();
+ tqApp->processEvents();
} else {
if ( progress == 0 ) {
#ifndef QT_NO_CURSOR
diff --git a/src/iconview/qiconview.cpp b/src/iconview/qiconview.cpp
index 47b1a1cf..a14684b0 100644
--- a/src/iconview/qiconview.cpp
+++ b/src/iconview/qiconview.cpp
@@ -5434,7 +5434,7 @@ void TQIconView::focusOutEvent( TQFocusEvent* )
if (style().styleHint( TQStyle::SH_ItemView_ChangeHighlightOnFocus, this )) {
d->inMenuMode =
TQFocusEvent::reason() == TQFocusEvent::Popup ||
- (qApp->focusWidget() && qApp->focusWidget()->inherits("TQMenuBar"));
+ (tqApp->focusWidget() && tqApp->focusWidget()->inherits("TQMenuBar"));
if ( !d->inMenuMode )
repaintSelectedItems();
}
diff --git a/src/kernel/ntqapplication.h b/src/kernel/ntqapplication.h
index fbeed98e..02c1993d 100644
--- a/src/kernel/ntqapplication.h
+++ b/src/kernel/ntqapplication.h
@@ -67,7 +67,7 @@ class TQMutex;
class TQApplication;
-extern Q_EXPORT TQApplication *qApp; // global application object
+extern Q_EXPORT TQApplication *tqApp; // global application object
class Q_EXPORT TQApplication : public TQObject
@@ -520,10 +520,10 @@ inline TQSize TQApplication::globalStrut()
}
inline bool TQApplication::sendEvent( TQObject *receiver, TQEvent *event )
-{ if ( event ) event->spont = FALSE; return qApp ? qApp->notify( receiver, event ) : FALSE; }
+{ if ( event ) event->spont = FALSE; return tqApp ? tqApp->notify( receiver, event ) : FALSE; }
inline bool TQApplication::sendSpontaneousEvent( TQObject *receiver, TQEvent *event )
-{ if ( event ) event->spont = TRUE; return qApp ? qApp->notify( receiver, event ) : FALSE; }
+{ if ( event ) event->spont = TRUE; return tqApp ? tqApp->notify( receiver, event ) : FALSE; }
#ifdef QT_NO_TRANSLATION
// Simple versions
diff --git a/src/kernel/ntqcolor.h b/src/kernel/ntqcolor.h
index fd9e7630..a35e8109 100644
--- a/src/kernel/ntqcolor.h
+++ b/src/kernel/ntqcolor.h
@@ -46,31 +46,31 @@
#include "ntqstringlist.h"
#endif // QT_H
-const TQRgb RGB_MASK = 0x00ffffff; // masks RGB values
+const TQRgb TQT_RGB_MASK = 0x00ffffff; // masks RGB values
-Q_EXPORT inline int qRed( TQRgb rgb ) // get red part of RGB
+Q_EXPORT inline int tqRed( TQRgb rgb ) // get red part of RGB
{ return (int)((rgb >> 16) & 0xff); }
-Q_EXPORT inline int qGreen( TQRgb rgb ) // get green part of RGB
+Q_EXPORT inline int tqGreen( TQRgb rgb ) // get green part of RGB
{ return (int)((rgb >> 8) & 0xff); }
-Q_EXPORT inline int qBlue( TQRgb rgb ) // get blue part of RGB
+Q_EXPORT inline int tqBlue( TQRgb rgb ) // get blue part of RGB
{ return (int)(rgb & 0xff); }
-Q_EXPORT inline int qAlpha( TQRgb rgb ) // get alpha part of RGBA
+Q_EXPORT inline int tqAlpha( TQRgb rgb ) // get alpha part of RGBA
{ return (int)((rgb >> 24) & 0xff); }
-Q_EXPORT inline TQRgb qRgb( int r, int g, int b )// set RGB value
+Q_EXPORT inline TQRgb tqRgb( int r, int g, int b )// set RGB value
{ return (0xff << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
-Q_EXPORT inline TQRgb qRgba( int r, int g, int b, int a )// set RGBA value
+Q_EXPORT inline TQRgb tqRgba( int r, int g, int b, int a )// set RGBA value
{ return ((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
-Q_EXPORT inline int qGray( int r, int g, int b )// convert R,G,B to gray 0..255
+Q_EXPORT inline int tqGray( int r, int g, int b )// convert R,G,B to gray 0..255
{ return (r*11+g*16+b*5)/32; }
-Q_EXPORT inline int qGray( TQRgb rgb ) // convert RGB to gray 0..255
-{ return qGray( qRed(rgb), qGreen(rgb), qBlue(rgb) ); }
+Q_EXPORT inline int tqGray( TQRgb rgb ) // convert RGB to gray 0..255
+{ return tqGray( tqRed(rgb), tqGreen(rgb), tqBlue(rgb) ); }
class Q_EXPORT TQColor
@@ -190,13 +190,13 @@ inline TQRgb TQColor::rgb() const
{ return d.argb; }
inline int TQColor::red() const
-{ return qRed(d.argb); }
+{ return tqRed(d.argb); }
inline int TQColor::green() const
-{ return qGreen(d.argb); }
+{ return tqGreen(d.argb); }
inline int TQColor::blue() const
-{ return qBlue(d.argb); }
+{ return tqBlue(d.argb); }
inline bool TQColor::isValid() const
{
diff --git a/src/kernel/ntqwindowdefs.h b/src/kernel/ntqwindowdefs.h
index 3ad58fec..b2e51187 100644
--- a/src/kernel/ntqwindowdefs.h
+++ b/src/kernel/ntqwindowdefs.h
@@ -154,7 +154,7 @@ Q_EXPORT WId qt_xrootwin( int scrn ); // ### 4.0 add default arg of -1
Q_EXPORT GC qt_xget_readonly_gc( int scrn, bool monochrome );
Q_EXPORT GC qt_xget_temp_gc( int scrn, bool monochrome );
-Q_EXPORT const char *qAppClass(); // get application class
+Q_EXPORT const char *tqAppClass(); // get application class
#endif // Q_WS_X11
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index c15f19ab..14904890 100644
--- a/src/kernel/qapplication.cpp
+++ b/src/kernel/qapplication.cpp
@@ -95,7 +95,7 @@
or more windows at any time.
The TQApplication object is accessible through the global pointer \c
- qApp. Its main areas of responsibility are:
+ tqApp. Its main areas of responsibility are:
\list
\i It initializes the application with the user's desktop settings
@@ -323,7 +323,7 @@ void qt_init( Display* dpy, TQt::HANDLE, TQt::HANDLE );
#endif
Q_EXPORT bool qt_tryModalHelper( TQWidget *widget, TQWidget **rettop );
-TQApplication *qApp = 0; // global application object
+TQApplication *tqApp = 0; // global application object
TQStyle *TQApplication::app_style = 0; // default application style
bool qt_explicit_app_style = FALSE; // style explicitly set by programmer
@@ -654,7 +654,7 @@ void TQApplication::process_cmdline( int* argcptr, char ** argv )
Initializes the window system and constructs an application object
with \a argc command line arguments in \a argv.
- The global \c qApp pointer refers to this application object. Only
+ The global \c tqApp pointer refers to this application object. Only
one application object should be created.
This application object must be constructed before any \link
@@ -663,7 +663,7 @@ void TQApplication::process_cmdline( int* argcptr, char ** argv )
Note that \a argc and \a argv might be changed. TQt removes command
line arguments that it recognizes. The modified \a argc and \a argv
- can also be accessed later with \c qApp->argc() and \c qApp->argv().
+ can also be accessed later with \c tqApp->argc() and \c tqApp->argv().
The documentation for argv() contains a detailed description of how
to process command line arguments.
@@ -791,13 +791,13 @@ TQApplication::TQApplication( int &argc, char **argv, Type type )
Q_EXPORT void qt_ucm_initialize( TQApplication *theApp )
{
- if ( qApp )
+ if ( tqApp )
return;
int argc = theApp->argc();
char **argv = theApp->argv();
- theApp->construct( argc, argv, qApp->type() );
+ theApp->construct( argc, argv, tqApp->type() );
- Q_ASSERT( qApp == theApp );
+ Q_ASSERT( tqApp == theApp );
}
void TQApplication::construct( int &argc, char **argv, Type type )
@@ -932,10 +932,10 @@ void TQApplication::init_precmdline()
is_session_restored = FALSE;
#endif
#if defined(QT_CHECK_STATE)
- if ( qApp )
+ if ( tqApp )
qWarning( "TQApplication: There should be max one application object" );
#endif
- qApp = (TQApplication*)this;
+ tqApp = (TQApplication*)this;
}
/*!
@@ -964,7 +964,7 @@ void TQApplication::initialize( int argc, char **argv )
// connect to the session manager
if ( !session_key )
session_key = new TQString;
- session_manager = new TQSessionManager( qApp, session_id, *session_key );
+ session_manager = new TQSessionManager( tqApp, session_id, *session_key );
#endif
}
@@ -1017,7 +1017,7 @@ TQWidget *TQApplication::activeModalWidget()
/*!
Cleans up any window system resources that were allocated by this
- application. Sets the global variable \c qApp to 0.
+ application. Sets the global variable \c tqApp to 0.
*/
TQApplication::~TQApplication()
@@ -1098,10 +1098,10 @@ TQApplication::~TQApplication()
postevent_mutex = 0;
#endif // QT_THREAD_SUPPORT
- if( qApp == this ) {
+ if( tqApp == this ) {
if ( postedEvents )
removePostedEvents( this );
- qApp = 0;
+ tqApp = 0;
}
is_app_running = FALSE;
@@ -1186,7 +1186,7 @@ TQApplication::~TQApplication()
under X11, the list box contains the three strings "showargs",
"hello" and "world".
- TQt provides a global pointer, \c qApp, that points to the
+ TQt provides a global pointer, \c tqApp, that points to the
TQApplication object, and through which you can access argc() and
argv() in functions other than main().
@@ -1278,7 +1278,7 @@ TQStyle& TQApplication::style()
}
}
- app_style->polish( qApp );
+ app_style->polish( tqApp );
#endif
return *app_style;
}
@@ -1326,7 +1326,7 @@ void TQApplication::setStyle( TQStyle *style )
}
}
}
- old->unPolish( qApp );
+ old->unPolish( tqApp );
}
// take care of possible palette requirements of certain gui
@@ -1338,7 +1338,7 @@ void TQApplication::setStyle( TQStyle *style )
setPalette( tmpPal, TRUE );
// initialize the application with the new style
- app_style->polish( qApp );
+ app_style->polish( tqApp );
// re-polish existing widgets if necessary
if (old) {
@@ -1499,7 +1499,7 @@ int TQApplication::colorSpec()
void TQApplication::setColorSpec( int spec )
{
#if defined(QT_CHECK_STATE)
- if ( qApp ) {
+ if ( tqApp ) {
qWarning( "TQApplication::setColorSpec: This function must be "
"called before the TQApplication object is created" );
}
@@ -1546,7 +1546,7 @@ void TQApplication::setGlobalStrut( const TQSize& strut )
}
#if defined( Q_WS_WIN ) || defined( Q_WS_MAC )
-extern const char *qAppFileName();
+extern const char *tqAppFileName();
#endif
#ifndef QT_NO_DIR
@@ -1647,7 +1647,7 @@ TQString TQApplication::applicationFilePath()
return filePath.filePath();
#elif defined( Q_WS_MAC )
- return TQDir::cleanDirPath( TQFile::decodeName( qAppFileName() ) );
+ return TQDir::cleanDirPath( TQFile::decodeName( tqAppFileName() ) );
#else
TQString argv0 = TQFile::decodeName( argv()[0] );
TQString absPath;
@@ -1732,11 +1732,11 @@ TQStringList TQApplication::libraryPaths()
}
TQString app_location;
- if (qApp)
- app_location = qApp->applicationFilePath();
+ if (tqApp)
+ app_location = tqApp->applicationFilePath();
#ifdef Q_WS_WIN
else {
- app_location = TQString(qAppFileName());
+ app_location = TQString(tqAppFileName());
app_location.replace('\\', '/');
}
#endif
@@ -1821,7 +1821,7 @@ void TQApplication::removeLibraryPath( const TQString &path )
TQPalette TQApplication::palette(const TQWidget* w)
{
#if defined(QT_CHECK_STATE)
- if ( !qApp )
+ if ( !tqApp )
qWarning( "TQApplication::palette: This function can only be "
"called after the TQApplication object has been created" );
#endif
@@ -1872,7 +1872,7 @@ void TQApplication::setPalette( const TQPalette &palette, bool informWidgets,
TQPalette *oldpal = 0;
#ifndef QT_NO_STYLE
if ( !startingUp() ) // on startup this has been done already
- qApp->style().polish( pal ); // NB: non-const reference
+ tqApp->style().polish( pal ); // NB: non-const reference
#endif
bool all = FALSE;
if ( !className ) {
@@ -2137,7 +2137,7 @@ TQFontMetrics TQApplication::fontMetrics()
Example:
\code
TQPushButton *quitButton = new TQPushButton( "Quit" );
- connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quitButton, SIGNAL(clicked()), tqApp, SLOT(quit()) );
\endcode
\sa exit() aboutToQuit() lastWindowClosed() TQAction
@@ -2159,10 +2159,10 @@ void TQApplication::quit()
\code
// the "Quit" menu entry should try to close all windows
TQPopupMenu* file = new TQPopupMenu( this );
- file->insertItem( "&Quit", qApp, SLOT(closeAllWindows()), CTRL+Key_Q );
+ file->insertItem( "&Quit", tqApp, SLOT(closeAllWindows()), CTRL+Key_Q );
// when the last window is closed, the application should quit
- connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( quit() ) );
+ connect( tqApp, SIGNAL( lastWindowClosed() ), tqApp, SLOT( quit() ) );
\endcode
The windows are closed in random order, until one window does not
@@ -2286,9 +2286,9 @@ void TQApplication::aboutTQt()
approaches are listed below:
\list 1
\i Reimplementing this function. This is very powerful, providing
- complete control; but only one subclass can be qApp.
+ complete control; but only one subclass can be tqApp.
- \i Installing an event filter on qApp. Such an event filter is able
+ \i Installing an event filter on tqApp. Such an event filter is able
to process all events for all widgets, so it's just as powerful as
reimplementing notify(); furthermore, it's possible to have more
than one application-global event filter. Global event filters even
@@ -2730,7 +2730,7 @@ void TQApplication::processOneEvent()
TQEventLoop *TQApplication::eventLoop()
{
if ( !eventloop && !is_app_closing )
- (void) new TQEventLoop( qApp, "default event loop" );
+ (void) new TQEventLoop( tqApp, "default event loop" );
return eventloop;
}
@@ -2779,7 +2779,7 @@ int TQApplication::exec()
*/
void TQApplication::exit( int retcode )
{
- qApp->eventLoop()->exit( retcode );
+ tqApp->eventLoop()->exit( retcode );
}
/*!
@@ -2963,7 +2963,7 @@ void TQApplication::removeTranslator( TQTranslator * mf )
if ( !translators || !mf )
return;
- if ( translators->remove( mf ) && ! qApp->closingDown() ) {
+ if ( translators->remove( mf ) && ! tqApp->closingDown() ) {
setReverseLayout( qt_detectRTLLanguage() );
TQWidgetList *list = topLevelWidgets();
@@ -3666,12 +3666,12 @@ Q_EXPORT void qt_dispatchEnterLeave( TQWidget* enter, TQWidget* leave ) {
TQEvent leaveEvent( TQEvent::Leave );
for ( w = leaveList.first(); w; w = leaveList.next() ) {
- if ( !qApp->activeModalWidget() || qt_tryModalHelper( w, 0 ))
+ if ( !tqApp->activeModalWidget() || qt_tryModalHelper( w, 0 ))
TQApplication::sendEvent( w, &leaveEvent );
}
TQEvent enterEvent( TQEvent::Enter );
for ( w = enterList.first(); w; w = enterList.next() ) {
- if ( !qApp->activeModalWidget() || qt_tryModalHelper( w, 0 ))
+ if ( !tqApp->activeModalWidget() || qt_tryModalHelper( w, 0 ))
TQApplication::sendEvent( w, &enterEvent );
}
}
@@ -3691,7 +3691,7 @@ Q_EXPORT bool qt_tryModalHelper( TQWidget *widget, TQWidget **rettop ) {
TQWidget *modal=0, *top=TQApplication::activeModalWidget();
if ( rettop ) *rettop = top;
- if ( qApp->activePopupWidget() )
+ if ( tqApp->activePopupWidget() )
return TRUE;
#ifdef Q_WS_MACX
diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
index 4579b98f..72e29b14 100644
--- a/src/kernel/qapplication_x11.cpp
+++ b/src/kernel/qapplication_x11.cpp
@@ -419,7 +419,7 @@ static bool qt_x11EventFilter( XEvent* ev )
{
if ( qt_x11_event_filter && qt_x11_event_filter( ev ) )
return TRUE;
- return qApp->x11EventFilter( ev );
+ return tqApp->x11EventFilter( ev );
}
@@ -620,7 +620,7 @@ TQWidgetList *TQApplication::icHolderWidgets()
*/
void TQApplication::changeAllInputContext( const TQString &identifierName )
{
- TQWidgetList *list = qApp->icHolderWidgets();
+ TQWidgetList *list = tqApp->icHolderWidgets();
TQWidgetListIt it(*list);
while(it.current()) {
it.current()->changeInputContext( identifierName );
@@ -687,7 +687,7 @@ void TQApplication::create_im()
*/
void TQApplication::close_im()
{
- TQWidgetList *list = qApp->icHolderWidgets();
+ TQWidgetList *list = tqApp->icHolderWidgets();
TQWidgetListIt it(*list);
while(it.current()) {
it.current()->destroyInputContext();
@@ -708,7 +708,7 @@ void TQApplication::create_xim()
qt_xim_preferred_style = xim_default_style;
#endif // QT_NO_XIM
- TQWidgetList *list= qApp->topLevelWidgets();
+ TQWidgetList *list= tqApp->topLevelWidgets();
TQWidgetListIt it(*list);
TQWidget * w;
while( (w=it.current()) != 0 ) {
@@ -733,7 +733,7 @@ void TQApplication::close_xim()
// qt_xim = 0;
#endif // QT_NO_XIM
- TQWidgetList *list = qApp->topLevelWidgets();
+ TQWidgetList *list = tqApp->topLevelWidgets();
TQWidgetListIt it(*list);
while(it.current()) {
it.current()->destroyInputContext();
@@ -807,7 +807,7 @@ static int qt_x_errhandler( Display *dpy, XErrorEvent *err )
static int qt_xio_errhandler( Display * )
{
qWarning( "%s: Fatal IO error: client killed", appName );
- qApp = 0;
+ tqApp = 0;
exit( 1 );
//### give the application a chance for a proper shutdown instead,
//### exit(1) doesn't help.
@@ -1065,7 +1065,7 @@ bool TQApplication::x11_apply_settings()
if (defaultcodec != "none") {
TQTextCodec *codec = TQTextCodec::codecForName(defaultcodec);
if (codec)
- qApp->setDefaultCodec(codec);
+ tqApp->setDefaultCodec(codec);
}
TQStringList strut = settings.readListEntry("/qt/globalStrut");
@@ -1559,7 +1559,7 @@ void qt_x11_create_wm_client_leader()
(unsigned char *)&qt_x11_wm_client_leader, 1 );
// If we are session managed, inform the window manager about it
- TQCString session = qApp->sessionId().latin1();
+ TQCString session = tqApp->sessionId().latin1();
if ( !session.isEmpty() ) {
XChangeProperty( TQPaintDevice::x11AppDisplay(),
qt_x11_wm_client_leader, qt_sm_client_id,
@@ -1808,7 +1808,7 @@ void qt_init_internal( int *argcptr, char **argv,
if ( ( appDpy = XOpenDisplay(appDpyName) ) == 0 ) {
qWarning( "%s: cannot connect to X server %s", appName,
XDisplayName(appDpyName) );
- qApp = 0;
+ tqApp = 0;
exit( 1 );
}
@@ -2206,7 +2206,7 @@ void qt_init_internal( int *argcptr, char **argv,
#endif
if( qt_is_gui_used ) {
- qApp->setName( appName );
+ tqApp->setName( appName );
int screen;
for ( screen = 0; screen < appScreenCount; ++screen ) {
@@ -2398,7 +2398,7 @@ void qt_init_internal( int *argcptr, char **argv,
if (defaultcodec != "none") {
TQTextCodec *codec = TQTextCodec::codecForName(defaultcodec);
if (codec)
- qApp->setDefaultCodec(codec);
+ tqApp->setDefaultCodec(codec);
}
qt_resolve_symlinks =
@@ -2623,7 +2623,7 @@ const char *tqAppName() // get application name
return appName;
}
-const char *qAppClass() // get application class
+const char *tqAppClass() // get application class
{
return appClass;
}
@@ -3482,7 +3482,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
case XKeyRelease:
do {
popup->close();
- } while ( (popup = qApp->activePopupWidget()) );
+ } while ( (popup = tqApp->activePopupWidget()) );
return 1;
}
}
@@ -4102,7 +4102,7 @@ bool TQETWidget::translateMouseEvent( const XEvent *event )
|| nextEvent.type == PropertyNotify
|| nextEvent.type == Expose
|| nextEvent.type == NoExpose ) {
- qApp->x11ProcessEvent( &nextEvent );
+ tqApp->x11ProcessEvent( &nextEvent );
continue;
} else if ( nextEvent.type != MotionNotify ||
nextEvent.xmotion.window != event->xmotion.window ||
@@ -4170,7 +4170,7 @@ bool TQETWidget::translateMouseEvent( const XEvent *event )
// take care about grabbing. We do this here since it
// is clear that we return anyway
- if ( qApp->inPopupMode() && popupGrabOk )
+ if ( tqApp->inPopupMode() && popupGrabOk )
XAllowEvents( x11Display(), SyncPointer, CurrentTime );
// We are only interested in ButtonPress.
@@ -4264,8 +4264,8 @@ bool TQETWidget::translateMouseEvent( const XEvent *event )
if ( type == 0 ) // don't send event
return FALSE;
- if ( qApp->inPopupMode() ) { // in popup mode
- TQWidget *popup = qApp->activePopupWidget();
+ if ( tqApp->inPopupMode() ) { // in popup mode
+ TQWidget *popup = tqApp->activePopupWidget();
if ( popup != this ) {
if ( testWFlags(WType_Popup) && rect().contains(pos) )
popup = this;
@@ -4334,7 +4334,7 @@ bool TQETWidget::translateMouseEvent( const XEvent *event )
if ( releaseAfter )
qt_button_down = 0;
- if ( qApp->inPopupMode() ) { // still in popup mode
+ if ( tqApp->inPopupMode() ) { // still in popup mode
if ( popupGrabOk )
XAllowEvents( dpy, SyncPointer, CurrentTime );
} else {
@@ -4394,7 +4394,7 @@ bool TQETWidget::translateWheelEvent( int global_x, int global_y, int delta, int
{
// send the event to the widget or its ancestors
{
- TQWidget* popup = qApp->activePopupWidget();
+ TQWidget* popup = tqApp->activePopupWidget();
if ( popup && topLevelWidget() != popup )
popup->close();
TQWheelEvent e( mapFromGlobal(TQPoint( global_x, global_y)),
@@ -4405,8 +4405,8 @@ bool TQETWidget::translateWheelEvent( int global_x, int global_y, int delta, int
// send the event to the widget that has the focus or its ancestors, if different
TQWidget *w = this;
- if ( w != qApp->focusWidget() && ( w = qApp->focusWidget() ) ) {
- TQWidget* popup = qApp->activePopupWidget();
+ if ( w != tqApp->focusWidget() && ( w = tqApp->focusWidget() ) ) {
+ TQWidget* popup = tqApp->activePopupWidget();
if ( popup && w != popup )
popup->hide();
TQWheelEvent e( mapFromGlobal(TQPoint( global_x, global_y)),
@@ -6366,7 +6366,7 @@ static void sm_performSaveYourself( TQSessionManagerData* smd )
smd->sessionKey = TQString::number( tv.tv_sec ) + "_" + TQString::number(tv.tv_usec);
// tell the session manager about our program in best POSIX style
- sm_setProperty( SmProgram, TQString( qApp->argv()[0] ) );
+ sm_setProperty( SmProgram, TQString( tqApp->argv()[0] ) );
// tell the session manager about our user as well.
struct passwd* entry = getpwuid( geteuid() );
if ( entry )
@@ -6374,8 +6374,8 @@ static void sm_performSaveYourself( TQSessionManagerData* smd )
// generate a restart and discard command that makes sense
TQStringList restart;
- restart << qApp->argv()[0] << "-session" << smd->sessionId + "_" + smd->sessionKey;
- if (qstricmp(tqAppName(), qAppClass()) != 0)
+ restart << tqApp->argv()[0] << "-session" << smd->sessionId + "_" + smd->sessionKey;
+ if (qstricmp(tqAppName(), tqAppClass()) != 0)
restart << "-name" << tqAppName();
sm->setRestartCommand( restart );
TQStringList discard;
@@ -6383,15 +6383,15 @@ static void sm_performSaveYourself( TQSessionManagerData* smd )
switch ( sm_saveType ) {
case SmSaveBoth:
- qApp->commitData( *sm );
+ tqApp->commitData( *sm );
if ( sm_isshutdown && sm_cancel)
break; // we cancelled the shutdown, no need to save state
// fall through
case SmSaveLocal:
- qApp->saveState( *sm );
+ tqApp->saveState( *sm );
break;
case SmSaveGlobal:
- qApp->commitData( *sm );
+ tqApp->commitData( *sm );
break;
default:
break;
@@ -6438,7 +6438,7 @@ static void sm_dieCallback( SmcConn smcConn, SmPointer /* clientData */)
return;
resetSmState();
TQEvent quitEvent(TQEvent::Quit);
- TQApplication::sendEvent(qApp, &quitEvent);
+ TQApplication::sendEvent(tqApp, &quitEvent);
}
static void sm_shutdownCancelledCallback( SmcConn smcConn, SmPointer /* clientData */)
@@ -6446,7 +6446,7 @@ static void sm_shutdownCancelledCallback( SmcConn smcConn, SmPointer /* clientDa
if (smcConn != smcConnection )
return;
if ( sm_waitingForInteraction )
- qApp->exit_loop();
+ tqApp->exit_loop();
resetSmState();
}
@@ -6462,7 +6462,7 @@ static void sm_interactCallback( SmcConn smcConn, SmPointer /* clientData */ )
if (smcConn != smcConnection )
return;
if ( sm_waitingForInteraction )
- qApp->exit_loop();
+ tqApp->exit_loop();
}
static void sm_saveYourselfPhase2Callback( SmcConn smcConn, SmPointer clientData )
@@ -6570,7 +6570,7 @@ bool TQSessionManager::allowsInteraction()
sm_interactCallback, (SmPointer*) this );
}
if ( sm_waitingForInteraction ) {
- qApp->enter_loop();
+ tqApp->enter_loop();
sm_waitingForInteraction = FALSE;
if ( sm_smActive ) { // not cancelled
sm_interactionActive = TRUE;
@@ -6594,7 +6594,7 @@ bool TQSessionManager::allowsErrorInteraction()
sm_interactCallback, (SmPointer*) this );
}
if ( sm_waitingForInteraction ) {
- qApp->enter_loop();
+ tqApp->enter_loop();
sm_waitingForInteraction = FALSE;
if ( sm_smActive ) { // not cancelled
sm_interactionActive = TRUE;
diff --git a/src/kernel/qasyncimageio.cpp b/src/kernel/qasyncimageio.cpp
index 21485fd1..320e4bd4 100644
--- a/src/kernel/qasyncimageio.cpp
+++ b/src/kernel/qasyncimageio.cpp
@@ -844,7 +844,7 @@ int TQGIFFormat::decode(TQImage& img, TQImageConsumer* consumer,
case GlobalColorMap: case LocalColorMap:
hold[count++]=ch;
if (count==3) {
- TQRgb rgb = qRgb(hold[0], hold[1], hold[2]);
+ TQRgb rgb = tqRgb(hold[0], hold[1], hold[2]);
if ( state == LocalColorMap ) {
if ( ccount < lncols )
localcmap[ccount] = rgb;
diff --git a/src/kernel/qclipboard_x11.cpp b/src/kernel/qclipboard_x11.cpp
index 8f602d84..32f428fc 100644
--- a/src/kernel/qclipboard_x11.cpp
+++ b/src/kernel/qclipboard_x11.cpp
@@ -480,7 +480,7 @@ bool qt_xclb_wait_for_event( Display *dpy, Window win, int type, XEvent *event,
TQTime started = TQTime::currentTime();
TQTime now = started;
- if (qApp->eventLoop()->inherits("TQMotif")) { // yes yes, evil hack, we know
+ if (tqApp->eventLoop()->inherits("TQMotif")) { // yes yes, evil hack, we know
if ( waiting_for_data )
qFatal( "TQClipboard: internal error, qt_xclb_wait_for_event recursed" );
@@ -503,7 +503,7 @@ bool qt_xclb_wait_for_event( Display *dpy, Window win, int type, XEvent *event,
started = now;
// 0x08 == ExcludeTimers for X11 only
- qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput |
+ tqApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput |
TQEventLoop::ExcludeSocketNotifiers |
TQEventLoop::WaitForMore | 0x08 );
@@ -537,7 +537,7 @@ bool qt_xclb_wait_for_event( Display *dpy, Window win, int type, XEvent *event,
// process other clipboard events, since someone is probably requesting data from us
XEvent e;
if (XCheckIfEvent(dpy, &e, checkForClipboardEvents, 0))
- qApp->x11ProcessEvent(&e);
+ tqApp->x11ProcessEvent(&e);
now = TQTime::currentTime();
if ( started > now ) // crossed midnight
diff --git a/src/kernel/qcolor.cpp b/src/kernel/qcolor.cpp
index 832e5b7f..a7f6b30b 100644
--- a/src/kernel/qcolor.cpp
+++ b/src/kernel/qcolor.cpp
@@ -259,10 +259,10 @@ void TQColor::initGlobalColors()
// HACK: we need a way to recognize color0 and color1 uniquely, so
// that we can use color0 and color1 with fixed pixel values on
// all screens
- stdcol[ 0].d.argb = qRgba(255, 255, 255, 1);
- stdcol[ 1].d.argb = qRgba( 0, 0, 0, 1);
+ stdcol[ 0].d.argb = tqRgba(255, 255, 255, 1);
+ stdcol[ 1].d.argb = tqRgba( 0, 0, 0, 1);
#else
- stdcol[ 0].d.argb = qRgb(255,255,255);
+ stdcol[ 0].d.argb = tqRgb(255,255,255);
stdcol[ 1].d.argb = 0;
#endif // Q_WS_X11
stdcol[ 0].setPixel( COLOR0_PIX );
@@ -605,9 +605,9 @@ void TQColor::hsv( int *h, int *s, int *v ) const
{
if ( !h || !s || !v )
return;
- int r = qRed(d.argb);
- int g = qGreen(d.argb);
- int b = qBlue(d.argb);
+ int r = tqRed(d.argb);
+ int g = tqGreen(d.argb);
+ int b = tqBlue(d.argb);
uint max = r; // maximum RGB component
int whatmax = 0; // r=>0, g=>1, b=>2
if ( (uint)g > max ) {
@@ -712,7 +712,7 @@ void TQColor::setHsv( int h, int s, int v )
For an invalid color, the alpha value of the returned color is
unspecified.
- \sa setRgb(), hsv(), qRed(), qBlue(), qGreen(), isValid()
+ \sa setRgb(), hsv(), tqRed(), tqBlue(), tqGreen(), isValid()
*/
/*! \fn void TQColor::getRgb( int *r, int *g, int *b ) const
@@ -727,9 +727,9 @@ void TQColor::setHsv( int h, int s, int v )
/*! \obsolete Use getRgb() instead */
void TQColor::rgb( int *r, int *g, int *b ) const
{
- *r = qRed(d.argb);
- *g = qGreen(d.argb);
- *b = qBlue(d.argb);
+ *r = tqRed(d.argb);
+ *g = tqGreen(d.argb);
+ *b = tqBlue(d.argb);
}
@@ -749,7 +749,7 @@ void TQColor::setRgb( int r, int g, int b )
#endif
return;
}
- d.argb = qRgb( r, g, b );
+ d.argb = tqRgb( r, g, b );
if ( colormodel == d8 ) {
d.d8.invalid = FALSE;
d.d8.direct = FALSE;
@@ -959,60 +959,60 @@ TQDataStream &operator>>( TQDataStream &s, TQColor &c )
*****************************************************************************/
/*!
- \fn int qRed( TQRgb rgb )
+ \fn int tqRed( TQRgb rgb )
\relates TQColor
Returns the red component of the RGB triplet \a rgb.
- \sa qRgb(), TQColor::red()
+ \sa tqRgb(), TQColor::red()
*/
/*!
- \fn int qGreen( TQRgb rgb )
+ \fn int tqGreen( TQRgb rgb )
\relates TQColor
Returns the green component of the RGB triplet \a rgb.
- \sa qRgb(), TQColor::green()
+ \sa tqRgb(), TQColor::green()
*/
/*!
- \fn int qBlue( TQRgb rgb )
+ \fn int tqBlue( TQRgb rgb )
\relates TQColor
Returns the blue component of the RGB triplet \a rgb.
- \sa qRgb(), TQColor::blue()
+ \sa tqRgb(), TQColor::blue()
*/
/*!
- \fn int qAlpha( TQRgb rgba )
+ \fn int tqAlpha( TQRgb rgba )
\relates TQColor
Returns the alpha component of the RGBA quadruplet \a rgba.
*/
/*!
- \fn TQRgb qRgb( int r, int g, int b )
+ \fn TQRgb tqRgb( int r, int g, int b )
\relates TQColor
Returns the RGB triplet \a (r,g,b).
The return type TQRgb is equivalent to \c unsigned \c int.
- \sa qRgba(), qRed(), qGreen(), qBlue()
+ \sa tqRgba(), tqRed(), tqGreen(), tqBlue()
*/
/*!
- \fn TQRgb qRgba( int r, int g, int b, int a )
+ \fn TQRgb tqRgba( int r, int g, int b, int a )
\relates TQColor
Returns the RGBA quadruplet \a (r,g,b,a).
The return type TQRgba is equivalent to \c unsigned \c int.
- \sa qRgb(), qRed(), qGreen(), qBlue()
+ \sa tqRgb(), tqRed(), tqGreen(), tqBlue()
*/
/*!
- \fn int qGray( int r, int g, int b )
+ \fn int tqGray( int r, int g, int b )
\relates TQColor
Returns a gray value 0..255 from the (\a r, \a g, \a b) triplet.
@@ -1022,7 +1022,7 @@ TQDataStream &operator>>( TQDataStream &s, TQColor &c )
*/
/*!
- \overload int qGray( qRgb rgb )
+ \overload int tqGray( tqRgb rgb )
\relates TQColor
Returns a gray value 0..255 from the given \a rgb colour.
diff --git a/src/kernel/qcolor_x11.cpp b/src/kernel/qcolor_x11.cpp
index 4328babc..6be79b40 100644
--- a/src/kernel/qcolor_x11.cpp
+++ b/src/kernel/qcolor_x11.cpp
@@ -396,9 +396,9 @@ uint TQColor::alloc( int screen )
screen = TQPaintDevice::x11AppScreen();
if ( !color_init )
return dpy ? (uint)BlackPixel(dpy, screen) : 0;
- int r = qRed(d.argb);
- int g = qGreen(d.argb);
- int b = qBlue(d.argb);
+ int r = tqRed(d.argb);
+ int g = tqGreen(d.argb);
+ int b = tqBlue(d.argb);
uint pix = 0;
TQColorScreenData *sd = screendata[screen];
if ( sd->g_truecolor ) { // truecolor: map to pixel
@@ -493,7 +493,7 @@ uint TQColor::alloc( int screen )
int unused, value;
hsv(&unused, &unused, &value);
if (value < 128) { // dark, use black
- d.argb = qRgb(0,0,0);
+ d.argb = tqRgb(0,0,0);
pix = (uint)BlackPixel( dpy, screen );
if ( screen == TQPaintDevice::x11AppScreen() ) {
d.d8.invalid = FALSE;
@@ -501,7 +501,7 @@ uint TQColor::alloc( int screen )
d.d8.pix = pix;
}
} else { // light, use white
- d.argb = qRgb(0xff,0xff,0xff);
+ d.argb = tqRgb(0xff,0xff,0xff);
pix = (uint)WhitePixel( dpy, screen );
if ( screen == TQPaintDevice::x11AppScreen() ) {
d.d8.invalid = FALSE;
@@ -547,7 +547,7 @@ uint TQColor::alloc( int screen )
int unused, value;
hsv(&unused, &unused, &value);
if (value < 128) { // dark, use black
- d.argb = qRgb(0,0,0);
+ d.argb = tqRgb(0,0,0);
pix = (uint)BlackPixel( dpy, screen );
if ( screen == TQPaintDevice::x11AppScreen() ) {
d.d8.invalid = FALSE;
@@ -555,7 +555,7 @@ uint TQColor::alloc( int screen )
d.d8.pix = pix;
}
} else { // light, use white
- d.argb = qRgb(0xff,0xff,0xff);
+ d.argb = tqRgb(0xff,0xff,0xff);
pix = (uint)WhitePixel( dpy, screen );
if ( screen == TQPaintDevice::x11AppScreen() ) {
d.d8.invalid = FALSE;
@@ -614,7 +614,7 @@ uint TQColor::pixel( int screen ) const
if (screen != TQPaintDevice::x11AppScreen() &&
// don't allocate color0 or color1, they have fixed pixel
// values for all screens
- d.argb != qRgba(255, 255, 255, 1) && d.argb != qRgba(0, 0, 0, 1))
+ d.argb != tqRgba(255, 255, 255, 1) && d.argb != tqRgba(0, 0, 0, 1))
return ((TQColor*)this)->alloc( screen );
return pixel();
}
@@ -630,7 +630,7 @@ void TQColor::setSystemNamedColor( const TQString& name )
d.argb = qt_get_rgb_val( name.latin1() );
TQRgb rgb;
if ( qt_get_named_rgb( name.latin1(), &rgb ) ) {
- setRgb( qRed(rgb), qGreen(rgb), qBlue(rgb) );
+ setRgb( tqRed(rgb), tqGreen(rgb), tqBlue(rgb) );
if ( colormodel == d8 ) {
d.d8.invalid = FALSE;
d.d8.dirty = TRUE;
diff --git a/src/kernel/qcursor_x11.cpp b/src/kernel/qcursor_x11.cpp
index 56529a07..790ebafc 100644
--- a/src/kernel/qcursor_x11.cpp
+++ b/src/kernel/qcursor_x11.cpp
@@ -176,7 +176,7 @@ void TQCursor::initialize()
TQCursor::TQCursor()
{
if ( !initialized ) {
- if ( qApp->startingUp() ) {
+ if ( tqApp->startingUp() ) {
data = 0;
return;
}
diff --git a/src/kernel/qdnd_x11.cpp b/src/kernel/qdnd_x11.cpp
index 8c64ce10..149c2fe0 100644
--- a/src/kernel/qdnd_x11.cpp
+++ b/src/kernel/qdnd_x11.cpp
@@ -965,11 +965,11 @@ bool TQDragManager::eventFilter( TQObject * o, TQEvent * e)
if ( beingCancelled ) {
if ( e->type() == TQEvent::KeyRelease &&
((TQKeyEvent*)e)->key() == Key_Escape ) {
- qApp->removeEventFilter( this );
+ tqApp->removeEventFilter( this );
object = 0;
dragSource = 0;
beingCancelled = FALSE;
- qApp->exit_loop();
+ tqApp->exit_loop();
return TRUE; // block the key release
}
return FALSE;
@@ -989,7 +989,7 @@ bool TQDragManager::eventFilter( TQObject * o, TQEvent * e)
need_modifiers_check = FALSE;
return TRUE;
} else if ( e->type() == TQEvent::MouseButtonRelease ) {
- qApp->removeEventFilter( this );
+ tqApp->removeEventFilter( this );
if ( willDrop )
drop();
else
@@ -997,7 +997,7 @@ bool TQDragManager::eventFilter( TQObject * o, TQEvent * e)
object = 0;
dragSource = 0;
beingCancelled = FALSE;
- qApp->exit_loop();
+ tqApp->exit_loop();
return TRUE;
} else if ( e->type() == TQEvent::DragResponse ) {
if ( ((TQDragResponseEvent *)e)->dragAccepted() ) {
@@ -1019,11 +1019,11 @@ bool TQDragManager::eventFilter( TQObject * o, TQEvent * e)
TQKeyEvent *ke = ((TQKeyEvent*)e);
if ( ke->key() == Key_Escape && e->type() == TQEvent::KeyPress ) {
cancel();
- qApp->removeEventFilter( this );
+ tqApp->removeEventFilter( this );
object = 0;
dragSource = 0;
beingCancelled = FALSE;
- qApp->exit_loop();
+ tqApp->exit_loop();
} else {
if( updateMode(ke->stateAfter())) {
qt_xdnd_source_sameanswer = TQRect(); // force move
@@ -1125,7 +1125,7 @@ void TQDragManager::updateCursor()
}
#ifndef QT_NO_CURSOR
if ( c )
- qApp->setOverrideCursor( *c, TRUE );
+ tqApp->setOverrideCursor( *c, TRUE );
#endif
}
@@ -1738,7 +1738,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode )
if ( object ) {
cancel();
- qApp->removeEventFilter( this );
+ tqApp->removeEventFilter( this );
beingCancelled = FALSE;
}
@@ -1754,7 +1754,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode )
XEvent event;
if ( XCheckTypedEvent( TQPaintDevice::x11AppDisplay(),
ClientMessage, &event ) )
- qApp->x11ProcessEvent( &event );
+ tqApp->x11ProcessEvent( &event );
now = TQTime::currentTime();
if ( started > now ) // crossed midnight
@@ -1780,7 +1780,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode )
dragSource = (TQWidget *)(object->parent());
qt_xdnd_deco->x11SetWindowTransient( dragSource->topLevelWidget());
- qApp->installEventFilter( this );
+ tqApp->installEventFilter( this );
qt_xdnd_source_current_time = qt_x_time;
XSetSelectionOwner( TQPaintDevice::x11AppDisplay(), qt_xdnd_selection,
dragSource->topLevelWidget()->winId(),
@@ -1795,7 +1795,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode )
need_modifiers_check = FALSE;
#ifndef QT_NO_CURSOR
- qApp->setOverrideCursor( arrowCursor );
+ tqApp->setOverrideCursor( arrowCursor );
restoreCursor = TRUE;
updateCursor();
#endif
@@ -1806,10 +1806,10 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode )
if (!TQWidget::mouseGrabber())
qt_xdnd_deco->grabMouse();
- qApp->enter_loop(); // Do the DND.
+ tqApp->enter_loop(); // Do the DND.
#ifndef QT_NO_CURSOR
- qApp->restoreOverrideCursor();
+ tqApp->restoreOverrideCursor();
#endif
delete qt_xdnd_deco;
diff --git a/src/kernel/qdragobject.cpp b/src/kernel/qdragobject.cpp
index e74847cd..66e1c66c 100644
--- a/src/kernel/qdragobject.cpp
+++ b/src/kernel/qdragobject.cpp
@@ -264,7 +264,7 @@ TQDragManager * qt_dnd_manager = 0;
TQDragManager::TQDragManager()
- : TQObject( qApp, "global drag manager" )
+ : TQObject( tqApp, "global drag manager" )
{
n_cursor = 3;
pm_cursor = new TQPixmap[n_cursor];
@@ -312,7 +312,7 @@ TQDragObject::TQDragObject( TQWidget * dragSource, const char * name )
d = new TQDragObjectData();
d->pm_cursor = 0;
#ifndef QT_NO_DRAGANDDROP
- if ( !qt_dnd_manager && qApp )
+ if ( !qt_dnd_manager && tqApp )
(void)new TQDragManager();
#endif
}
diff --git a/src/kernel/qevent.cpp b/src/kernel/qevent.cpp
index 9c9aace0..198062b8 100644
--- a/src/kernel/qevent.cpp
+++ b/src/kernel/qevent.cpp
@@ -2566,6 +2566,6 @@ TQCustomEvent::TQCustomEvent( int type )
TQEvent::~TQEvent()
{
- if ( posted && qApp )
+ if ( posted && tqApp )
TQApplication::removePostedEvent( this );
}
diff --git a/src/kernel/qeventloop.cpp b/src/kernel/qeventloop.cpp
index f09d3e9a..c01d8ad5 100644
--- a/src/kernel/qeventloop.cpp
+++ b/src/kernel/qeventloop.cpp
@@ -210,7 +210,7 @@ int TQEventLoop::enterLoop()
d->quitnow = FALSE;
d->exitloop = FALSE;
d->shortcut = FALSE;
- emit qApp->aboutToQuit();
+ emit tqApp->aboutToQuit();
// send deferred deletes
TQApplication::sendPostedEvents( 0, TQEvent::DeferredDelete );
diff --git a/src/kernel/qeventloop_x11.cpp b/src/kernel/qeventloop_x11.cpp
index ae2183a0..1e446bac 100644
--- a/src/kernel/qeventloop_x11.cpp
+++ b/src/kernel/qeventloop_x11.cpp
@@ -192,7 +192,7 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags )
}
nevents++;
- if ( qApp->x11ProcessEvent( &event ) == 1 )
+ if ( tqApp->x11ProcessEvent( &event ) == 1 )
return TRUE;
}
}
@@ -301,7 +301,7 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags )
// we are awake, broadcast it
emit awake();
- emit qApp->guiThreadAwake();
+ emit tqApp->guiThreadAwake();
if (nsel == -1) {
if (errno == EBADF) {
diff --git a/src/kernel/qfont.cpp b/src/kernel/qfont.cpp
index 4521e89b..ed255522 100644
--- a/src/kernel/qfont.cpp
+++ b/src/kernel/qfont.cpp
@@ -2943,7 +2943,7 @@ static TQSingleCleanupHandler<TQFontCache> cleanup_fontcache;
TQFontCache::TQFontCache()
- : TQObject( qApp, "global font cache" ), total_cost( 0 ), max_cost( min_cost ),
+ : TQObject( tqApp, "global font cache" ), total_cost( 0 ), max_cost( min_cost ),
current_timestamp( 0 ), fast( FALSE ), timer_id( -1 )
{
Q_ASSERT( instance == 0 );
diff --git a/src/kernel/qfontdatabase.cpp b/src/kernel/qfontdatabase.cpp
index 1138dfef..09846b02 100644
--- a/src/kernel/qfontdatabase.cpp
+++ b/src/kernel/qfontdatabase.cpp
@@ -2170,7 +2170,7 @@ TQString TQFontDatabase::scriptName(TQFont::Script script)
break;
}
- return qApp ? qApp->translate("TQFont", name) : TQString::fromLatin1(name);
+ return tqApp ? tqApp->translate("TQFont", name) : TQString::fromLatin1(name);
}
diff --git a/src/kernel/qimage.cpp b/src/kernel/qimage.cpp
index d904b28c..bb7e1da9 100644
--- a/src/kernel/qimage.cpp
+++ b/src/kernel/qimage.cpp
@@ -98,10 +98,10 @@
setAlphaBuffer() alpha buffer\endlink.
An entry in the color table is an RGB triplet encoded as a \c
- uint. Use the \link ::qRed() qRed()\endlink, \link ::qGreen()
- qGreen()\endlink and \link ::qBlue() qBlue()\endlink functions (\c
- ntqcolor.h) to access the components, and \link ::qRgb()
- qRgb\endlink to make an RGB triplet (see the TQColor class
+ uint. Use the \link ::tqRed() tqRed()\endlink, \link ::tqGreen()
+ tqGreen()\endlink and \link ::tqBlue() tqBlue()\endlink functions (\c
+ ntqcolor.h) to access the components, and \link ::tqRgb()
+ tqRgb\endlink to make an RGB triplet (see the TQColor class
documentation).
1-bpp (monochrome) images have a color table with a most two
@@ -127,7 +127,7 @@
\code
TQImage image;
// set entry 19 in the color table to yellow
- image.setColor( 19, qRgb(255,255,0) );
+ image.setColor( 19, tqRgb(255,255,0) );
// set 8 bit pixel at (x,y) to value yellow (in color table)
*(image.scanLine(y) + x) = 19;
\endcode
@@ -140,7 +140,7 @@
TQImage image;
// sets 32 bit pixel at (x,y) to yellow.
uint *p = (uint *)image.scanLine(y) + x;
- *p = qRgb(255,255,0);
+ *p = tqRgb(255,255,0);
\endcode
On TQt/Embedded, scanlines are aligned to the pixel depth and may
@@ -888,9 +888,9 @@ TQImage TQImage::copy(int x, int y, int w, int h, int conversion_flags) const
Returns the color in the color table at index \a i. The first
color is at index 0.
- A color value is an RGB triplet. Use the \link ::qRed()
- qRed()\endlink, \link ::qGreen() qGreen()\endlink and \link
- ::qBlue() qBlue()\endlink functions (defined in \c ntqcolor.h) to
+ A color value is an RGB triplet. Use the \link ::tqRed()
+ tqRed()\endlink, \link ::tqGreen() tqGreen()\endlink and \link
+ ::tqBlue() tqBlue()\endlink functions (defined in \c ntqcolor.h) to
get the color value components.
\sa setColor() numColors() TQColor
@@ -901,8 +901,8 @@ TQImage TQImage::copy(int x, int y, int w, int h, int conversion_flags) const
Sets a color in the color table at index \a i to \a c.
- A color value is an RGB triplet. Use the \link ::qRgb()
- qRgb()\endlink function (defined in \c ntqcolor.h) to make RGB
+ A color value is an RGB triplet. Use the \link ::tqRgb()
+ tqRgb()\endlink function (defined in \c ntqcolor.h) to make RGB
triplets.
\sa color() setNumColors() numColors()
@@ -920,9 +920,9 @@ TQImage TQImage::copy(int x, int y, int w, int h, int conversion_flags) const
pointer to \c{TQRgb*} (TQRgb has a 32-bit size) and use it to
read/write the pixel value. You cannot use the \c{uchar*} pointer
directly, because the pixel format depends on the byte order on
- the underlying platform. Hint: use \link ::qRed() qRed()\endlink,
- \link ::qGreen() qGreen()\endlink and \link ::qBlue()
- qBlue()\endlink, etc. (ntqcolor.h) to access the pixels.
+ the underlying platform. Hint: use \link ::tqRed() tqRed()\endlink,
+ \link ::tqGreen() tqGreen()\endlink and \link ::tqBlue()
+ tqBlue()\endlink, etc. (ntqcolor.h) to access the pixels.
\warning If you are accessing 16-bpp image data, you must handle
endianness yourself. (TQt/Embedded only)
@@ -1522,7 +1522,7 @@ static bool convert_32_to_8( const TQImage *src, TQImage *dst, int conversion_fl
for ( bc=0; bc<=MAX_B; bc++ ) {
dst->setColor( INDEXOF(rc,gc,bc),
(amask&0xff000000)
- | qRgb( rc*255/MAX_R, gc*255/MAX_G, bc*255/MAX_B ) );
+ | tqRgb( rc*255/MAX_R, gc*255/MAX_G, bc*255/MAX_B ) );
}
int sw = src->width();
@@ -1551,9 +1551,9 @@ static bool convert_32_to_8( const TQImage *src, TQImage *dst, int conversion_fl
if ( ( conversion_flags & TQt::Dither_Mask ) == TQt::ThresholdDither ) {
#define DITHER(p,m) ((uchar) ((p * (m) + 127) / 255))
while ( p < end ) {
- rc = qRed( *p );
- gc = qGreen( *p );
- bc = qBlue( *p );
+ rc = tqRed( *p );
+ gc = tqGreen( *p );
+ bc = tqBlue( *p );
*b++ =
INDEXOF(
@@ -1572,9 +1572,9 @@ static bool convert_32_to_8( const TQImage *src, TQImage *dst, int conversion_fl
while ( p < end ) {
uint d = bm[y&15][x&15];
- rc = qRed( *p );
- gc = qGreen( *p );
- bc = qBlue( *p );
+ rc = tqRed( *p );
+ gc = tqGreen( *p );
+ bc = tqBlue( *p );
*b++ =
INDEXOF(
@@ -1805,8 +1805,8 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
dithermode = Diffuse;
}
- dst->setColor( 0, qRgb(255, 255, 255) );
- dst->setColor( 1, qRgb( 0, 0, 0) );
+ dst->setColor( 0, tqRgb(255, 255, 255) );
+ dst->setColor( 1, tqRgb( 0, 0, 0) );
int w = src->width();
int h = src->height();
int d = src->depth();
@@ -1822,7 +1822,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
// Pixel 0x00 -> 1 pixels (black)
// Pixel 0xFF -> 0 pixels (white)
for ( int i=0; i<src->numColors(); i++ )
- gray[i] = qGray( src->color(i) & 0x00ffffff );
+ gray[i] = tqGray( src->color(i) & 0x00ffffff );
}
}
@@ -1852,7 +1852,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
}
} else {
while ( p < end ) {
- *b2++ = qGray(*(uint*)p);
+ *b2++ = tqGray(*(uint*)p);
p += 4;
}
}
@@ -1878,7 +1878,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
}
} else {
while ( p < end ) {
- *b2++ = qGray(*(uint*)p);
+ *b2++ = tqGray(*(uint*)p);
p += 4;
}
}
@@ -1970,7 +1970,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
}
} else {
while ( p < end ) {
- if ( (uint)qGray(*p++) < bm[j++&15][i&15] )
+ if ( (uint)tqGray(*p++) < bm[j++&15][i&15] )
*m |= 1 << bit;
if ( bit == 0 ) {
m++;
@@ -2028,7 +2028,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
}
} else {
while ( p < end ) {
- if ( qGray(*p++) < 128 )
+ if ( tqGray(*p++) < 128 )
*m |= 1 << bit; // Set pixel "black"
if ( bit == 0 ) {
m++;
@@ -2241,7 +2241,7 @@ int TQImage::pixelIndex( int x, int y ) const
If (\a x, \a y) is not \link valid() on the image\endlink, the
results are undefined.
- \sa setPixel() qRed() qGreen() qBlue() valid()
+ \sa setPixel() tqRed() tqGreen() tqBlue() valid()
*/
TQRgb TQImage::pixel( int x, int y ) const
@@ -2285,7 +2285,7 @@ TQRgb TQImage::pixel( int x, int y ) const
If the image is a paletted image (depth() \<= 8) and \a
index_or_rgb \>= numColors(), the result is undefined.
- \sa pixelIndex() pixel() qRgb() qRgba() valid()
+ \sa pixelIndex() pixel() tqRgb() tqRgba() valid()
*/
void TQImage::setPixel( int x, int y, uint index_or_rgb )
@@ -2377,8 +2377,8 @@ TQImage TQImage::convertBitOrder( Endian bitOrder ) const
static
bool isGray(TQRgb c)
{
- return qRed(c) == qGreen(c)
- && qRed(c) == qBlue(c);
+ return tqRed(c) == tqGreen(c)
+ && tqRed(c) == tqBlue(c);
}
/*!
@@ -2440,7 +2440,7 @@ bool TQImage::isGrayscale() const
#endif //QT_NO_IMAGE_TRUECOLOR
case 8: {
for (int i=0; i<numColors(); i++)
- if (data->ctbl[i] != qRgb(i,i,i))
+ if (data->ctbl[i] != tqRgb(i,i,i))
return FALSE;
return TRUE;
}
@@ -2532,14 +2532,14 @@ void pnmscale(const TQImage& src, TQImage& dst)
xelrow = (TQRgb*)src.scanLine(rowsread++);
for ( col = 0, xP = xelrow; col < cols; ++col, ++xP ) {
if (as) {
- as[col] += fracrowleft * qAlpha( *xP );
- rs[col] += fracrowleft * qRed( *xP ) * qAlpha( *xP ) / 255;
- gs[col] += fracrowleft * qGreen( *xP ) * qAlpha( *xP ) / 255;
- bs[col] += fracrowleft * qBlue( *xP ) * qAlpha( *xP ) / 255;
+ as[col] += fracrowleft * tqAlpha( *xP );
+ rs[col] += fracrowleft * tqRed( *xP ) * tqAlpha( *xP ) / 255;
+ gs[col] += fracrowleft * tqGreen( *xP ) * tqAlpha( *xP ) / 255;
+ bs[col] += fracrowleft * tqBlue( *xP ) * tqAlpha( *xP ) / 255;
} else {
- rs[col] += fracrowleft * qRed( *xP );
- gs[col] += fracrowleft * qGreen( *xP );
- bs[col] += fracrowleft * qBlue( *xP );
+ rs[col] += fracrowleft * tqRed( *xP );
+ gs[col] += fracrowleft * tqGreen( *xP );
+ bs[col] += fracrowleft * tqBlue( *xP );
}
}
fracrowtofill -= fracrowleft;
@@ -2558,19 +2558,19 @@ void pnmscale(const TQImage& src, TQImage& dst)
register long r, g, b;
if ( as ) {
- r = rs[col] + fracrowtofill * qRed( *xP ) * qAlpha( *xP ) / 255;
- g = gs[col] + fracrowtofill * qGreen( *xP ) * qAlpha( *xP ) / 255;
- b = bs[col] + fracrowtofill * qBlue( *xP ) * qAlpha( *xP ) / 255;
- a = as[col] + fracrowtofill * qAlpha( *xP );
+ r = rs[col] + fracrowtofill * tqRed( *xP ) * tqAlpha( *xP ) / 255;
+ g = gs[col] + fracrowtofill * tqGreen( *xP ) * tqAlpha( *xP ) / 255;
+ b = bs[col] + fracrowtofill * tqBlue( *xP ) * tqAlpha( *xP ) / 255;
+ a = as[col] + fracrowtofill * tqAlpha( *xP );
if ( a ) {
r = r * 255 / a * SCALE;
g = g * 255 / a * SCALE;
b = b * 255 / a * SCALE;
}
} else {
- r = rs[col] + fracrowtofill * qRed( *xP );
- g = gs[col] + fracrowtofill * qGreen( *xP );
- b = bs[col] + fracrowtofill * qBlue( *xP );
+ r = rs[col] + fracrowtofill * tqRed( *xP );
+ g = gs[col] + fracrowtofill * tqGreen( *xP );
+ b = bs[col] + fracrowtofill * tqBlue( *xP );
}
r /= SCALE;
if ( r > maxval ) r = maxval;
@@ -2581,10 +2581,10 @@ void pnmscale(const TQImage& src, TQImage& dst)
if ( as ) {
a /= SCALE;
if ( a > maxval ) a = maxval;
- *nxP = qRgba( (int)r, (int)g, (int)b, (int)a );
+ *nxP = tqRgba( (int)r, (int)g, (int)b, (int)a );
as[col] = HALFSCALE;
} else {
- *nxP = qRgb( (int)r, (int)g, (int)b );
+ *nxP = tqRgb( (int)r, (int)g, (int)b );
}
rs[col] = gs[col] = bs[col] = HALFSCALE;
}
@@ -2617,19 +2617,19 @@ void pnmscale(const TQImage& src, TQImage& dst)
a = r = g = b = HALFSCALE;
}
if ( as ) {
- r += fraccoltofill * qRed( *xP ) * qAlpha( *xP ) / 255;
- g += fraccoltofill * qGreen( *xP ) * qAlpha( *xP ) / 255;
- b += fraccoltofill * qBlue( *xP ) * qAlpha( *xP ) / 255;
- a += fraccoltofill * qAlpha( *xP );
+ r += fraccoltofill * tqRed( *xP ) * tqAlpha( *xP ) / 255;
+ g += fraccoltofill * tqGreen( *xP ) * tqAlpha( *xP ) / 255;
+ b += fraccoltofill * tqBlue( *xP ) * tqAlpha( *xP ) / 255;
+ a += fraccoltofill * tqAlpha( *xP );
if ( a ) {
r = r * 255 / a * SCALE;
g = g * 255 / a * SCALE;
b = b * 255 / a * SCALE;
}
} else {
- r += fraccoltofill * qRed( *xP );
- g += fraccoltofill * qGreen( *xP );
- b += fraccoltofill * qBlue( *xP );
+ r += fraccoltofill * tqRed( *xP );
+ g += fraccoltofill * tqGreen( *xP );
+ b += fraccoltofill * tqBlue( *xP );
}
r /= SCALE;
if ( r > maxval ) r = maxval;
@@ -2640,9 +2640,9 @@ void pnmscale(const TQImage& src, TQImage& dst)
if (as) {
a /= SCALE;
if ( a > maxval ) a = maxval;
- *nxP = qRgba( (int)r, (int)g, (int)b, (int)a );
+ *nxP = tqRgba( (int)r, (int)g, (int)b, (int)a );
} else {
- *nxP = qRgb( (int)r, (int)g, (int)b );
+ *nxP = tqRgb( (int)r, (int)g, (int)b );
}
fraccolleft -= fraccoltofill;
fraccoltofill = SCALE;
@@ -2655,14 +2655,14 @@ void pnmscale(const TQImage& src, TQImage& dst)
needcol = 0;
}
if (as) {
- a += fraccolleft * qAlpha( *xP );
- r += fraccolleft * qRed( *xP ) * qAlpha( *xP ) / 255;
- g += fraccolleft * qGreen( *xP ) * qAlpha( *xP ) / 255;
- b += fraccolleft * qBlue( *xP ) * qAlpha( *xP ) / 255;
+ a += fraccolleft * tqAlpha( *xP );
+ r += fraccolleft * tqRed( *xP ) * tqAlpha( *xP ) / 255;
+ g += fraccolleft * tqGreen( *xP ) * tqAlpha( *xP ) / 255;
+ b += fraccolleft * tqBlue( *xP ) * tqAlpha( *xP ) / 255;
} else {
- r += fraccolleft * qRed( *xP );
- g += fraccolleft * qGreen( *xP );
- b += fraccolleft * qBlue( *xP );
+ r += fraccolleft * tqRed( *xP );
+ g += fraccolleft * tqGreen( *xP );
+ b += fraccolleft * tqBlue( *xP );
}
fraccoltofill -= fraccolleft;
}
@@ -2670,19 +2670,19 @@ void pnmscale(const TQImage& src, TQImage& dst)
if ( fraccoltofill > 0 ) {
--xP;
if (as) {
- a += fraccolleft * qAlpha( *xP );
- r += fraccoltofill * qRed( *xP ) * qAlpha( *xP ) / 255;
- g += fraccoltofill * qGreen( *xP ) * qAlpha( *xP ) / 255;
- b += fraccoltofill * qBlue( *xP ) * qAlpha( *xP ) / 255;
+ a += fraccolleft * tqAlpha( *xP );
+ r += fraccoltofill * tqRed( *xP ) * tqAlpha( *xP ) / 255;
+ g += fraccoltofill * tqGreen( *xP ) * tqAlpha( *xP ) / 255;
+ b += fraccoltofill * tqBlue( *xP ) * tqAlpha( *xP ) / 255;
if ( a ) {
r = r * 255 / a * SCALE;
g = g * 255 / a * SCALE;
b = b * 255 / a * SCALE;
}
} else {
- r += fraccoltofill * qRed( *xP );
- g += fraccoltofill * qGreen( *xP );
- b += fraccoltofill * qBlue( *xP );
+ r += fraccoltofill * tqRed( *xP );
+ g += fraccoltofill * tqGreen( *xP );
+ b += fraccoltofill * tqBlue( *xP );
}
}
if ( ! needcol ) {
@@ -2695,9 +2695,9 @@ void pnmscale(const TQImage& src, TQImage& dst)
if (as) {
a /= SCALE;
if ( a > maxval ) a = maxval;
- *nxP = qRgba( (int)r, (int)g, (int)b, (int)a );
+ *nxP = tqRgba( (int)r, (int)g, (int)b, (int)a );
} else {
- *nxP = qRgb( (int)r, (int)g, (int)b );
+ *nxP = tqRgb( (int)r, (int)g, (int)b );
}
}
}
@@ -4704,7 +4704,7 @@ bool read_dib( TQDataStream& s, int offset, int startpos, TQImage& image )
for ( int i=0; i<ncols; i++ ) {
if ( d->readBlock( (char *)rgb, rgb_len ) != rgb_len )
return FALSE;
- image.setColor( i, qRgb(rgb[2],rgb[1],rgb[0]) );
+ image.setColor( i, tqRgb(rgb[2],rgb[1],rgb[0]) );
if ( d->atEnd() ) // truncated file
return FALSE;
}
@@ -4758,7 +4758,7 @@ bool read_dib( TQDataStream& s, int offset, int startpos, TQImage& image )
d->at(d->at()+pad);
#endif
}
- if ( ncols == 2 && qGray(image.color(0)) < qGray(image.color(1)) )
+ if ( ncols == 2 && tqGray(image.color(0)) < tqGray(image.color(1)) )
swapPixel01( &image ); // pixel 0 is white!
}
@@ -4929,7 +4929,7 @@ bool read_dib( TQDataStream& s, int offset, int startpos, TQImage& image )
c = *(uchar*)b | (*(uchar*)(b+1)<<8);
if (nbits != 16)
c |= *(uchar*)(b+2)<<16;
- *p++ = qRgb(((c & red_mask) >> red_shift) * red_scale,
+ *p++ = tqRgb(((c & red_mask) >> red_shift) * red_scale,
((c & green_mask) >> green_shift) * green_scale,
((c & blue_mask) >> blue_shift) * blue_scale);
b += nbits/8;
@@ -5012,9 +5012,9 @@ bool qt_write_dib( TQDataStream& s, TQImage image )
uchar *rgb = color_table;
TQRgb *c = image.colorTable();
for ( int i=0; i<image.numColors(); i++ ) {
- *rgb++ = qBlue ( c[i] );
- *rgb++ = qGreen( c[i] );
- *rgb++ = qRed ( c[i] );
+ *rgb++ = tqBlue ( c[i] );
+ *rgb++ = tqGreen( c[i] );
+ *rgb++ = tqRed ( c[i] );
*rgb++ = 0;
}
d->writeBlock( (char *)color_table, 4*image.numColors() );
@@ -5062,9 +5062,9 @@ bool qt_write_dib( TQDataStream& s, TQImage image )
TQRgb *end = p + image.width();
b = buf;
while ( p < end ) {
- *b++ = qBlue(*p);
- *b++ = qGreen(*p);
- *b++ = qRed(*p);
+ *b++ = tqBlue(*p);
+ *b++ = tqGreen(*p);
+ *b++ = tqRed(*p);
p++;
}
}
@@ -5216,7 +5216,7 @@ static void read_pbm_image( TQImageIO *iio ) // read PBM image data
end = p + w;
b = buf24;
while ( p < end ) {
- *p++ = qRgb(b[0],b[1],b[2]);
+ *p++ = tqRgb(b[0],b[1],b[2]);
b += 3;
}
}
@@ -5260,7 +5260,7 @@ static void read_pbm_image( TQImageIO *iio ) // read PBM image data
r = read_pbm_int( d );
g = read_pbm_int( d );
b = read_pbm_int( d );
- *((TQRgb*)p) = qRgb( r, g, b );
+ *((TQRgb*)p) = tqRgb( r, g, b );
p += 4;
}
} else {
@@ -5268,7 +5268,7 @@ static void read_pbm_image( TQImageIO *iio ) // read PBM image data
r = read_pbm_int( d ) * maxc / mcc;
g = read_pbm_int( d ) * maxc / mcc;
b = read_pbm_int( d ) * maxc / mcc;
- *((TQRgb*)p) = qRgb( r, g, b );
+ *((TQRgb*)p) = tqRgb( r, g, b );
p += 4;
}
}
@@ -5278,12 +5278,12 @@ static void read_pbm_image( TQImageIO *iio ) // read PBM image data
if ( nbits == 1 ) { // bitmap
image.setNumColors( 2 );
- image.setColor( 0, qRgb(255,255,255) ); // white
- image.setColor( 1, qRgb(0,0,0) ); // black
+ image.setColor( 0, tqRgb(255,255,255) ); // white
+ image.setColor( 1, tqRgb(0,0,0) ); // black
} else if ( nbits == 8 ) { // graymap
image.setNumColors( maxc+1 );
for ( int i=0; i<=maxc; i++ )
- image.setColor( i, qRgb(i*255/maxc,i*255/maxc,i*255/maxc) );
+ image.setColor( i, tqRgb(i*255/maxc,i*255/maxc,i*255/maxc) );
}
iio->setImage( image );
@@ -5308,7 +5308,7 @@ static void write_pbm_image( TQImageIO *iio )
}
if ( image.depth() == 1 && image.numColors() == 2 ) {
- if ( qGray(image.color(0)) < qGray(image.color(1)) ) {
+ if ( tqGray(image.color(0)) < tqGray(image.color(1)) ) {
// 0=dark/black, 1=light/white - invert
image.detach();
for ( int y=0; y<image.height(); y++ ) {
@@ -5359,15 +5359,15 @@ static void write_pbm_image( TQImageIO *iio )
uchar *end = buf+bpl;
if ( gray ) {
while ( p < end ) {
- uchar g = (uchar)qGray(color[*b++]);
+ uchar g = (uchar)tqGray(color[*b++]);
*p++ = g;
}
} else {
while ( p < end ) {
TQRgb rgb = color[*b++];
- *p++ = qRed(rgb);
- *p++ = qGreen(rgb);
- *p++ = qBlue(rgb);
+ *p++ = tqRed(rgb);
+ *p++ = tqGreen(rgb);
+ *p++ = tqBlue(rgb);
}
}
if ( bpl != (uint)out->writeBlock((char*)buf, bpl) ) {
@@ -5394,15 +5394,15 @@ static void write_pbm_image( TQImageIO *iio )
uchar *end = buf+bpl;
if ( gray ) {
while ( p < end ) {
- uchar g = (uchar)qGray(*b++);
+ uchar g = (uchar)tqGray(*b++);
*p++ = g;
}
} else {
while ( p < end ) {
TQRgb rgb = *b++;
- *p++ = qRed(rgb);
- *p++ = qGreen(rgb);
- *p++ = qBlue(rgb);
+ *p++ = tqRed(rgb);
+ *p++ = tqGreen(rgb);
+ *p++ = tqBlue(rgb);
}
}
if ( bpl != (uint)out->writeBlock((char*)buf, bpl) ) {
@@ -5544,8 +5544,8 @@ static void read_xbm_image( TQImageIO *iio )
if ( image.isNull() )
return;
- image.setColor( 0, qRgb(255,255,255) ); // white
- image.setColor( 1, qRgb(0,0,0) ); // black
+ image.setColor( 0, tqRgb(255,255,255) ); // white
+ image.setColor( 1, tqRgb(0,0,0) ); // black
int x = 0, y = 0;
uchar *b = image.scanLine(0);
@@ -5597,7 +5597,7 @@ static void write_xbm_image( TQImageIO *iio )
if ( image.bitOrder() != TQImage::LittleEndian )
image = image.convertBitOrder( TQImage::LittleEndian );
- bool invert = qGray(image.color(0)) < qGray(image.color(1));
+ bool invert = tqGray(image.color(0)) < tqGray(image.color(1));
char hexrep[16];
for ( i=0; i<10; i++ )
hexrep[i] = '0' + i;
@@ -5784,10 +5784,10 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc
int transparentColor = currentColor;
if ( image.depth() == 8 ) {
image.setColor( transparentColor,
- RGB_MASK & qRgb(198,198,198) );
+ TQT_RGB_MASK & tqRgb(198,198,198) );
colorMap.insert( index, transparentColor );
} else {
- TQRgb rgb = RGB_MASK & qRgb(198,198,198);
+ TQRgb rgb = TQT_RGB_MASK & tqRgb(198,198,198);
colorMap.insert( index, rgb );
}
} else {
@@ -5947,15 +5947,15 @@ static void write_xpm_image( TQImageIO * iio )
TQMap<TQRgb, int>::Iterator c = colorMap.begin();
while ( c != colorMap.end() ) {
TQRgb color = c.key();
- if ( image.hasAlphaBuffer() && color == (color & RGB_MASK) )
+ if ( image.hasAlphaBuffer() && color == (color & TQT_RGB_MASK) )
line.sprintf( "\"%s c None\"",
xpm_color_name(cpp, *c) );
else
line.sprintf( "\"%s c #%02x%02x%02x\"",
xpm_color_name(cpp, *c),
- qRed(color),
- qGreen(color),
- qBlue(color) );
+ tqRed(color),
+ tqGreen(color),
+ tqBlue(color) );
++c;
s << "," << endl << line;
}
@@ -6182,17 +6182,17 @@ void bitBlt( TQImage* dst, int dx, int dy, const TQImage* src,
const int ds = src->width() - sw;
while ( sh-- ) {
for ( int t=sw; t--; ) {
- unsigned char a = qAlpha(*s);
+ unsigned char a = tqAlpha(*s);
if ( a == 255 )
*d++ = *s++;
else if ( a == 0 )
++d,++s; // nothing
else {
- unsigned char r = ((qRed(*s)-qRed(*d)) * a) / 256 + qRed(*d);
- unsigned char g = ((qGreen(*s)-qGreen(*d)) * a) / 256 + qGreen(*d);
- unsigned char b = ((qBlue(*s)-qBlue(*d)) * a) / 256 + qBlue(*d);
- a = TQMAX(qAlpha(*d),a); // alternatives...
- *d++ = qRgba(r,g,b,a);
+ unsigned char r = ((tqRed(*s)-tqRed(*d)) * a) / 256 + tqRed(*d);
+ unsigned char g = ((tqGreen(*s)-tqGreen(*d)) * a) / 256 + tqGreen(*d);
+ unsigned char b = ((tqBlue(*s)-tqBlue(*d)) * a) / 256 + tqBlue(*d);
+ a = TQMAX(tqAlpha(*d),a); // alternatives...
+ *d++ = tqRgba(r,g,b,a);
++s;
}
}
@@ -6485,7 +6485,7 @@ TQGfx * TQImage::graphicsContext()
TQRgb * tmp=colorTable();
int nc=numColors();
if(tmp==0) {
- static TQRgb table[2] = { qRgb(255,255,255), qRgb(0,0,0) };
+ static TQRgb table[2] = { tqRgb(255,255,255), tqRgb(0,0,0) };
tmp=table;
nc=2;
}
diff --git a/src/kernel/qjpegio.cpp b/src/kernel/qjpegio.cpp
index 41fbc2bc..e7b33f8c 100644
--- a/src/kernel/qjpegio.cpp
+++ b/src/kernel/qjpegio.cpp
@@ -263,7 +263,7 @@ void read_jpeg_image(TQImageIO* iio)
} else if ( cinfo.output_components == 1 ) {
created = image.create( sWidth, sHeight, 8, 256 );
for (int i=0; i<256; i++)
- image.setColor(i, qRgb(i,i,i));
+ image.setColor(i, tqRgb(i,i,i));
} else {
// Unsupported format
}
@@ -288,7 +288,7 @@ void read_jpeg_image(TQImageIO* iio)
// the weight of it when added to the output buffer. At present it is a non-smooth scale which is
// inefficently implemented, it still uncompresses all the jpeg, an optimization for progressive
// jpegs could be made if scaling by say 50% or some other special cases
- out[sWidth * i / cinfo.output_width] = qRgb( in[0], in[1], in[2] );
+ out[sWidth * i / cinfo.output_width] = tqRgb( in[0], in[1], in[2] );
in += 3;
}
} else {
@@ -312,7 +312,7 @@ void read_jpeg_image(TQImageIO* iio)
} else if ( cinfo.output_components == 1 ) {
created = image.create( cinfo.output_width, cinfo.output_height, 8, 256 );
for (int i=0; i<256; i++)
- image.setColor(i, qRgb(i,i,i));
+ image.setColor(i, tqRgb(i,i,i));
} else {
// Unsupported format
}
@@ -335,7 +335,7 @@ void read_jpeg_image(TQImageIO* iio)
for (uint i=cinfo.output_width; i--; ) {
in-=3;
- out[i] = qRgb(in[0], in[1], in[2]);
+ out[i] = tqRgb(in[0], in[1], in[2]);
}
}
}
@@ -475,8 +475,8 @@ void write_jpeg_image(TQImageIO* iio)
gray = TRUE;
int i;
for (i=image.numColors(); gray && i--; ) {
- gray = gray & ( qRed(cmap[i]) == qGreen(cmap[i]) &&
- qRed(cmap[i]) == qBlue(cmap[i]) );
+ gray = gray & ( tqRed(cmap[i]) == tqGreen(cmap[i]) &&
+ tqRed(cmap[i]) == tqBlue(cmap[i]) );
}
cinfo.input_components = gray ? 1 : 3;
cinfo.in_color_space = gray ? JCS_GRAYSCALE : JCS_RGB;
@@ -522,12 +522,12 @@ void write_jpeg_image(TQImageIO* iio)
if ( image.bitOrder() == TQImage::LittleEndian ) {
for (int i=0; i<w; i++) {
bool bit = !!(*(data + (i >> 3)) & (1 << (i & 7)));
- row[i] = qRed(cmap[bit]);
+ row[i] = tqRed(cmap[bit]);
}
} else {
for (int i=0; i<w; i++) {
bool bit = !!(*(data + (i >> 3)) & (1 << (7 -(i & 7))));
- row[i] = qRed(cmap[bit]);
+ row[i] = tqRed(cmap[bit]);
}
}
} else {
@@ -535,16 +535,16 @@ void write_jpeg_image(TQImageIO* iio)
if ( image.bitOrder() == TQImage::LittleEndian ) {
for (int i=0; i<w; i++) {
bool bit = !!(*(data + (i >> 3)) & (1 << (i & 7)));
- *row++ = qRed(cmap[bit]);
- *row++ = qGreen(cmap[bit]);
- *row++ = qBlue(cmap[bit]);
+ *row++ = tqRed(cmap[bit]);
+ *row++ = tqGreen(cmap[bit]);
+ *row++ = tqBlue(cmap[bit]);
}
} else {
for (int i=0; i<w; i++) {
bool bit = !!(*(data + (i >> 3)) & (1 << (7 -(i & 7))));
- *row++ = qRed(cmap[bit]);
- *row++ = qGreen(cmap[bit]);
- *row++ = qBlue(cmap[bit]);
+ *row++ = tqRed(cmap[bit]);
+ *row++ = tqGreen(cmap[bit]);
+ *row++ = tqBlue(cmap[bit]);
}
}
}
@@ -553,15 +553,15 @@ void write_jpeg_image(TQImageIO* iio)
if (gray) {
uchar* pix = image.scanLine(cinfo.next_scanline);
for (int i=0; i<w; i++) {
- *row = qRed(cmap[*pix]);
+ *row = tqRed(cmap[*pix]);
++row; ++pix;
}
} else {
uchar* pix = image.scanLine(cinfo.next_scanline);
for (int i=0; i<w; i++) {
- *row++ = qRed(cmap[*pix]);
- *row++ = qGreen(cmap[*pix]);
- *row++ = qBlue(cmap[*pix]);
+ *row++ = tqRed(cmap[*pix]);
+ *row++ = tqGreen(cmap[*pix]);
+ *row++ = tqBlue(cmap[*pix]);
++pix;
}
}
@@ -569,9 +569,9 @@ void write_jpeg_image(TQImageIO* iio)
case 32: {
TQRgb* rgb = (TQRgb*)image.scanLine(cinfo.next_scanline);
for (int i=0; i<w; i++) {
- *row++ = qRed(*rgb);
- *row++ = qGreen(*rgb);
- *row++ = qBlue(*rgb);
+ *row++ = tqRed(*rgb);
+ *row++ = tqGreen(*rgb);
+ *row++ = tqBlue(*rgb);
++rgb;
}
}
diff --git a/src/kernel/qlocalfs.cpp b/src/kernel/qlocalfs.cpp
index a3e141ba..73a0c8a5 100644
--- a/src/kernel/qlocalfs.cpp
+++ b/src/kernel/qlocalfs.cpp
@@ -312,7 +312,7 @@ void TQLocalFs::operationGet( TQNetworkOperation *op )
emit dataTransferProgress( f.size() - remaining, f.size(), op );
remaining -= remaining;
}
- qApp->processEvents();
+ tqApp->processEvents();
}
if (!that)
return;
@@ -365,7 +365,7 @@ void TQLocalFs::operationPut( TQNetworkOperation *op )
emit dataTransferProgress( i + blockSize, ba.size(), op );
i += blockSize;
TQGuardedPtr<TQObject> that = this;
- qApp->processEvents();
+ tqApp->processEvents();
if (!that)
return;
}
diff --git a/src/kernel/qobject.cpp b/src/kernel/qobject.cpp
index abe951b1..d79d655e 100644
--- a/src/kernel/qobject.cpp
+++ b/src/kernel/qobject.cpp
@@ -2493,7 +2493,7 @@ static void dumpRecursive( int level, TQObject *object )
buf += " ";
const char *name = object->name();
TQString flags="";
- if ( qApp->focusWidget() == object )
+ if ( tqApp->focusWidget() == object )
flags += 'F';
if ( object->isWidgetType() ) {
TQWidget * w = (TQWidget *)object;
diff --git a/src/kernel/qpaintdevice_x11.cpp b/src/kernel/qpaintdevice_x11.cpp
index e3a2617e..1036664e 100644
--- a/src/kernel/qpaintdevice_x11.cpp
+++ b/src/kernel/qpaintdevice_x11.cpp
@@ -131,7 +131,7 @@ bool *TQPaintDevice::x_appdefvisual_arr;
TQPaintDevice::TQPaintDevice( uint devflags )
{
- if ( !qApp ) { // global constructor
+ if ( !tqApp ) { // global constructor
#if defined(QT_CHECK_STATE)
qFatal( "TQPaintDevice: Must construct a TQApplication before a "
"TQPaintDevice" );
diff --git a/src/kernel/qpainter.cpp b/src/kernel/qpainter.cpp
index 64a11c0b..d21be370 100644
--- a/src/kernel/qpainter.cpp
+++ b/src/kernel/qpainter.cpp
@@ -2434,8 +2434,8 @@ void TQPainter::drawImage( int x, int y, const TQImage & image,
// This is a bit dubious
if(image2.depth()==1) {
image2.setNumColors( 2 );
- image2.setColor( 0, qRgb(255,255,255) );
- image2.setColor( 1, qRgb(0,0,0) );
+ image2.setColor( 0, tqRgb(255,255,255) );
+ image2.setColor( 1, tqRgb(0,0,0) );
}
if ( image2.hasAlphaBuffer() )
gfx->setAlphaType(TQGfx::InlineAlpha);
diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp
index f88f0380..badbe9e2 100644
--- a/src/kernel/qpainter_x11.cpp
+++ b/src/kernel/qpainter_x11.cpp
@@ -1841,7 +1841,7 @@ void TQPainter::drawWinFocusRect( int x, int y, int w, int h,
setPen( white );
setRasterOp( XorROP );
} else {
- if ( qGray( bgColor.rgb() ) < 128 )
+ if ( tqGray( bgColor.rgb() ) < 128 )
setPen( white );
else
setPen( black );
diff --git a/src/kernel/qpixmap_x11.cpp b/src/kernel/qpixmap_x11.cpp
index 2322214c..cc8da0d3 100644
--- a/src/kernel/qpixmap_x11.cpp
+++ b/src/kernel/qpixmap_x11.cpp
@@ -393,7 +393,7 @@ extern "C" XftDraw *XftDrawCreateAlpha( Display *, TQt::HANDLE, int );
void TQPixmap::init( int w, int h, int d, bool bitmap, Optimization optim )
{
#if defined(QT_CHECK_STATE)
- if ( qApp->type() == TQApplication::Tty ) {
+ if ( tqApp->type() == TQApplication::Tty ) {
qWarning( "TQPixmap: Cannot create a TQPixmap when no GUI "
"is being used" );
}
@@ -474,7 +474,7 @@ void TQPixmap::deref()
qSafeXDestroyImage( (XImage*)data->ximage );
if ( data->maskgc )
XFreeGC( x11Display(), (GC)data->maskgc );
- if ( qApp && hd) {
+ if ( tqApp && hd) {
#ifndef QT_NO_XFTFREETYPE
if (rendhd) {
@@ -914,17 +914,17 @@ TQImage TQPixmap::convertToImage() const
b = blue_scale_table[b];
if (alf) {
- *dst++ = qRgba(r, g, b, asrc[x]);
+ *dst++ = tqRgba(r, g, b, asrc[x]);
} else if (msk) {
if ( ale ) {
*dst++ = (asrc[x >> 3] & (1 << (x & 7)))
- ? qRgba(r, g, b, 0xff) : qRgba(r, g, b, 0x00);
+ ? tqRgba(r, g, b, 0xff) : tqRgba(r, g, b, 0x00);
} else {
*dst++ = (asrc[x >> 3] & (1 << (7 -(x & 7))))
- ? qRgba(r, g, b, 0xff) : qRgba(r, g, b, 0x00);
+ ? tqRgba(r, g, b, 0xff) : tqRgba(r, g, b, 0x00);
}
} else {
- *dst++ = qRgb(r, g, b);
+ *dst++ = tqRgb(r, g, b);
}
}
}
@@ -953,8 +953,8 @@ TQImage TQPixmap::convertToImage() const
if ( mono ) { // bitmap
image.setNumColors( 2 );
- image.setColor( 0, qRgb(255,255,255) );
- image.setColor( 1, qRgb(0,0,0) );
+ image.setColor( 0, tqRgb(255,255,255) );
+ image.setColor( 1, tqRgb(0,0,0) );
} else if ( !trucol ) { // pixmap with colormap
register uchar *p;
uchar *end;
@@ -1044,7 +1044,7 @@ TQImage TQPixmap::convertToImage() const
if ( use[i] ) {
image.setColor( j++,
( msk ? 0xff000000 : 0 )
- | qRgb( (carr[i].red >> 8) & 255,
+ | tqRgb( (carr[i].red >> 8) & 255,
(carr[i].green >> 8) & 255,
(carr[i].blue >> 8) & 255 ) );
}
@@ -1142,7 +1142,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags )
if ( image.numColors() == 2 ) {
TQRgb c0 = image.color(0); // Auto: convert to best
TQRgb c1 = image.color(1);
- conv8 = TQMIN(c0,c1) != qRgb(0,0,0) || TQMAX(c0,c1) != qRgb(255,255,255);
+ conv8 = TQMIN(c0,c1) != tqRgb(0,0,0) || TQMAX(c0,c1) != tqRgb(255,255,255);
} else {
// eg. 1-color monochrome images (they do exist).
conv8 = TRUE;
@@ -1263,9 +1263,9 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags )
if ( d8 ) { // setup pixel translation
TQRgb *ctable = image.colorTable();
for ( int i=0; i<image.numColors(); i++ ) {
- int r = qRed (ctable[i]);
- int g = qGreen(ctable[i]);
- int b = qBlue (ctable[i]);
+ int r = tqRed (ctable[i]);
+ int g = tqGreen(ctable[i]);
+ int b = tqBlue (ctable[i]);
r = red_shift > 0 ? r << red_shift : r >> -red_shift;
g = green_shift > 0 ? g << green_shift : g >> -green_shift;
b = blue_shift > 0 ? b << blue_shift : b >> -blue_shift;
@@ -1381,9 +1381,9 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags )
int pixel; \
if ( d8 ) pixel = pix[*src++]; \
else { \
- int r = qRed ( *p ); \
- int g = qGreen( *p ); \
- int b = qBlue ( *p++ ); \
+ int r = tqRed ( *p ); \
+ int g = tqGreen( *p ); \
+ int b = tqBlue ( *p++ ); \
r = red_shift > 0 \
? r << red_shift : r >> -red_shift; \
g = green_shift > 0 \
@@ -1396,7 +1396,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags )
// optimized case - no d8 case, shift only once instead of twice, mask only once instead of twice,
// use direct values instead of variables, and use only one statement
-// (*p >> 16), (*p >> 8 ) and (*p) are qRed(),qGreen() and qBlue() without masking
+// (*p >> 16), (*p >> 8 ) and (*p) are tqRed(),tqGreen() and tqBlue() without masking
// shifts have to be passed including the shift operator (e.g. '>>3'), because of the direction
#define GET_PIXEL_OPT(red_shift,green_shift,blue_shift,red_mask,green_mask,blue_mask) \
int pixel = ((( *p >> 16 ) red_shift ) & red_mask ) \
@@ -1405,9 +1405,9 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags )
++p;
#define GET_PIXEL_DITHER_TC \
- int r = qRed ( *p ); \
- int g = qGreen( *p ); \
- int b = qBlue ( *p++ ); \
+ int r = tqRed ( *p ); \
+ int g = tqGreen( *p ); \
+ int b = tqBlue ( *p++ ); \
const int thres = D[x%16][y%16]; \
if ( r <= (255-(1<<(8-rbits))) && ((r<<rbits) & 255) \
> thres) \
@@ -1431,15 +1431,15 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags )
#define GET_PIXEL_DITHER_TC_OPT(red_shift,green_shift,blue_shift,red_mask,green_mask,blue_mask, \
rbits,gbits,bbits) \
const int thres = D[x%16][y%16]; \
- int r = qRed ( *p ); \
+ int r = tqRed ( *p ); \
if ( r <= (255-(1<<(8-rbits))) && ((r<<rbits) & 255) \
> thres) \
r += (1<<(8-rbits)); \
- int g = qGreen( *p ); \
+ int g = tqGreen( *p ); \
if ( g <= (255-(1<<(8-gbits))) && ((g<<gbits) & 255) \
> thres) \
g += (1<<(8-gbits)); \
- int b = qBlue ( *p++ ); \
+ int b = tqBlue ( *p++ ); \
if ( b <= (255-(1<<(8-bbits))) && ((b<<bbits) & 255) \
> thres) \
b += (1<<(8-bbits)); \
@@ -1655,9 +1655,9 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags )
TQRgb* ctable = image.colorTable();
for ( i=0; i<256; i++ ) { // init pixel array
if ( pop[i] > 0 ) {
- px->r = qRed ( ctable[i] );
- px->g = qGreen( ctable[i] );
- px->b = qBlue ( ctable[i] );
+ px->r = tqRed ( ctable[i] );
+ px->g = tqGreen( ctable[i] );
+ px->b = tqBlue ( ctable[i] );
px->n = 0;
px->use = pop[i];
if ( pop[i] > maxpop ) { // select most popular entry
@@ -1830,7 +1830,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags )
if (image.depth() == 8) {
const TQRgb * const rgb = image.colorTable();
for (int i = 0, count = image.numColors(); i < count; ++i) {
- const int alpha = qAlpha(rgb[i]);
+ const int alpha = tqAlpha(rgb[i]);
if (alpha != 0 && alpha != 0xff) {
alphamap = TRUE;
break;
@@ -1890,7 +1890,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags )
for (uint y = 0; y < h; ++y) {
const uchar *iptr = image.scanLine(y);
for (uint x = 0; x < w; ++x)
- *aptr++ = qAlpha(rgb[*iptr++]);
+ *aptr++ = tqAlpha(rgb[*iptr++]);
aptr += ( axi->bytes_per_line - w );
}
}
diff --git a/src/kernel/qpngio.cpp b/src/kernel/qpngio.cpp
index c4a5c997..2d12ec98 100644
--- a/src/kernel/qpngio.cpp
+++ b/src/kernel/qpngio.cpp
@@ -156,8 +156,8 @@ void setup_qt( TQImage& image, png_structp png_ptr, png_infop info_ptr, float sc
png_read_update_info( png_ptr, info_ptr );
if (!image.create( width, height, 1, 2, TQImage::BigEndian ))
return;
- image.setColor( 1, qRgb(0,0,0) );
- image.setColor( 0, qRgb(255,255,255) );
+ image.setColor( 1, tqRgb(0,0,0) );
+ image.setColor( 0, tqRgb(255,255,255) );
} else if (bit_depth == 16 && png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) {
png_set_expand(png_ptr);
png_set_strip_16(png_ptr);
@@ -182,7 +182,7 @@ void setup_qt( TQImage& image, png_structp png_ptr, png_infop info_ptr, float sc
return;
for (int i=0; i<ncols; i++) {
int c = i*255/(ncols-1);
- image.setColor( i, qRgba(c,c,c,0xff) );
+ image.setColor( i, tqRgba(c,c,c,0xff) );
}
if ( png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ) {
#if PNG_LIBPNG_VER_MAJOR>1 || ( PNG_LIBPNG_VER_MAJOR==1 && PNG_LIBPNG_VER_MINOR>=5 )
@@ -194,7 +194,7 @@ void setup_qt( TQImage& image, png_structp png_ptr, png_infop info_ptr, float sc
#endif
if (g < ncols) {
image.setAlphaBuffer(TRUE);
- image.setColor(g, image.color(g) & RGB_MASK);
+ image.setColor(g, image.color(g) & TQT_RGB_MASK);
}
}
}
@@ -225,13 +225,13 @@ void setup_qt( TQImage& image, png_structp png_ptr, png_infop info_ptr, float sc
#if PNG_LIBPNG_VER_MAJOR>1 || ( PNG_LIBPNG_VER_MAJOR==1 && PNG_LIBPNG_VER_MINOR>=5 )
while ( i < info_ptr_num_trans ) {
- image.setColor(i, qRgba(
+ image.setColor(i, tqRgba(
info_ptr_palette[i].red,
info_ptr_palette[i].green,
info_ptr_palette[i].blue,
#else /* LIBPNG 1.5 */
while ( i < info_ptr->num_trans ) {
- image.setColor(i, qRgba(
+ image.setColor(i, tqRgba(
info_ptr->palette[i].red,
info_ptr->palette[i].green,
info_ptr->palette[i].blue,
@@ -250,13 +250,13 @@ void setup_qt( TQImage& image, png_structp png_ptr, png_infop info_ptr, float sc
}
#if PNG_LIBPNG_VER_MAJOR>1 || ( PNG_LIBPNG_VER_MAJOR==1 && PNG_LIBPNG_VER_MINOR>=5 )
while ( i < info_ptr_num_palette ) {
- image.setColor(i, qRgba(
+ image.setColor(i, tqRgba(
info_ptr_palette[i].red,
info_ptr_palette[i].green,
info_ptr_palette[i].blue,
#else /* LIBPNG 1.5 */
while ( i < info_ptr->num_palette ) {
- image.setColor(i, qRgba(
+ image.setColor(i, tqRgba(
info_ptr->palette[i].red,
info_ptr->palette[i].green,
info_ptr->palette[i].blue,
@@ -387,7 +387,7 @@ void read_png_image(TQImageIO* iio)
#if 0 // libpng takes care of this.
png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)
if (image.depth()==32 && png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) {
- TQRgb trans = 0xFF000000 | qRgb(
+ TQRgb trans = 0xFF000000 | tqRgb(
#if PNG_LIBPNG_VER_MAJOR>1 || ( PNG_LIBPNG_VER_MAJOR==1 && PNG_LIBPNG_VER_MINOR>=4 )
(info_ptr->trans_color.red << 8 >> bit_depth)&0xff,
(info_ptr->trans_color.green << 8 >> bit_depth)&0xff,
@@ -435,7 +435,7 @@ png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)
c = image.colorTable();
n = image.numColors();
}
- while ( n-- && qAlpha(*c++)==0xff )
+ while ( n-- && tqAlpha(*c++)==0xff )
;
if ( n<0 ) // LIAR!
image.setAlphaBuffer(FALSE);
@@ -622,13 +622,13 @@ should be able to comment this out.
for (int i=0; i<num_palette; i++) {
TQRgb rgb=image.color(i);
#if PNG_LIBPNG_VER_MAJOR>1 || ( PNG_LIBPNG_VER_MAJOR==1 && PNG_LIBPNG_VER_MINOR>=5 )
- info_ptr_palette[i].red = qRed(rgb);
- info_ptr_palette[i].green = qGreen(rgb);
- info_ptr_palette[i].blue = qBlue(rgb);
+ info_ptr_palette[i].red = tqRed(rgb);
+ info_ptr_palette[i].green = tqGreen(rgb);
+ info_ptr_palette[i].blue = tqBlue(rgb);
#else /* LIBPNG 1.5 */
- info_ptr->palette[i].red = qRed(rgb);
- info_ptr->palette[i].green = qGreen(rgb);
- info_ptr->palette[i].blue = qBlue(rgb);
+ info_ptr->palette[i].red = tqRed(rgb);
+ info_ptr->palette[i].green = tqGreen(rgb);
+ info_ptr->palette[i].blue = tqBlue(rgb);
#endif /* LIBPNG 1.5 */
if (image.hasAlphaBuffer()) {
trans[i] = rgb >> 24;
@@ -907,7 +907,7 @@ bool TQPNGImagePacker::packImage(const TQImage& img)
if ( i == alignx ) {
// All the same
for (i=0; i<alignx; i++) {
- ld[x+i] = qRgba(0,0,0,0);
+ ld[x+i] = tqRgba(0,0,0,0);
}
} else {
// Some different
@@ -921,7 +921,7 @@ bool TQPNGImagePacker::packImage(const TQImage& img)
if ( li[x] != lp[x] )
ld[x] = 0xff000000 | li[x];
else
- ld[x] = qRgba(0,0,0,0);
+ ld[x] = tqRgba(0,0,0,0);
}
}
}
diff --git a/src/kernel/qpsprinter.cpp b/src/kernel/qpsprinter.cpp
index 1fc1190a..7d660b47 100644
--- a/src/kernel/qpsprinter.cpp
+++ b/src/kernel/qpsprinter.cpp
@@ -5407,12 +5407,12 @@ static TQByteArray compress( const TQImage & image, bool gray ) {
for( int x=0; x < width; x++ ) {
TQRgb rgb = image.color( s[x] );
if ( gray ) {
- pixel[i] = (unsigned char) qGray( rgb );
+ pixel[i] = (unsigned char) tqGray( rgb );
i++;
} else {
- pixel[i] = (unsigned char) qRed( rgb );
- pixel[i+1] = (unsigned char) qGreen( rgb );
- pixel[i+2] = (unsigned char) qBlue( rgb );
+ pixel[i] = (unsigned char) tqRed( rgb );
+ pixel[i+1] = (unsigned char) tqGreen( rgb );
+ pixel[i+2] = (unsigned char) tqBlue( rgb );
i += 3;
}
}
@@ -5423,15 +5423,15 @@ static TQByteArray compress( const TQImage & image, bool gray ) {
TQRgb * s = (TQRgb*)(image.scanLine( y ));
for( int x=0; x < width; x++ ) {
TQRgb rgb = (*s++);
- if ( alpha && qAlpha( rgb ) < 0x40 ) // 25% alpha, convert to white -
- rgb = qRgb( 0xff, 0xff, 0xff );
+ if ( alpha && tqAlpha( rgb ) < 0x40 ) // 25% alpha, convert to white -
+ rgb = tqRgb( 0xff, 0xff, 0xff );
if ( gray ) {
- pixel[i] = (unsigned char) qGray( rgb );
+ pixel[i] = (unsigned char) tqGray( rgb );
i++;
} else {
- pixel[i] = (unsigned char) qRed( rgb );
- pixel[i+1] = (unsigned char) qGreen( rgb );
- pixel[i+2] = (unsigned char) qBlue( rgb );
+ pixel[i] = (unsigned char) tqRed( rgb );
+ pixel[i+1] = (unsigned char) tqGreen( rgb );
+ pixel[i+2] = (unsigned char) tqBlue( rgb );
i += 3;
}
}
@@ -5767,7 +5767,7 @@ static const char * color( const TQColor &c, TQPrinter * printer )
sprintf( returnbuffer, "%d d2 ", c.red() );
else if ( printer->colorMode() == TQPrinter::GrayScale )
sprintf( returnbuffer, "%d d2 ",
- qGray( c.red(), c.green(),c.blue() ) );
+ tqGray( c.red(), c.green(),c.blue() ) );
else
sprintf( returnbuffer, "%d %d %d ",
c.red(), c.green(), c.blue() );
diff --git a/src/kernel/qrichtext_p.cpp b/src/kernel/qrichtext_p.cpp
index 5e749df9..f426fcea 100644
--- a/src/kernel/qrichtext_p.cpp
+++ b/src/kernel/qrichtext_p.cpp
@@ -198,13 +198,13 @@ TQTextFormat::~TQTextFormat()
}
TQTextFormat::TQTextFormat()
- : fm( TQFontMetrics( fn ) ), linkColor( TRUE ), logicalFontSize( 3 ), stdSize( qApp->font().pointSize() )
+ : fm( TQFontMetrics( fn ) ), linkColor( TRUE ), logicalFontSize( 3 ), stdSize( tqApp->font().pointSize() )
{
ref = 0;
usePixelSizes = FALSE;
if ( stdSize == -1 ) {
- stdSize = qApp->font().pixelSize();
+ stdSize = tqApp->font().pixelSize();
usePixelSizes = TRUE;
}
@@ -214,13 +214,13 @@ TQTextFormat::TQTextFormat()
}
TQTextFormat::TQTextFormat( const TQStyleSheetItem *style )
- : fm( TQFontMetrics( fn ) ), linkColor( TRUE ), logicalFontSize( 3 ), stdSize( qApp->font().pointSize() )
+ : fm( TQFontMetrics( fn ) ), linkColor( TRUE ), logicalFontSize( 3 ), stdSize( tqApp->font().pointSize() )
{
ref = 0;
usePixelSizes = FALSE;
if ( stdSize == -1 ) {
- stdSize = qApp->font().pixelSize();
+ stdSize = tqApp->font().pixelSize();
usePixelSizes = TRUE;
}
diff --git a/src/kernel/qsound_x11.cpp b/src/kernel/qsound_x11.cpp
index 692e89e5..9c2a0dae 100644
--- a/src/kernel/qsound_x11.cpp
+++ b/src/kernel/qsound_x11.cpp
@@ -157,7 +157,7 @@ void TQAuServerNAS::play(const TQString& filename)
AuFlush(nas);
dataReceived();
AuFlush(nas);
- qApp->flushX();
+ tqApp->flushX();
}
}
@@ -207,7 +207,7 @@ void TQAuServerNAS::play(TQSound* s)
AuFlush(nas);
dataReceived();
AuFlush(nas);
- qApp->flushX();
+ tqApp->flushX();
}
}
@@ -219,7 +219,7 @@ void TQAuServerNAS::stop(TQSound* s)
AuFlush(nas);
dataReceived();
AuFlush(nas);
- qApp->flushX();
+ tqApp->flushX();
}
}
@@ -270,14 +270,14 @@ TQAuServerNull::TQAuServerNull(TQObject* parent) :
TQAuServer* qt_new_audio_server()
{
#ifdef QT_NAS_SUPPORT
- TQAuServer* s=new TQAuServerNAS(qApp);
+ TQAuServer* s=new TQAuServerNAS(tqApp);
if (s->okay()) {
return s;
} else {
delete s;
}
#endif
- return new TQAuServerNull(qApp);
+ return new TQAuServerNull(tqApp);
}
#endif // QT_NO_SOUND
diff --git a/src/kernel/qtextengine.cpp b/src/kernel/qtextengine.cpp
index c299e61a..318722c9 100644
--- a/src/kernel/qtextengine.cpp
+++ b/src/kernel/qtextengine.cpp
@@ -150,7 +150,7 @@ static TQChar::Direction basicDirection( const TQString &str )
}
-static void qAppendItems(TQTextEngine *engine, int &start, int &stop, BidiControl &control, TQChar::Direction dir )
+static void tqAppendItems(TQTextEngine *engine, int &start, int &stop, BidiControl &control, TQChar::Direction dir )
{
TQScriptItemArray &items = engine->items;
const TQChar *text = engine->string.unicode();
@@ -244,7 +244,7 @@ static void qAppendItems(TQTextEngine *engine, int &start, int &stop, BidiContro
}
typedef void (* fAppendItems)(TQTextEngine *, int &start, int &stop, BidiControl &control, TQChar::Direction dir);
-static fAppendItems appendItems = qAppendItems;
+static fAppendItems appendItems = tqAppendItems;
// creates the next TQScript items.
static void bidiItemize( TQTextEngine *engine, bool rightToLeft, int mode )
diff --git a/src/kernel/qtranslator.cpp b/src/kernel/qtranslator.cpp
index 18d3c839..7758d31b 100644
--- a/src/kernel/qtranslator.cpp
+++ b/src/kernel/qtranslator.cpp
@@ -365,8 +365,8 @@ TQTranslator::TQTranslator( TQObject * parent, const char * name )
TQTranslator::~TQTranslator()
{
- if ( qApp )
- qApp->removeTranslator( this );
+ if ( tqApp )
+ tqApp->removeTranslator( this );
clear();
delete d;
}
@@ -597,8 +597,8 @@ bool TQTranslator::do_load( const uchar *data, int len )
}
array.resetRawData( (const char *) data, len );
- if ( qApp && qApp->translators && qApp->translators->contains(this) )
- qApp->setReverseLayout( qt_detectRTLLanguage() );
+ if ( tqApp && tqApp->translators && tqApp->translators->contains(this) )
+ tqApp->setReverseLayout( qt_detectRTLLanguage() );
return ok;
}
@@ -690,8 +690,8 @@ void TQTranslator::clear()
d->messages = 0;
#endif
- if ( qApp ) {
- qApp->setReverseLayout( qt_detectRTLLanguage() );
+ if ( tqApp ) {
+ tqApp->setReverseLayout( qt_detectRTLLanguage() );
TQWidgetList *list = TQApplication::topLevelWidgets();
TQWidgetListIt it( *list );
@@ -699,7 +699,7 @@ void TQTranslator::clear()
while ( ( w=it.current() ) != 0 ) {
++it;
if (!w->isDesktop())
- qApp->postEvent( w, new TQEvent( TQEvent::LanguageChange ) );
+ tqApp->postEvent( w, new TQEvent( TQEvent::LanguageChange ) );
}
delete list;
}
diff --git a/src/kernel/qwidget.cpp b/src/kernel/qwidget.cpp
index 16bce332..82b31d43 100644
--- a/src/kernel/qwidget.cpp
+++ b/src/kernel/qwidget.cpp
@@ -881,7 +881,7 @@ TQWidget::TQWidget( TQWidget *parent, const char *name, WFlags f, NFlags n )
: TQObject( parent, name ), TQPaintDevice( TQInternal::Widget )
{
#if defined(QT_CHECK_STATE) && !defined(Q_WS_WIN)
- if ( qApp->type() == TQApplication::Tty ) {
+ if ( tqApp->type() == TQApplication::Tty ) {
qWarning( "TQWidget: Cannot create a TQWidget when no GUI "
"is being used" );
}
@@ -975,8 +975,8 @@ TQWidget::~TQWidget()
if ( TQApplication::main_widget == this ) { // reset main widget
TQApplication::main_widget = 0;
- if (qApp)
- qApp->quit();
+ if (tqApp)
+ tqApp->quit();
}
if ( hasFocus() )
@@ -1231,7 +1231,7 @@ void TQWidget::deactivateWidgetCleanup()
{
// If this was the active application window, reset it
if ( this == TQApplication::active_window )
- qApp->setActiveWindow( 0 );
+ tqApp->setActiveWindow( 0 );
// If the is the active mouse press widget, reset it
#ifdef Q_WS_MAC
extern TQGuardedPtr<TQWidget> qt_button_down;
@@ -1321,7 +1321,7 @@ TQStyle& TQWidget::style() const
{
if ( extra && extra->style )
return *extra->style;
- TQStyle &ret = qApp->style();
+ TQStyle &ret = tqApp->style();
return ret;
}
@@ -3236,7 +3236,7 @@ void TQWidget::focusProxyDestroyed()
\brief whether this widget (or its focus proxy) has the keyboard
input focus
- Effectively equivalent to \c {qApp->focusWidget() == this}.
+ Effectively equivalent to \c {tqApp->focusWidget() == this}.
\sa setFocus(), clearFocus(), setFocusPolicy(), TQApplication::focusWidget()
*/
@@ -3245,7 +3245,7 @@ bool TQWidget::hasFocus() const
const TQWidget* w = this;
while ( w->focusProxy() )
w = w->focusProxy();
- return qApp->focusWidget() == w;
+ return tqApp->focusWidget() == w;
}
/*!
@@ -3284,7 +3284,7 @@ void TQWidget::setFocus()
}
TQFocusData * f = focusData( TRUE );
- if ( f->it.current() == this && qApp->focusWidget() == this
+ if ( f->it.current() == this && tqApp->focusWidget() == this
#if defined(Q_WS_WIN)
&& GetFocus() == winId()
#endif
@@ -3303,7 +3303,7 @@ void TQWidget::setFocus()
}
if ( isActiveWindow() ) {
- TQWidget * prev = qApp->focus_widget;
+ TQWidget * prev = tqApp->focus_widget;
if ( prev ) {
// This part is never executed when Q_WS_X11? Preceding XFocusOut
// had already reset focus_widget when received XFocusIn
@@ -3329,7 +3329,7 @@ void TQWidget::setFocus()
TQInputContext::endComposition();
}
#endif
- qApp->focus_widget = this;
+ tqApp->focus_widget = this;
if( isInputMethodEnabled() )
focusInputContext();
@@ -3351,7 +3351,7 @@ void TQWidget::setFocus()
TQApplication::sendEvent( prev, &out );
}
- if ( qApp->focus_widget == this ) {
+ if ( tqApp->focus_widget == this ) {
TQFocusEvent in( TQEvent::FocusIn );
TQApplication::sendEvent( this, &in );
}
@@ -3384,9 +3384,9 @@ void TQWidget::clearFocus()
#else
unfocusInputContext();
#endif
- TQWidget* w = qApp->focusWidget();
+ TQWidget* w = tqApp->focusWidget();
// clear active focus
- qApp->focus_widget = 0;
+ tqApp->focus_widget = 0;
TQFocusEvent out( TQEvent::FocusOut );
TQApplication::sendEvent( w, &out );
#if defined(Q_WS_WIN)
@@ -3588,7 +3588,7 @@ bool TQWidget::isActiveWindow() const
TQWidget *tlw = topLevelWidget();
if(testWFlags(WSubWindow) && parentWidget())
tlw = parentWidget()->topLevelWidget();
- if(tlw == qApp->activeWindow() || ( isVisible() && tlw->isPopup() ))
+ if(tlw == tqApp->activeWindow() || ( isVisible() && tlw->isPopup() ))
return TRUE;
#ifndef QT_NO_STYLE
if(style().styleHint(TQStyle::SH_Widget_ShareActivation, this )) {
@@ -3596,7 +3596,7 @@ bool TQWidget::isActiveWindow() const
!tlw->testWFlags(TQt::WShowModal) &&
(!tlw->parentWidget() || tlw->parentWidget()->isActiveWindow()))
return TRUE;
- TQWidget *w = qApp->activeWindow();
+ TQWidget *w = tqApp->activeWindow();
if( !testWFlags(WSubWindow) && w && w->testWFlags(WSubWindow) &&
w->parentWidget()->topLevelWidget() == tlw)
return TRUE;
@@ -4037,7 +4037,7 @@ void TQWidget::show()
// stores the correct old focus widget even if it's stolen in the showevent
#if defined(Q_WS_WIN)
if ( testWFlags(WType_Popup) )
- qApp->openPopup( this );
+ tqApp->openPopup( this );
#endif
TQShowEvent showEvent;
@@ -4058,7 +4058,7 @@ void TQWidget::show()
#if !defined(Q_WS_WIN)
if ( testWFlags(WType_Popup) )
- qApp->openPopup( this );
+ tqApp->openPopup( this );
#endif
#if defined(QT_ACCESSIBILITY_SUPPORT)
@@ -4090,7 +4090,7 @@ void TQWidget::hide()
setWState( WState_ForceHide );
if ( testWFlags(WType_Popup) )
- qApp->closePopup( this );
+ tqApp->closePopup( this );
// Move test modal here. Otherwise, a modal dialog could get
// destroyed and we lose all access to its parent because we haven't
@@ -4110,7 +4110,7 @@ void TQWidget::hide()
// next bit tries to move the focus if the focus widget is now
// hidden.
- if ( qApp && qApp->focusWidget() == this )
+ if ( tqApp && tqApp->focusWidget() == this )
focusNextPrevChild( TRUE );
TQHideEvent hideEvent;
TQApplication::sendEvent( this, &hideEvent );
@@ -4235,7 +4235,7 @@ void TQWidget::polish()
if ( pm && !pm->isNull() )
setIcon( *pm );
else {
- mw = qApp ? qApp->mainWidget() : 0;
+ mw = tqApp ? tqApp->mainWidget() : 0;
pm = mw ? mw->icon() : 0;
if ( pm && !pm->isNull() )
setIcon( *pm );
@@ -4254,7 +4254,7 @@ void TQWidget::polish()
unsetPalette();
#endif
setWState(WState_Polished);
- qApp->polish( this );
+ tqApp->polish( this );
TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
}
}
@@ -4304,7 +4304,7 @@ bool TQWidget::close( bool alsoDelete )
return TRUE;
is_closing = 1;
WId id = winId();
- bool isMain = qApp->mainWidget() == this;
+ bool isMain = tqApp->mainWidget() == this;
bool checkLastWindowClosed = isTopLevel() && !isPopup();
bool deleted = FALSE;
TQCloseEvent e;
@@ -4317,11 +4317,11 @@ bool TQWidget::close( bool alsoDelete )
if ( !deleted && !isHidden() )
hide();
if ( checkLastWindowClosed
- && qApp->receivers(SIGNAL(lastWindowClosed())) ) {
+ && tqApp->receivers(SIGNAL(lastWindowClosed())) ) {
/* if there is no non-withdrawn top level window left (except
the desktop, popups, or dialogs with parents), we emit the
lastWindowClosed signal */
- TQWidgetList *list = qApp->topLevelWidgets();
+ TQWidgetList *list = tqApp->topLevelWidgets();
TQWidget *widget = list->first();
while ( widget ) {
if ( !widget->isHidden()
@@ -4333,10 +4333,10 @@ bool TQWidget::close( bool alsoDelete )
}
delete list;
if ( widget == 0 )
- emit qApp->lastWindowClosed();
+ emit tqApp->lastWindowClosed();
}
if ( isMain )
- qApp->quit();
+ tqApp->quit();
if ( deleted )
return TRUE;
is_closing = 0;
@@ -5045,9 +5045,9 @@ void TQWidget::mousePressEvent( TQMouseEvent *e )
if ( isPopup() ) {
e->accept();
TQWidget* w;
- while ( (w = qApp->activePopupWidget() ) && w != this ){
+ while ( (w = tqApp->activePopupWidget() ) && w != this ){
w->close();
- if (qApp->activePopupWidget() == w) // widget does not want to dissappear
+ if (tqApp->activePopupWidget() == w) // widget does not want to dissappear
w->hide(); // hide at least
}
if (!rect().contains(e->pos()) ){
diff --git a/src/kernel/qwidget_x11.cpp b/src/kernel/qwidget_x11.cpp
index da6ec481..41b048b6 100644
--- a/src/kernel/qwidget_x11.cpp
+++ b/src/kernel/qwidget_x11.cpp
@@ -236,11 +236,11 @@ Q_EXPORT void qt_wait_for_window_manager( TQWidget* w )
break;
if ( t.elapsed() > 500 )
return; // give up, no event available
- qApp->syncX(); // non-busy wait
+ tqApp->syncX(); // non-busy wait
}
- qApp->x11ProcessEvent( &ev );
+ tqApp->x11ProcessEvent( &ev );
if ( XCheckTypedWindowEvent( w->x11Display(), w->winId(), ConfigureNotify, &ev ) )
- qApp->x11ProcessEvent( &ev );
+ tqApp->x11ProcessEvent( &ev );
}
static void qt_net_change_wm_state(const TQWidget* w, bool set, Atom one, Atom two = 0)
@@ -668,7 +668,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
XClassHint class_hint;
class_hint.res_name = (char *) tqAppName(); // application name
- class_hint.res_class = (char *) qAppClass(); // application class
+ class_hint.res_class = (char *) tqAppClass(); // application class
XSetWMProperties( dpy, id, 0, 0, 0, 0, &size_hints, &wm_hints, &class_hint );
@@ -802,7 +802,7 @@ void TQWidget::destroy( bool destroyWindow, bool destroySubWindows )
if ( testWFlags(WShowModal) ) // just be sure we leave modal
qt_leave_modal( this );
else if ( testWFlags(WType_Popup) )
- qApp->closePopup( this );
+ tqApp->closePopup( this );
#ifndef QT_NO_XFTFREETYPE
if ( rendhd) {
@@ -1825,7 +1825,7 @@ void TQWidget::setWindowState(uint newstate)
(getWFlags() & 0xffff0000),
mapToGlobal(TQPoint(0, 0)));
const TQRect r = top->normalGeometry;
- setGeometry(qApp->desktop()->screenGeometry(this));
+ setGeometry(tqApp->desktop()->screenGeometry(this));
top->normalGeometry = r;
if ( top->normalGeometry.width() < 0 )
@@ -2873,7 +2873,7 @@ void TQWidget::updateFrameStrut() const
*/
TQWidget *TQWidget::icHolderWidget()
{
- return qApp->locateICHolderWidget(this);
+ return tqApp->locateICHolderWidget(this);
}
@@ -2923,7 +2923,7 @@ void TQWidget::changeInputContext( const TQString& identifierName )
*qicp = qic;
if ( qic ) {
TQObject::connect( qic, SIGNAL(imEventGenerated(TQObject *,TQIMEvent *)),
- qApp, SLOT(postIMEvent(TQObject *,TQIMEvent *)) );
+ tqApp, SLOT(postIMEvent(TQObject *,TQIMEvent *)) );
TQObject::connect( qic, SIGNAL(deletionRequested()),
icWidget, SLOT(destroyInputContext()) );
}
@@ -2962,7 +2962,7 @@ void TQWidget::createInputContext()
*qicp = qic;
if ( qic ) {
TQObject::connect( qic, SIGNAL(imEventGenerated(TQObject *,TQIMEvent *)),
- qApp, SLOT(postIMEvent(TQObject *,TQIMEvent *)) );
+ tqApp, SLOT(postIMEvent(TQObject *,TQIMEvent *)) );
TQObject::connect( qic, SIGNAL(deletionRequested()),
icWidget, SLOT(destroyInputContext()) );
}
diff --git a/src/moc/moc.y b/src/moc/moc.y
index 8de0cd73..c9c3f0b9 100644
--- a/src/moc/moc.y
+++ b/src/moc/moc.y
@@ -2962,8 +2962,8 @@ void generateClass() // generate C++ source code for a class
fprintf( out, "#ifndef QT_NO_TRANSLATION\n" );
fprintf( out, "TQString %s::tr( const char *s, const char *c )\n{\n",
(const char*)qualifiedClassName() );
- fprintf( out, " if ( qApp )\n" );
- fprintf( out, "\treturn qApp->translate( \"%s\", s, c,"
+ fprintf( out, " if ( tqApp )\n" );
+ fprintf( out, "\treturn tqApp->translate( \"%s\", s, c,"
" TQApplication::DefaultCodec );\n",
(const char*)qualifiedClassName() );
fprintf( out, " else\n" );
@@ -2972,8 +2972,8 @@ void generateClass() // generate C++ source code for a class
fprintf( out, "#ifndef QT_NO_TRANSLATION_UTF8\n" );
fprintf( out, "TQString %s::trUtf8( const char *s, const char *c )\n{\n",
(const char*)qualifiedClassName() );
- fprintf( out, " if ( qApp )\n" );
- fprintf( out, "\treturn qApp->translate( \"%s\", s, c,"
+ fprintf( out, " if ( tqApp )\n" );
+ fprintf( out, "\treturn tqApp->translate( \"%s\", s, c,"
" TQApplication::UnicodeUTF8 );\n",
(const char*)qualifiedClassName() );
fprintf( out, " else\n" );
diff --git a/src/moc/moc_yacc.cpp b/src/moc/moc_yacc.cpp
index 41a8449d..f3c5c75c 100644
--- a/src/moc/moc_yacc.cpp
+++ b/src/moc/moc_yacc.cpp
@@ -5788,8 +5788,8 @@ void generateClass() // generate C++ source code for a class
fprintf( out, "#ifndef QT_NO_TRANSLATION\n" );
fprintf( out, "TQString %s::tr( const char *s, const char *c )\n{\n",
(const char*)qualifiedClassName() );
- fprintf( out, " if ( qApp )\n" );
- fprintf( out, "\treturn qApp->translate( \"%s\", s, c,"
+ fprintf( out, " if ( tqApp )\n" );
+ fprintf( out, "\treturn tqApp->translate( \"%s\", s, c,"
" TQApplication::DefaultCodec );\n",
(const char*)qualifiedClassName() );
fprintf( out, " else\n" );
@@ -5798,8 +5798,8 @@ void generateClass() // generate C++ source code for a class
fprintf( out, "#ifndef QT_NO_TRANSLATION_UTF8\n" );
fprintf( out, "TQString %s::trUtf8( const char *s, const char *c )\n{\n",
(const char*)qualifiedClassName() );
- fprintf( out, " if ( qApp )\n" );
- fprintf( out, "\treturn qApp->translate( \"%s\", s, c,"
+ fprintf( out, " if ( tqApp )\n" );
+ fprintf( out, "\treturn tqApp->translate( \"%s\", s, c,"
" TQApplication::UnicodeUTF8 );\n",
(const char*)qualifiedClassName() );
fprintf( out, " else\n" );
diff --git a/src/network/qdns.cpp b/src/network/qdns.cpp
index e6dafa6c..17b78b68 100644
--- a/src/network/qdns.cpp
+++ b/src/network/qdns.cpp
@@ -132,7 +132,7 @@ public:
{
#if defined(Q_DNS_SYNCHRONOUS)
#if defined(Q_OS_UNIX)
- noEventLoop = qApp==0 || qApp->loopLevel()==0;
+ noEventLoop = tqApp==0 || tqApp->loopLevel()==0;
#else
noEventLoop = FALSE;
#endif
@@ -922,7 +922,7 @@ void TQDnsUgleHack::ugle( bool emitAnyway)
TQDnsManager::TQDnsManager()
- : TQDnsSocket( qApp, "Internal DNS manager" ),
+ : TQDnsSocket( tqApp, "Internal DNS manager" ),
queries( TQPtrVector<TQDnsQuery>( 0 ) ),
cache( TQDict<TQDnsDomain>( 83, FALSE ) ),
ipv4Socket( new TQSocketDevice( TQSocketDevice::Datagram, TQSocketDevice::IPv4, 0 ) )
diff --git a/src/opengl/qgl_x11.cpp b/src/opengl/qgl_x11.cpp
index caa76398..8989a05b 100644
--- a/src/opengl/qgl_x11.cpp
+++ b/src/opengl/qgl_x11.cpp
@@ -765,7 +765,7 @@ TQColor TQGLContext::overlayTransparentColor() const
uchar r = (uchar)((col.red / 65535.0) * 255.0 + 0.5);
uchar g = (uchar)((col.green / 65535.0) * 255.0 + 0.5);
uchar b = (uchar)((col.blue / 65535.0) * 255.0 + 0.5);
- return TQColor(qRgb(r,g,b), trans_colors[i].color);
+ return TQColor(tqRgb(r,g,b), trans_colors[i].color);
}
}
}
@@ -823,9 +823,9 @@ uint TQGLContext::colorIndex( const TQColor& c ) const
XColor col;
col.flags = DoRed | DoGreen | DoBlue;
col.pixel = color_map_entry;
- col.red = (ushort)((qRed(c.rgb()) / 255.0) * 65535.0 + 0.5);
- col.green = (ushort)((qGreen(c.rgb()) / 255.0) * 65535.0 + 0.5);
- col.blue = (ushort)((qBlue(c.rgb()) / 255.0) * 65535.0 + 0.5);
+ col.red = (ushort)((tqRed(c.rgb()) / 255.0) * 65535.0 + 0.5);
+ col.green = (ushort)((tqGreen(c.rgb()) / 255.0) * 65535.0 + 0.5);
+ col.blue = (ushort)((tqBlue(c.rgb()) / 255.0) * 65535.0 + 0.5);
XStoreColor(TQPaintDevice::x11AppDisplay(), x->cmap, &col);
cmap->insert(color_map_entry, target);
@@ -1275,9 +1275,9 @@ static void qStoreColors( TQWidget * tlw, Colormap cmap,
for ( int i = 0; i < cols.size(); i++ ) {
color = cols.entryRgb( i );
c.pixel = i;
- c.red = (ushort)( (qRed( color ) / 255.0) * 65535.0 + 0.5 );
- c.green = (ushort)( (qGreen( color ) / 255.0) * 65535.0 + 0.5 );
- c.blue = (ushort)( (qBlue( color ) / 255.0) * 65535.0 + 0.5 );
+ c.red = (ushort)( (tqRed( color ) / 255.0) * 65535.0 + 0.5 );
+ c.green = (ushort)( (tqGreen( color ) / 255.0) * 65535.0 + 0.5 );
+ c.blue = (ushort)( (tqBlue( color ) / 255.0) * 65535.0 + 0.5 );
c.flags = DoRed | DoGreen | DoBlue;
XStoreColor( tlw->x11Display(), cmap, &c );
}
diff --git a/src/opengl/qglcolormap.cpp b/src/opengl/qglcolormap.cpp
index 048b7dc2..d095a754 100644
--- a/src/opengl/qglcolormap.cpp
+++ b/src/opengl/qglcolormap.cpp
@@ -86,7 +86,7 @@
// This will fill the colormap with colors ranging from
// black to white.
for ( int i = 0; i < colormap.size(); i++ )
- colormap.setEntry( i, qRgb( i, i, i ) );
+ colormap.setEntry( i, tqRgb( i, i, i ) );
widget.setColormap( colormap );
widget.show();
@@ -273,15 +273,15 @@ int TQGLColormap::findNearest( TQRgb color ) const
return idx;
int mapSize = size();
int mindist = 200000;
- int r = qRed( color );
- int g = qGreen( color );
- int b = qBlue( color );
+ int r = tqRed( color );
+ int g = tqGreen( color );
+ int b = tqBlue( color );
int rx, gx, bx, dist;
for ( int i=0; i < mapSize; i++ ) {
TQRgb ci = d->cells[i];
- rx = r - qRed( ci );
- gx = g - qGreen( ci );
- bx = b - qBlue( ci );
+ rx = r - tqRed( ci );
+ gx = g - tqGreen( ci );
+ bx = b - tqBlue( ci );
dist = rx*rx + gx*gx + bx*bx; // calculate distance
if ( dist < mindist ) { // minimal?
mindist = dist;
diff --git a/src/sql/qsqldatabase.cpp b/src/sql/qsqldatabase.cpp
index ebe65d1b..582219b4 100644
--- a/src/sql/qsqldatabase.cpp
+++ b/src/sql/qsqldatabase.cpp
@@ -211,12 +211,12 @@ TQSqlDatabaseManager* TQSqlDatabaseManager::instance()
{
static TQGuardedPtr<TQSqlDatabaseManager> sqlConnection = 0;
if ( !sqlConnection ) {
- if( qApp == 0 ){
+ if( tqApp == 0 ){
qFatal( "TQSqlDatabaseManager: A TQApplication object has to be "
"instantiated in order to use the SQL module." );
return 0;
}
- sqlConnection = new TQSqlDatabaseManager( qApp, "database manager" );
+ sqlConnection = new TQSqlDatabaseManager( tqApp, "database manager" );
}
return (TQSqlDatabaseManager*)sqlConnection;
}
diff --git a/src/sql/qsqlmanager_p.cpp b/src/sql/qsqlmanager_p.cpp
index 0ed88cf8..c7c3ec3c 100644
--- a/src/sql/qsqlmanager_p.cpp
+++ b/src/sql/qsqlmanager_p.cpp
@@ -869,10 +869,10 @@ TQSql::Confirm TQDataManager::confirmEdit( TQWidget* parent, TQSql::Op m )
if ( m == TQSql::Delete ) {
#ifndef QT_NO_MESSAGEBOX
ans = TQMessageBox::information( parent,
- qApp->translate( "TQSql", "Delete" ),
- qApp->translate( "TQSql", "Delete this record?" ),
- qApp->translate( "TQSql", "Yes" ),
- qApp->translate( "TQSql", "No" ),
+ tqApp->translate( "TQSql", "Delete" ),
+ tqApp->translate( "TQSql", "Delete this record?" ),
+ tqApp->translate( "TQSql", "Yes" ),
+ tqApp->translate( "TQSql", "No" ),
TQString::null, 0, 1 );
#else
ans = TQSql::No;
@@ -880,16 +880,16 @@ TQSql::Confirm TQDataManager::confirmEdit( TQWidget* parent, TQSql::Op m )
} else if ( m != TQSql::None ) {
TQString caption;
if ( m == TQSql::Insert ) {
- caption = qApp->translate( "TQSql", "Insert" );
+ caption = tqApp->translate( "TQSql", "Insert" );
} else { // TQSql::Update
- caption = qApp->translate( "TQSql", "Update" );
+ caption = tqApp->translate( "TQSql", "Update" );
}
#ifndef QT_NO_MESSAGEBOX
ans = TQMessageBox::information( parent, caption,
- qApp->translate( "TQSql", "Save edits?" ),
- qApp->translate( "TQSql", "Yes" ),
- qApp->translate( "TQSql", "No" ),
- qApp->translate( "TQSql", "Cancel" ),
+ tqApp->translate( "TQSql", "Save edits?" ),
+ tqApp->translate( "TQSql", "Yes" ),
+ tqApp->translate( "TQSql", "No" ),
+ tqApp->translate( "TQSql", "Cancel" ),
0, 2 );
#else
ans = TQSql::No;
@@ -921,10 +921,10 @@ TQSql::Confirm TQDataManager::confirmCancel( TQWidget* parent, TQSql::Op )
{
#ifndef QT_NO_MESSAGEBOX
switch ( TQMessageBox::information( parent,
- qApp->translate( "TQSql", "Confirm" ),
- qApp->translate( "TQSql", "Cancel your edits?" ),
- qApp->translate( "TQSql", "Yes" ),
- qApp->translate( "TQSql", "No" ),
+ tqApp->translate( "TQSql", "Confirm" ),
+ tqApp->translate( "TQSql", "Cancel your edits?" ),
+ tqApp->translate( "TQSql", "Yes" ),
+ tqApp->translate( "TQSql", "No" ),
TQString::null, 0, 1 ) ) {
case 0:
return TQSql::Yes;
diff --git a/src/styles/qstylefactory.cpp b/src/styles/qstylefactory.cpp
index 88f25642..c8c797e4 100644
--- a/src/styles/qstylefactory.cpp
+++ b/src/styles/qstylefactory.cpp
@@ -83,7 +83,7 @@ static TQStyleFactoryPrivate *instance = 0;
TQPluginManager<TQStyleFactoryInterface> *TQStyleFactoryPrivate::manager = 0;
TQStyleFactoryPrivate::TQStyleFactoryPrivate()
-: TQObject( qApp )
+: TQObject( tqApp )
{
manager = new TQPluginManager<TQStyleFactoryInterface>( IID_QStyleFactory, TQApplication::libraryPaths(), "/styles", FALSE );
}
diff --git a/src/styles/qwindowsstyle.cpp b/src/styles/qwindowsstyle.cpp
index 92c6de14..b58eb9d8 100644
--- a/src/styles/qwindowsstyle.cpp
+++ b/src/styles/qwindowsstyle.cpp
@@ -2096,8 +2096,8 @@ int TQWindowsStyle::styleHint( StyleHint hint,
ret = 1;
} else if (d->altDown()) {
ret = 1;
- } else if (qApp->focusWidget() && qApp->focusWidget()->isPopup()) {
- popupMenu = ::qt_cast<TQPopupMenu*>(qApp->focusWidget());
+ } else if (tqApp->focusWidget() && tqApp->focusWidget()->isPopup()) {
+ popupMenu = ::qt_cast<TQPopupMenu*>(tqApp->focusWidget());
TQMenuData *pm = popupMenu ? (TQMenuData*)popupMenu->qt_cast("TQMenuData") : 0;
if (pm && ((FriendlyMenuData*)pm)->parentMenu == menuBar) {
if (d->hasSeenAlt(menuBar))
diff --git a/src/table/qtable.cpp b/src/table/qtable.cpp
index b9926f3f..0a1d9c62 100644
--- a/src/table/qtable.cpp
+++ b/src/table/qtable.cpp
@@ -2781,7 +2781,7 @@ void TQTable::drawContents( TQPainter *p, int cx, int cy, int cw, int ch )
}
drawActiveSelection = hasFocus() || viewport()->hasFocus() || d->inMenuMode
- || is_child_of( qApp->focusWidget(), viewport() )
+ || is_child_of( tqApp->focusWidget(), viewport() )
|| !style().styleHint( TQStyle::SH_ItemView_ChangeHighlightOnFocus, this );
if ( rowlast == -1 )
rowlast = numRows() - 1;
@@ -4315,7 +4315,7 @@ void TQTable::focusOutEvent( TQFocusEvent* )
if (style().styleHint( TQStyle::SH_ItemView_ChangeHighlightOnFocus, this )) {
d->inMenuMode =
TQFocusEvent::reason() == TQFocusEvent::Popup ||
- (qApp->focusWidget() && qApp->focusWidget()->inherits("TQMenuBar"));
+ (tqApp->focusWidget() && tqApp->focusWidget()->inherits("TQMenuBar"));
if ( !d->inMenuMode )
repaintSelections();
}
diff --git a/src/tools/qcomponentfactory.cpp b/src/tools/qcomponentfactory.cpp
index 9109cc5b..22e87140 100644
--- a/src/tools/qcomponentfactory.cpp
+++ b/src/tools/qcomponentfactory.cpp
@@ -180,7 +180,7 @@ TQRESULT TQComponentFactory::createInstance( const TQString &cid, const TQUuid &
res = library->queryInterface( iid, iface );
}
TQLibraryInterface *libiface = 0;
- if ( library->queryInterface( IID_QLibrary, (TQUnknownInterface**)&libiface ) != TQS_OK || !qApp ) {
+ if ( library->queryInterface( IID_QLibrary, (TQUnknownInterface**)&libiface ) != TQS_OK || !tqApp ) {
delete library; // only deletes the object, thanks to TQLibrary::Manual
} else {
libiface->release();
diff --git a/src/tools/qfile.cpp b/src/tools/qfile.cpp
index dc0a2427..78c08c7d 100644
--- a/src/tools/qfile.cpp
+++ b/src/tools/qfile.cpp
@@ -681,7 +681,7 @@ void TQFile::setDecodingFunction( DecoderFn f )
TQMessageBox::critical(
this,
tr("Open failed"),
- tr("Could not open file for reading: %1").arg( qApp->translate("TQFile",f.errorString()) )
+ tr("Could not open file for reading: %1").arg( tqApp->translate("TQFile",f.errorString()) )
);
return;
}
diff --git a/src/widgets/qbuttongroup.cpp b/src/widgets/qbuttongroup.cpp
index f9022322..c94ba037 100644
--- a/src/widgets/qbuttongroup.cpp
+++ b/src/widgets/qbuttongroup.cpp
@@ -499,7 +499,7 @@ void TQButtonGroup::setRadioButtonExclusive( bool on)
void TQButtonGroup::moveFocus( int key )
{
- TQWidget * f = qApp->focusWidget();
+ TQWidget * f = tqApp->focusWidget();
TQButtonItem * i;
i = buttons->first();
diff --git a/src/widgets/qcheckbox.cpp b/src/widgets/qcheckbox.cpp
index a4b78c13..8a2ffd4e 100644
--- a/src/widgets/qcheckbox.cpp
+++ b/src/widgets/qcheckbox.cpp
@@ -353,7 +353,7 @@ void TQCheckBox::updateMask()
bool TQCheckBox::hitButton( const TQPoint &pos ) const
{
TQRect r = TQStyle::visualRect( style().subRect( TQStyle::SR_CheckBoxFocusRect, this ), this );
- if ( qApp->reverseLayout() ) {
+ if ( tqApp->reverseLayout() ) {
r.setRight( width() );
} else {
r.setLeft( 0 );
diff --git a/src/widgets/qcombobox.cpp b/src/widgets/qcombobox.cpp
index 59fa0244..60a85337 100644
--- a/src/widgets/qcombobox.cpp
+++ b/src/widgets/qcombobox.cpp
@@ -1379,7 +1379,7 @@ void TQComboBox::mousePressEvent( TQMouseEvent *e )
if ( d->usingListBox() ) {
listBox()->blockSignals( TRUE );
- qApp->sendEvent( listBox(), e ); // trigger the listbox's autoscroll
+ tqApp->sendEvent( listBox(), e ); // trigger the listbox's autoscroll
listBox()->setCurrentItem(d->current);
listBox()->blockSignals( FALSE );
popup();
diff --git a/src/widgets/qdatetimeedit.cpp b/src/widgets/qdatetimeedit.cpp
index c7fa1d5a..117c20cd 100644
--- a/src/widgets/qdatetimeedit.cpp
+++ b/src/widgets/qdatetimeedit.cpp
@@ -495,7 +495,7 @@ bool TQDateTimeEditor::event( TQEvent *e )
{
if ( e->type() == TQEvent::FocusIn || e->type() == TQEvent::FocusOut ) {
if ( e->type() == TQEvent::FocusOut )
- qApp->sendEvent( cw, e );
+ tqApp->sendEvent( cw, e );
update( rect() );
} else if ( e->type() == TQEvent::AccelOverride ) {
TQKeyEvent* ke = (TQKeyEvent*) e;
@@ -648,7 +648,7 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
}
}
- qApp->sendEvent( w, e );
+ tqApp->sendEvent( w, e );
return TRUE;
}
} break;
@@ -1547,7 +1547,7 @@ void TQDateEdit::addNumber( int sec, int num )
emit valueChanged( date() );
}
d->overwrite = overwrite;
- d->timerId = startTimer( qApp->doubleClickInterval()*4 );
+ d->timerId = startTimer( tqApp->doubleClickInterval()*4 );
d->ed->repaint( d->ed->rect(), FALSE );
}
@@ -2459,7 +2459,7 @@ void TQTimeEdit::addNumber( int sec, int num )
if ( accepted )
emit valueChanged( time() );
d->overwrite = overwrite;
- d->timerId = startTimer( qApp->doubleClickInterval()*4 );
+ d->timerId = startTimer( tqApp->doubleClickInterval()*4 );
d->ed->repaint( d->ed->rect(), FALSE );
}
diff --git a/src/widgets/qdockwindow.cpp b/src/widgets/qdockwindow.cpp
index 875f6d61..a0f4163c 100644
--- a/src/widgets/qdockwindow.cpp
+++ b/src/widgets/qdockwindow.cpp
@@ -442,7 +442,7 @@ void TQDockWindowHandle::mousePressEvent( TQMouseEvent *e )
if ( !dockWindow->dockArea )
return;
ctrlDown = ( e->state() & ControlButton ) == ControlButton;
- oldFocus = qApp->focusWidget();
+ oldFocus = tqApp->focusWidget();
setFocus();
e->ignore();
if ( e->button() != LeftButton )
@@ -453,7 +453,7 @@ void TQDockWindowHandle::mousePressEvent( TQMouseEvent *e )
offset = e->pos();
dockWindow->startRectDraw( mapToGlobal( e->pos() ), !opaque );
if ( !opaque )
- qApp->installEventFilter( dockWindow );
+ tqApp->installEventFilter( dockWindow );
}
void TQDockWindowHandle::mouseMoveEvent( TQMouseEvent *e )
@@ -469,7 +469,7 @@ void TQDockWindowHandle::mouseMoveEvent( TQMouseEvent *e )
void TQDockWindowHandle::mouseReleaseEvent( TQMouseEvent *e )
{
ctrlDown = FALSE;
- qApp->removeEventFilter( dockWindow );
+ tqApp->removeEventFilter( dockWindow );
if ( oldFocus )
oldFocus->setFocus();
if ( !mousePressed )
@@ -610,7 +610,7 @@ void TQDockWindowTitleBar::mousePressEvent( TQMouseEvent *e )
}
ctrlDown = ( e->state() & ControlButton ) == ControlButton;
- oldFocus = qApp->focusWidget();
+ oldFocus = tqApp->focusWidget();
// setFocus activates the window, which deactivates the main window
// not what we want, and not required anyway on Windows
#ifndef Q_WS_WIN
@@ -659,7 +659,7 @@ void TQDockWindowTitleBar::mouseReleaseEvent( TQMouseEvent *e )
}
ctrlDown = FALSE;
- qApp->removeEventFilter( dockWindow );
+ tqApp->removeEventFilter( dockWindow );
if ( oldFocus )
oldFocus->setFocus();
@@ -1117,7 +1117,7 @@ void TQDockWindow::setOrientation( Orientation o )
TQDockWindow::~TQDockWindow()
{
- qApp->removeEventFilter( this );
+ tqApp->removeEventFilter( this );
if ( area() )
area()->removeDockWindow( this, FALSE, FALSE );
TQDockArea *a = area();
@@ -1158,7 +1158,7 @@ void TQDockWindow::swapRect( TQRect &r, TQt::Orientation o, const TQPoint &offse
TQWidget *TQDockWindow::areaAt( const TQPoint &gp )
{
- TQWidget *w = qApp->widgetAt( gp, TRUE );
+ TQWidget *w = tqApp->widgetAt( gp, TRUE );
if ( w && ( w == this || w == titleBar ) && parentWidget() )
w = parentWidget()->childAt( parentWidget()->mapFromGlobal( gp ) );
@@ -1407,7 +1407,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos )
}
dockArea = 0;
TQPoint topLeft = currRect.topLeft();
- TQRect screen = qApp->desktop()->availableGeometry( topLeft );
+ TQRect screen = tqApp->desktop()->availableGeometry( topLeft );
if ( !screen.contains( topLeft ) ) {
topLeft.setY(TQMAX(topLeft.y(), screen.top()));
topLeft.setY(TQMIN(topLeft.y(), screen.bottom()-height()));
@@ -1968,7 +1968,7 @@ void TQDockWindow::hideEvent( TQHideEvent *e )
void TQDockWindow::showEvent( TQShowEvent *e )
{
if (curPlace == OutsideDock && (parent() && strcmp(parent()->name(), "qt_hide_dock") != 0)) {
- TQRect sr = qApp->desktop()->availableGeometry( this );
+ TQRect sr = tqApp->desktop()->availableGeometry( this );
if ( !sr.contains( pos() ) ) {
int nx = TQMIN( TQMAX( x(), sr.x() ), sr.right()-width() );
int ny = TQMIN( TQMAX( y(), sr.y() ), sr.bottom()-height() );
@@ -2060,7 +2060,7 @@ bool TQDockWindow::eventFilter( TQObject * o, TQEvent *e )
verHandle->mousePressed =
titleBar->mousePressed = FALSE;
endRectDraw( !opaque );
- qApp->removeEventFilter( this );
+ tqApp->removeEventFilter( this );
return TRUE;
}
} else if ( ((TQWidget*)o)->topLevelWidget() != this && place() == OutsideDock && isTopLevel() ) {
diff --git a/src/widgets/qeffects.cpp b/src/widgets/qeffects.cpp
index 98939b4c..7377eba7 100644
--- a/src/widgets/qeffects.cpp
+++ b/src/widgets/qeffects.cpp
@@ -145,7 +145,7 @@ void TQAlphaWidget::run( int time )
checkTime.start();
showWidget = TRUE;
- qApp->installEventFilter( this );
+ tqApp->installEventFilter( this );
widget->setWState( WState_Visible );
@@ -251,7 +251,7 @@ void TQAlphaWidget::render()
alpha = 1;
if ( alpha >= 1 || !showWidget) {
anim.stop();
- qApp->removeEventFilter( this );
+ tqApp->removeEventFilter( this );
if ( widget ) {
if ( !showWidget ) {
@@ -318,9 +318,9 @@ void TQAlphaWidget::alphaBlend()
Q_UINT32 bp = bl[sx];
Q_UINT32 fp = fl[sx];
- ((Q_UINT32*)(md[sy]))[sx] = qRgb(int (qRed(bp)*ia + qRed(fp)*alpha),
- int (qGreen(bp)*ia + qGreen(fp)*alpha),
- int (qBlue(bp)*ia + qBlue(fp)*alpha) );
+ ((Q_UINT32*)(md[sy]))[sx] = tqRgb(int (tqRed(bp)*ia + tqRed(fp)*alpha),
+ int (tqGreen(bp)*ia + tqGreen(fp)*alpha),
+ int (tqBlue(bp)*ia + tqBlue(fp)*alpha) );
}
}
}
@@ -519,7 +519,7 @@ void TQRollEffect::run( int time )
show();
setEnabled(FALSE);
- qApp->installEventFilter( this );
+ tqApp->installEventFilter( this );
showWidget = TRUE;
done = FALSE;
@@ -581,7 +581,7 @@ void TQRollEffect::scroll()
}
if ( done ) {
anim.stop();
- qApp->removeEventFilter( this );
+ tqApp->removeEventFilter( this );
if ( widget ) {
if ( !showWidget ) {
#ifdef Q_WS_WIN
@@ -633,8 +633,8 @@ void qScrollEffect( TQWidget* w, TQEffects::DirFlags orient, int time )
q_roll = 0;
}
- qApp->sendPostedEvents( w, TQEvent::Move );
- qApp->sendPostedEvents( w, TQEvent::Resize );
+ tqApp->sendPostedEvents( w, TQEvent::Move );
+ tqApp->sendPostedEvents( w, TQEvent::Resize );
#ifdef Q_WS_X11
uint flags = TQt::WStyle_Customize | TQt::WNoAutoErase | TQt::WStyle_StaysOnTop
| (w->isPopup() ? TQt::WType_Popup : (TQt::WX11BypassWM | TQt::WStyle_Tool));
@@ -657,8 +657,8 @@ void qFadeEffect( TQWidget* w, int time )
q_blend = 0;
}
- qApp->sendPostedEvents( w, TQEvent::Move );
- qApp->sendPostedEvents( w, TQEvent::Resize );
+ tqApp->sendPostedEvents( w, TQEvent::Move );
+ tqApp->sendPostedEvents( w, TQEvent::Resize );
#ifdef Q_WS_X11
uint flags = TQt::WStyle_Customize | TQt::WNoAutoErase | TQt::WStyle_StaysOnTop
diff --git a/src/widgets/qlistbox.cpp b/src/widgets/qlistbox.cpp
index 2dc52665..f3855026 100644
--- a/src/widgets/qlistbox.cpp
+++ b/src/widgets/qlistbox.cpp
@@ -2734,7 +2734,7 @@ void TQListBox::focusOutEvent( TQFocusEvent* )
if (style().styleHint( TQStyle::SH_ItemView_ChangeHighlightOnFocus, this )) {
d->inMenuMode =
TQFocusEvent::reason() == TQFocusEvent::Popup ||
- (qApp->focusWidget() && qApp->focusWidget()->inherits("TQMenuBar"));
+ (tqApp->focusWidget() && tqApp->focusWidget()->inherits("TQMenuBar"));
if ( !d->inMenuMode )
repaintSelection();
}
diff --git a/src/widgets/qlistview.cpp b/src/widgets/qlistview.cpp
index 173548c3..7b776d52 100644
--- a/src/widgets/qlistview.cpp
+++ b/src/widgets/qlistview.cpp
@@ -4308,7 +4308,7 @@ void TQListView::contentsMousePressEventEx( TQMouseEvent * e )
bool close = i->isOpen();
setOpen( i, !close );
// ### Looks dangerous, removed because of reentrance problems
- // qApp->processEvents();
+ // tqApp->processEvents();
if ( !d->focusItem ) {
d->focusItem = i;
repaintItem( d->focusItem );
@@ -4518,7 +4518,7 @@ void TQListView::contentsMouseReleaseEventEx( TQMouseEvent * e )
bool close = i->isOpen();
setOpen( i, !close );
// ### Looks dangerous, removed because of reentrance problems
- // qApp->processEvents();
+ // tqApp->processEvents();
if ( !d->focusItem ) {
d->focusItem = i;
repaintItem( d->focusItem );
@@ -4845,7 +4845,7 @@ void TQListView::focusOutEvent( TQFocusEvent* )
if ( style().styleHint( TQStyle::SH_ItemView_ChangeHighlightOnFocus, this ) ) {
d->inMenuMode =
TQFocusEvent::reason() == TQFocusEvent::Popup
- || (qApp->focusWidget() && qApp->focusWidget()->inherits("TQMenuBar"));
+ || (tqApp->focusWidget() && tqApp->focusWidget()->inherits("TQMenuBar"));
if ( !d->inMenuMode ) {
bool db = d->useDoubleBuffer;
d->useDoubleBuffer = TRUE;
diff --git a/src/widgets/qmenubar.cpp b/src/widgets/qmenubar.cpp
index d1fde81c..ed592df6 100644
--- a/src/widgets/qmenubar.cpp
+++ b/src/widgets/qmenubar.cpp
@@ -594,7 +594,7 @@ bool TQMenuBar::eventFilter( TQObject *object, TQEvent *event )
waitforalt = 0;
}
// ### ! block all accelerator events when the menu bar is active
- if ( qApp && qApp->focusWidget() == this ) {
+ if ( tqApp && tqApp->focusWidget() == this ) {
return TRUE;
}
@@ -1504,13 +1504,13 @@ void TQMenuBar::setAltMode( bool enable )
actItemDown = FALSE;
if ( enable ) {
if ( !TQMenuData::d->aWidget )
- TQMenuData::d->aWidget = qApp->focusWidget();
+ TQMenuData::d->aWidget = tqApp->focusWidget();
setFocus();
updateItem( idAt( actItem ) );
} else {
// set the focus back to the previous widget if
// we still have the focus.
- if ( qApp->focusWidget() == this ) {
+ if ( tqApp->focusWidget() == this ) {
if ( TQMenuData::d->aWidget )
TQMenuData::d->aWidget->setFocus();
else
diff --git a/src/widgets/qpopupmenu.cpp b/src/widgets/qpopupmenu.cpp
index ed9aa45c..f6858c25 100644
--- a/src/widgets/qpopupmenu.cpp
+++ b/src/widgets/qpopupmenu.cpp
@@ -111,7 +111,7 @@ static void cleanup()
static void popupSubMenuLater( int msec, TQPopupMenu * receiver ) {
if ( !singleSingleShot ) {
- singleSingleShot = new TQTimer( qApp, "popup submenu timer" );
+ singleSingleShot = new TQTimer( tqApp, "popup submenu timer" );
qAddPostRoutine( cleanup );
}
@@ -314,8 +314,8 @@ TQPopupMenu::TQPopupMenu( TQWidget *parent, const char *name )
TQPopupMenu::~TQPopupMenu()
{
- if ( syncMenu == this && qApp ) {
- qApp->exit_loop();
+ if ( syncMenu == this && tqApp ) {
+ tqApp->exit_loop();
syncMenu = 0;
}
@@ -558,7 +558,7 @@ void TQPopupMenu::popup( const TQPoint &pos, int indexAtPoint )
int h = height();
if ( snapToMouse ) {
- if ( qApp->reverseLayout() )
+ if ( tqApp->reverseLayout() )
x -= w;
if ( x+w > sx+sw )
x = mouse.x()-w;
@@ -587,7 +587,7 @@ void TQPopupMenu::popup( const TQPoint &pos, int indexAtPoint )
if( parent == NULL )
parent = TQApplication::widgetAt( pos );
if( parent == NULL )
- parent = qApp->activeWindow();
+ parent = tqApp->activeWindow();
if( parent != NULL )
x11SetWindowTransient( parent );
}
@@ -649,9 +649,9 @@ void TQPopupMenu::popup( const TQPoint &pos, int indexAtPoint )
actItem = -1;
#ifndef QT_NO_EFFECTS
- int hGuess = qApp->reverseLayout() ? TQEffects::LeftScroll : TQEffects::RightScroll;
+ int hGuess = tqApp->reverseLayout() ? TQEffects::LeftScroll : TQEffects::RightScroll;
int vGuess = TQEffects::DownScroll;
- if ( qApp->reverseLayout() ) {
+ if ( tqApp->reverseLayout() ) {
if ( snapToMouse && ( x + w/2 > mouse.x() ) ||
( parentMenu && parentMenu->isPopupMenu &&
( x + w/2 > ((TQPopupMenu*)parentMenu)->x() ) ) )
@@ -1403,8 +1403,8 @@ void TQPopupMenu::show()
void TQPopupMenu::hide()
{
- if ( syncMenu == this && qApp ) {
- qApp->exit_loop();
+ if ( syncMenu == this && tqApp ) {
+ tqApp->exit_loop();
syncMenu = 0;
}
@@ -2200,7 +2200,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e )
#ifdef Q_OS_WIN32
if ( !ok_key &&
!( e->key() == Key_Control || e->key() == Key_Shift || e->key() == Key_Meta ) )
- qApp->beep();
+ tqApp->beep();
#endif // Q_OS_WIN32
}
@@ -2480,7 +2480,7 @@ void TQPopupMenu::updateRow( int row )
int TQPopupMenu::exec( const TQPoint & pos, int indexAtPoint )
{
snapToMouse = TRUE;
- if ( !qApp )
+ if ( !tqApp )
return -1;
TQPopupMenu* priorSyncMenu = syncMenu;
@@ -2491,7 +2491,7 @@ int TQPopupMenu::exec( const TQPoint & pos, int indexAtPoint )
TQGuardedPtr<TQPopupMenu> that = this;
connectModal( that, TRUE );
popup( pos, indexAtPoint );
- qApp->enter_loop();
+ tqApp->enter_loop();
connectModal( that, FALSE );
syncMenu = priorSyncMenu;
diff --git a/src/widgets/qpushbutton.cpp b/src/widgets/qpushbutton.cpp
index cbb45e44..09e57b11 100644
--- a/src/widgets/qpushbutton.cpp
+++ b/src/widgets/qpushbutton.cpp
@@ -712,7 +712,7 @@ void TQPushButton::popupPressed()
#endif
if ( horizontal ) {
if ( topLeft ) {
- if ( mapToGlobal( TQPoint( 0, rect().bottom() ) ).y() + popup->sizeHint().height() <= qApp->desktop()->height() )
+ if ( mapToGlobal( TQPoint( 0, rect().bottom() ) ).y() + popup->sizeHint().height() <= tqApp->desktop()->height() )
popup->exec( mapToGlobal( rect().bottomLeft() ) );
else
popup->exec( mapToGlobal( rect().topLeft() - TQPoint( 0, popup->sizeHint().height() ) ) );
@@ -724,7 +724,7 @@ void TQPushButton::popupPressed()
}
} else {
if ( topLeft ) {
- if ( mapToGlobal( TQPoint( rect().right(), 0 ) ).x() + popup->sizeHint().width() <= qApp->desktop()->width() )
+ if ( mapToGlobal( TQPoint( rect().right(), 0 ) ).x() + popup->sizeHint().width() <= tqApp->desktop()->width() )
popup->exec( mapToGlobal( rect().topRight() ) );
else
popup->exec( mapToGlobal( rect().topLeft() - TQPoint( popup->sizeHint().width(), 0 ) ) );
diff --git a/src/widgets/qradiobutton.cpp b/src/widgets/qradiobutton.cpp
index 2d051513..d04c0ff1 100644
--- a/src/widgets/qradiobutton.cpp
+++ b/src/widgets/qradiobutton.cpp
@@ -179,7 +179,7 @@ bool TQRadioButton::hitButton( const TQPoint &pos ) const
TQRect r =
TQStyle::visualRect( style().subRect( TQStyle::SR_RadioButtonFocusRect,
this ), this );
- if ( qApp->reverseLayout() ) {
+ if ( tqApp->reverseLayout() ) {
r.setRight( width() );
} else {
r.setLeft( 0 );
diff --git a/src/widgets/qspinbox.cpp b/src/widgets/qspinbox.cpp
index 754d39ff..44692688 100644
--- a/src/widgets/qspinbox.cpp
+++ b/src/widgets/qspinbox.cpp
@@ -659,7 +659,7 @@ bool TQSpinBox::eventFilter( TQObject* o, TQEvent* ev )
return FALSE;
if ( edited )
interpretText();
- qApp->sendEvent( this, ev );
+ tqApp->sendEvent( this, ev );
retval = TRUE;
} if ( k->key() == Key_Up ) {
stepUp();
diff --git a/src/widgets/qsplashscreen.cpp b/src/widgets/qsplashscreen.cpp
index 6be1506b..1896269b 100644
--- a/src/widgets/qsplashscreen.cpp
+++ b/src/widgets/qsplashscreen.cpp
@@ -115,10 +115,10 @@ public:
splash->show();
... // Loading some items
splash->message( "Loaded modules" );
- qApp->processEvents();
+ tqApp->processEvents();
... // Establishing connections
splash->message( "Established connections" );
- qApp->processEvents();
+ tqApp->processEvents();
\endcode
*/
diff --git a/src/widgets/qtabbar.cpp b/src/widgets/qtabbar.cpp
index b141de8d..dcee1508 100644
--- a/src/widgets/qtabbar.cpp
+++ b/src/widgets/qtabbar.cpp
@@ -585,7 +585,7 @@ void TQTabBar::paint( TQPainter * p, TQTab * t, bool selected ) const
if (isEnabled() && t->isEnabled())
flags |= TQStyle::Style_Enabled;
- if (topLevelWidget() == qApp->activeWindow())
+ if (topLevelWidget() == tqApp->activeWindow())
flags |= TQStyle::Style_Active;
if ( selected )
flags |= TQStyle::Style_Selected;
diff --git a/src/widgets/qtabwidget.cpp b/src/widgets/qtabwidget.cpp
index b255aaab..bb2eccf8 100644
--- a/src/widgets/qtabwidget.cpp
+++ b/src/widgets/qtabwidget.cpp
@@ -961,7 +961,7 @@ bool TQTabWidget::eventFilter( TQObject *o, TQEvent * e)
page = 0;
}
setCurrentPage( page );
- if ( !qApp->focusWidget() )
+ if ( !tqApp->focusWidget() )
d->tabs->setFocus();
return TRUE;
}
diff --git a/src/widgets/qtextbrowser.cpp b/src/widgets/qtextbrowser.cpp
index d8d9b8a2..1dcf689a 100644
--- a/src/widgets/qtextbrowser.cpp
+++ b/src/widgets/qtextbrowser.cpp
@@ -229,7 +229,7 @@ void TQTextBrowser::setSource(const TQString& name)
{
#ifndef QT_NO_CURSOR
if ( isVisible() )
- qApp->setOverrideCursor( waitCursor );
+ tqApp->setOverrideCursor( waitCursor );
#endif
d->textOrSourceChanged = TRUE;
TQString source = name;
@@ -263,7 +263,7 @@ void TQTextBrowser::setSource(const TQString& name)
if ( firstTag.left( 3 ) == "<qt" && firstTag.contains( "type" ) && firstTag.contains( "detail" ) ) {
popupDetail( txt, TQCursor::pos() );
#ifndef QT_NO_CURSOR
- qApp->restoreOverrideCursor();
+ tqApp->restoreOverrideCursor();
#endif
return;
}
@@ -304,7 +304,7 @@ void TQTextBrowser::setSource(const TQString& name)
#ifndef QT_NO_CURSOR
if ( isVisible() )
- qApp->restoreOverrideCursor();
+ tqApp->restoreOverrideCursor();
#endif
emit sourceChanged( url );
diff --git a/src/widgets/qtextedit.cpp b/src/widgets/qtextedit.cpp
index cb6da79c..5910ef4c 100644
--- a/src/widgets/qtextedit.cpp
+++ b/src/widgets/qtextedit.cpp
@@ -2604,7 +2604,7 @@ void TQTextEdit::contentsMouseDoubleClickEvent( TQMouseEvent * e )
repaintChanged();
- d->trippleClickTimer->start( qApp->doubleClickInterval(), TRUE );
+ d->trippleClickTimer->start( tqApp->doubleClickInterval(), TRUE );
d->trippleClickPoint = e->globalPos();
}
inDoubleClick = TRUE;
diff --git a/src/widgets/qtoolbutton.cpp b/src/widgets/qtoolbutton.cpp
index eac653d9..64435382 100644
--- a/src/widgets/qtoolbutton.cpp
+++ b/src/widgets/qtoolbutton.cpp
@@ -915,7 +915,7 @@ void TQToolButton::popupTimerDone()
horizontal = FALSE;
#endif
TQPoint p;
- TQRect screen = qApp->desktop()->availableGeometry( this );
+ TQRect screen = tqApp->desktop()->availableGeometry( this );
if ( horizontal ) {
if ( TQApplication::reverseLayout() ) {
if ( mapToGlobal( TQPoint( 0, rect().bottom() ) ).y() + d->popup->sizeHint().height() <= screen.height() ) {
diff --git a/src/widgets/qtooltip.cpp b/src/widgets/qtooltip.cpp
index 5507bfc7..fc33aef5 100644
--- a/src/widgets/qtooltip.cpp
+++ b/src/widgets/qtooltip.cpp
@@ -156,7 +156,7 @@ static void initTipManager()
TQTipManager::TQTipManager()
- : TQObject( qApp, "toolTipManager" )
+ : TQObject( tqApp, "toolTipManager" )
{
wakeUpDelay = 700;
tips = new TQPtrDict<TQTipManager::Tip>( 313 );
@@ -173,9 +173,9 @@ TQTipManager::TQTipManager()
TQTipManager::~TQTipManager()
{
- if ( isApplicationFilter && !qApp->closingDown() ) {
- qApp->setGlobalMouseTracking( FALSE );
- qApp->removeEventFilter( tipManager );
+ if ( isApplicationFilter && !tqApp->closingDown() ) {
+ tqApp->setGlobalMouseTracking( FALSE );
+ tqApp->removeEventFilter( tipManager );
}
delete label;
@@ -234,10 +234,10 @@ void TQTipManager::add( const TQRect &gm, TQWidget *w,
showTip();
}
- if ( !isApplicationFilter && qApp ) {
+ if ( !isApplicationFilter && tqApp ) {
isApplicationFilter = TRUE;
- qApp->installEventFilter( tipManager );
- qApp->setGlobalMouseTracking( TRUE );
+ tqApp->installEventFilter( tipManager );
+ tqApp->setGlobalMouseTracking( TRUE );
}
if ( t->group ) {
@@ -371,11 +371,11 @@ bool TQTipManager::eventFilter( TQObject *obj, TQEvent *e )
// avoid dumping core in case of application madness, and return
// tquickly for some common but irrelevant events
if ( e->type() == TQEvent::WindowDeactivate &&
- qApp && !qApp->activeWindow() &&
+ tqApp && !tqApp->activeWindow() &&
label && label->isVisible() )
hideTipAndSleep();
- if ( !qApp
+ if ( !tqApp
|| !obj || !obj->isWidgetType() // isWidgetType() catches most stuff
|| e->type() == TQEvent::Paint
|| e->type() == TQEvent::Timer
diff --git a/src/widgets/qwhatsthis.cpp b/src/widgets/qwhatsthis.cpp
index f1c4fe6a..6e3338b0 100644
--- a/src/widgets/qwhatsthis.cpp
+++ b/src/widgets/qwhatsthis.cpp
@@ -475,7 +475,7 @@ void TQWhatsThisButton::mouseReleased()
TQApplication::setOverrideCursor( whatsThisCursor, FALSE );
#endif
wt->state = TQWhatsThisPrivate::Waiting;
- qApp->installEventFilter( wt );
+ tqApp->installEventFilter( wt );
}
}
@@ -502,7 +502,7 @@ TQWhatsThisPrivate::TQWhatsThisPrivate()
TQWhatsThisPrivate::~TQWhatsThisPrivate()
{
#ifndef QT_NO_CURSOR
- if ( state == Waiting && qApp )
+ if ( state == Waiting && tqApp )
TQApplication::restoreOverrideCursor();
#endif
// the two straight-and-simple dicts
@@ -643,7 +643,7 @@ void TQWhatsThisPrivate::leaveWhatsThisMode()
TQApplication::restoreOverrideCursor();
#endif
state = Inactive;
- qApp->removeEventFilter( this );
+ tqApp->removeEventFilter( this );
}
}
@@ -923,7 +923,7 @@ void TQWhatsThis::enterWhatsThisMode()
TQApplication::setOverrideCursor( whatsThisCursor, FALSE );
#endif
wt->state = TQWhatsThisPrivate::Waiting;
- qApp->installEventFilter( wt );
+ tqApp->installEventFilter( wt );
}
}
diff --git a/src/widgets/qwidgetresizehandler.cpp b/src/widgets/qwidgetresizehandler.cpp
index ff964b12..f0d21a60 100644
--- a/src/widgets/qwidgetresizehandler.cpp
+++ b/src/widgets/qwidgetresizehandler.cpp
@@ -64,7 +64,7 @@ TQWidgetResizeHandler::TQWidgetResizeHandler( TQWidget *parent, TQWidget *cw, co
range = frame ? frame->frameWidth() : RANGE;
range = TQMAX( RANGE, range );
activeForMove = activeForResize = TRUE;
- qApp->installEventFilter( this );
+ tqApp->installEventFilter( this );
}
void TQWidgetResizeHandler::setActive( Action ac, bool b )
@@ -116,7 +116,7 @@ bool TQWidgetResizeHandler::eventFilter( TQObject *o, TQEvent *ee )
#ifndef QT_NO_SIZEGRIP
|| ::qt_cast<TQSizeGrip*>(o)
#endif
- || qApp->activePopupWidget() ) {
+ || tqApp->activePopupWidget() ) {
if ( buttonDown && ee->type() == TQEvent::MouseButtonRelease )
buttonDown = FALSE;
return FALSE;
diff --git a/src/workspace/qworkspace.cpp b/src/workspace/qworkspace.cpp
index e57f07f7..b46a9ddd 100644
--- a/src/workspace/qworkspace.cpp
+++ b/src/workspace/qworkspace.cpp
@@ -601,7 +601,7 @@ void TQWorkspace::place( TQWidget* w)
TQRect r2(0, 0, 0, 0);
TQRect maxRect = rect();
if(d->wmode == TopLevel) {
- const TQDesktopWidget *dw = qApp->desktop();
+ const TQDesktopWidget *dw = tqApp->desktop();
maxRect = dw->availableGeometry(dw->screenNumber(topLevelWidget()));
}
int x = maxRect.left(), y = maxRect.top();
@@ -800,7 +800,7 @@ void TQWorkspace::resizeEvent( TQResizeEvent * )
void TQWorkspace::handleUndock(TQDockWindow *w)
{
- const TQDesktopWidget *dw = qApp->desktop();
+ const TQDesktopWidget *dw = tqApp->desktop();
TQRect maxRect = dw->availableGeometry(dw->screenNumber(d->mainwindow));
TQPoint wpos(maxRect.left(), maxRect.top());
int possible = 0;
@@ -1026,8 +1026,8 @@ void TQWorkspace::showEvent( TQShowEvent *e )
TQWidget *w = new TQWidget(NULL, "TQDoesNotExist",
WType_Dialog | WStyle_Customize | WStyle_NoBorder);
-// if(qApp->mainWidget() == o)
-// TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
+// if(tqApp->mainWidget() == o)
+// TQObject::connect(tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit()));
TQDesktopWidget *dw = TQApplication::desktop();
w->setGeometry(dw->availableGeometry(dw->screenNumber(o)));
o->reparent(w, TQPoint(0, 0), TRUE);
@@ -1197,9 +1197,9 @@ void TQWorkspace::maximizeWindow( TQWidget* w)
c->adjustToFullscreen();
c->show();
c->internalRaise();
- qApp->sendPostedEvents( c, TQEvent::Resize );
- qApp->sendPostedEvents( c, TQEvent::Move );
- qApp->sendPostedEvents( c, TQEvent::ShowWindowRequest );
+ tqApp->sendPostedEvents( c, TQEvent::Resize );
+ tqApp->sendPostedEvents( c, TQEvent::Move );
+ tqApp->sendPostedEvents( c, TQEvent::ShowWindowRequest );
if ( d->maxWindow != c ) {
if ( d->maxWindow )
d->maxWindow->setGeometry( d->maxRestore );
@@ -1892,7 +1892,7 @@ void TQWorkspace::cascade()
int h = prefSize.height();
child->showNormal();
- qApp->sendPostedEvents( 0, TQEvent::ShowNormal );
+ tqApp->sendPostedEvents( 0, TQEvent::ShowNormal );
if ( y + h > height() )
y = 0;
if ( x + w > width() )
@@ -1987,7 +1987,7 @@ void TQWorkspace::tile()
c->TQFrame::move( p );
} else {
c->showNormal();
- qApp->sendPostedEvents( 0, TQEvent::ShowNormal );
+ tqApp->sendPostedEvents( 0, TQEvent::ShowNormal );
used[row*cols+col] = TRUE;
TQSize sz(w, h);
TQSize bsize(c->baseSize());
@@ -2731,9 +2731,9 @@ void TQWorkspaceChild::adjustToFullscreen()
if ( !childWidget )
return;
- qApp->sendPostedEvents( this, TQEvent::Resize );
- qApp->sendPostedEvents( childWidget, TQEvent::Resize );
- qApp->sendPostedEvents( childWidget, TQEvent::Move );
+ tqApp->sendPostedEvents( this, TQEvent::Resize );
+ tqApp->sendPostedEvents( childWidget, TQEvent::Resize );
+ tqApp->sendPostedEvents( childWidget, TQEvent::Move );
if( style().styleHint(TQStyle::SH_Workspace_FillSpaceOnMaximize, this) ) {
setGeometry( 0, 0, parentWidget()->width(), parentWidget()->height());
} else {
diff --git a/tools/assistant/config.cpp b/tools/assistant/config.cpp
index e47e38bd..ad7e7edd 100644
--- a/tools/assistant/config.cpp
+++ b/tools/assistant/config.cpp
@@ -53,7 +53,7 @@ inline TQString getVersionString()
Config::Config()
: hideSidebar( FALSE ), profil( 0 ), maximized(FALSE)
{
- fontSiz = qApp->font().pointSize();
+ fontSiz = tqApp->font().pointSize();
if( !static_configuration ) {
static_configuration = this;
} else {
@@ -120,13 +120,13 @@ void Config::load()
linkCol = settings.readEntry( key + "LinkColor", "#0000FF" );
src = settings.readListEntry( profkey + "Source" );
sideBar = settings.readNumEntry( key + "SideBarPage" );
- if (qApp->type() != TQApplication::Tty) {
- fontFam = settings.readEntry( key + "Family", qApp->font().family() );
+ if (tqApp->type() != TQApplication::Tty) {
+ fontFam = settings.readEntry( key + "Family", tqApp->font().family() );
fontFix = settings.readEntry( key + "FixedFamily", "courier" );
fontSiz = settings.readNumEntry( key + "Size", -1 );
if ( fontSiz < 4 ) {
- fontSiz = qApp->font().pointSize();
+ fontSiz = tqApp->font().pointSize();
}
geom.setRect( settings.readNumEntry( key + "GeometryX", TQApplication::desktop()->availableGeometry().x() ),
@@ -162,14 +162,14 @@ void Config::saveSettings()
settings.writeEntry( key + "LinkColor", linkCol );
settings.writeEntry( profkey + "Source", src );
settings.writeEntry( key + "SideBarPage", sideBarPage() );
- if (qApp->type() != TQApplication::Tty) {
+ if (tqApp->type() != TQApplication::Tty) {
settings.writeEntry( key + "GeometryX", geom.x() );
settings.writeEntry( key + "GeometryY", geom.y() );
settings.writeEntry( key + "GeometryWidth", geom.width() );
settings.writeEntry( key + "GeometryHeight", geom.height() );
settings.writeEntry( key + "GeometryMaximized", maximized );
settings.writeEntry( key + "Family", fontFam );
- settings.writeEntry( key + "Size", fontSiz < 4 ? qApp->font().pointSize() : fontSiz );
+ settings.writeEntry( key + "Size", fontSiz < 4 ? tqApp->font().pointSize() : fontSiz );
settings.writeEntry( key + "FixedFamily", fontFix );
}
if ( !hideSidebar )
diff --git a/tools/assistant/helpdialogimpl.cpp b/tools/assistant/helpdialogimpl.cpp
index c447c4cb..adf39f2f 100644
--- a/tools/assistant/helpdialogimpl.cpp
+++ b/tools/assistant/helpdialogimpl.cpp
@@ -230,7 +230,7 @@ void HelpDialog::initialize()
listContents->header()->hide();
listContents->header()->setStretchEnabled( TRUE );
framePrepare->hide();
- connect( qApp, SIGNAL(lastWindowClosed()), SLOT(lastWinClosed()) );
+ connect( tqApp, SIGNAL(lastWindowClosed()), SLOT(lastWinClosed()) );
termsEdit->setValidator( new SearchValidator( termsEdit ) );
@@ -254,7 +254,7 @@ void HelpDialog::initialize()
void HelpDialog::processEvents()
{
- qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
+ tqApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
}
@@ -292,7 +292,7 @@ void HelpDialog::timerEvent(TQTimerEvent *e)
help->setWindowOpacity((opacity-=4)/255.0);
if (opacity<=0)
#endif
- qApp->quit();
+ tqApp->quit();
}
diff --git a/tools/assistant/index.cpp b/tools/assistant/index.cpp
index 4ce081de..24372fee 100644
--- a/tools/assistant/index.cpp
+++ b/tools/assistant/index.cpp
@@ -69,7 +69,7 @@ Index::Index( const TQString &dp, const TQString &hp )
{
alreadyHaveDocList = FALSE;
lastWindowClosed = FALSE;
- connect( qApp, SIGNAL( lastWindowClosed() ),
+ connect( tqApp, SIGNAL( lastWindowClosed() ),
this, SLOT( setLastWinClosed() ) );
}
@@ -79,7 +79,7 @@ Index::Index( const TQStringList &dl, const TQString &hp )
docList = dl;
alreadyHaveDocList = TRUE;
lastWindowClosed = FALSE;
- connect( qApp, SIGNAL( lastWindowClosed() ),
+ connect( tqApp, SIGNAL( lastWindowClosed() ),
this, SLOT( setLastWinClosed() ) );
}
diff --git a/tools/assistant/mainwindow.ui.h b/tools/assistant/mainwindow.ui.h
index d257c7cf..d9847b8d 100644
--- a/tools/assistant/mainwindow.ui.h
+++ b/tools/assistant/mainwindow.ui.h
@@ -118,14 +118,14 @@ void MainWindow::setup()
if( setupCompleted )
return;
- qApp->setOverrideCursor( TQCursor( TQt::WaitCursor ) );
+ tqApp->setOverrideCursor( TQCursor( TQt::WaitCursor ) );
statusBar()->message( tr( "Initializing TQt Assistant..." ) );
setupCompleted = TRUE;
helpDock->initialize();
connect( actionGoPrevious, SIGNAL( activated() ), tabs, SLOT( backward() ) );
connect( actionGoNext, SIGNAL( activated() ), tabs, SLOT( forward() ) );
connect( actionEditCopy, SIGNAL( activated() ), tabs, SLOT( copy() ) );
- connect( actionFileExit, SIGNAL( activated() ), qApp, SLOT( closeAllWindows() ) );
+ connect( actionFileExit, SIGNAL( activated() ), tqApp, SLOT( closeAllWindows() ) );
connect( actionAddBookmark, SIGNAL( activated() ),
helpDock, SLOT( addBookmark() ) );
connect( helpDock, SIGNAL( showLink( const TQString& ) ),
@@ -167,7 +167,7 @@ void MainWindow::setup()
PopupMenu->insertItem( tr( "Vie&ws" ), createDockWindowMenu() );
helpDock->tabWidget->setCurrentPage( config->sideBarPage() );
- qApp->restoreOverrideCursor();
+ tqApp->restoreOverrideCursor();
actionGoPrevious->setEnabled( FALSE );
actionGoNext->setEnabled( FALSE );
}
@@ -335,8 +335,8 @@ void MainWindow::print()
if ( !p.begin( &printer ) )
return;
- qApp->setOverrideCursor( TQCursor( TQt::WaitCursor ) );
- qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
+ tqApp->setOverrideCursor( TQCursor( TQt::WaitCursor ) );
+ tqApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
TQPaintDeviceMetrics metrics(p.device());
TQTextBrowser *browser = tabs->currentBrowser();
@@ -352,7 +352,7 @@ void MainWindow::print()
richText.setWidth( &p, view.width() );
int page = 1;
do {
- qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
+ tqApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
richText.draw( &p, margin, margin, view, palette().active() );
view.moveBy( 0, view.height() );
@@ -365,8 +365,8 @@ void MainWindow::print()
page++;
} while (TRUE);
- qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
- qApp->restoreOverrideCursor();
+ tqApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
+ tqApp->restoreOverrideCursor();
}
}
diff --git a/tools/designer/designer/customwidgeteditorimpl.cpp b/tools/designer/designer/customwidgeteditorimpl.cpp
index ac517f1d..51571520 100644
--- a/tools/designer/designer/customwidgeteditorimpl.cpp
+++ b/tools/designer/designer/customwidgeteditorimpl.cpp
@@ -403,7 +403,7 @@ void CustomWidgetEditor::checkWidgetName()
"to rename this widget with this name." ).arg( s ) );
if ( i != boxWidgets->item( boxWidgets->currentItem() ) ) {
boxWidgets->setCurrentItem( i );
- qApp->processEvents();
+ tqApp->processEvents();
}
editClass->setText( w->className );
classNameChanged( w->className );
diff --git a/tools/designer/designer/formfile.cpp b/tools/designer/designer/formfile.cpp
index 2afe8423..4f88b29e 100644
--- a/tools/designer/designer/formfile.cpp
+++ b/tools/designer/designer/formfile.cpp
@@ -218,7 +218,7 @@ bool FormFile::save( bool withMsgBox, bool ignoreModified )
TQCString data( f.size() );
f.readBlock( data.data(), f.size() );
f2.writeBlock( data );
- } else if ( qApp->type() != TQApplication::Tty ) {
+ } else if ( tqApp->type() != TQApplication::Tty ) {
TQMessageBox::warning( MainWindow::self, "Save", "The file " +
codeFile() + " could not be saved" );
}
diff --git a/tools/designer/designer/formwindow.cpp b/tools/designer/designer/formwindow.cpp
index b352b11d..50dd9620 100644
--- a/tools/designer/designer/formwindow.cpp
+++ b/tools/designer/designer/formwindow.cpp
@@ -606,7 +606,7 @@ void FormWindow::handleMousePress( TQMouseEvent *e, TQWidget *w )
delete l;
}
}
- qApp->processEvents();
+ tqApp->processEvents();
}
if ( ( ( e->state() & ControlButton ) || ( e->state() & ShiftButton ) ) &&
sel && e->button() == LeftButton ) { // control pressed and selected, unselect widget
@@ -860,7 +860,7 @@ void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
break;
case CONNECT_TOOL:
restoreConnectionLine();
- wid = qApp->widgetAt( e->globalPos(), TRUE );
+ wid = tqApp->widgetAt( e->globalPos(), TRUE );
if ( wid )
wid = designerWidget( wid );
if ( wid && ( isMainContainer( wid ) || insertedWidgets.find( wid ) ) && wid->isVisibleTo( this ) )
@@ -874,7 +874,7 @@ void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
mainWindow()->statusBar()->message( tr( "Connect '%1' to '%2'" ).arg( startWidget->name() ).
arg( endWidget->name() ) );
currentPos = mapFromGlobal( e->globalPos() );
- qApp->processEvents();
+ tqApp->processEvents();
if ( drawRecRect )
restoreRect( TQRect( mapToForm( ( (TQWidget*)oldendWidget )->parentWidget(), ( (TQWidget*)oldendWidget )->pos() ),
( (TQWidget*)oldendWidget )->size() ) );
@@ -884,7 +884,7 @@ void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
if ( !validForBuddy )
break;
restoreConnectionLine();
- wid = qApp->widgetAt( e->globalPos(), TRUE );
+ wid = tqApp->widgetAt( e->globalPos(), TRUE );
if ( wid )
wid = designerWidget( wid );
if ( wid && canBeBuddy( wid ) && wid->isVisibleTo( this ) )
@@ -904,7 +904,7 @@ void FormWindow::handleMouseMove( TQMouseEvent *e, TQWidget *w )
else
mainWindow()->statusBar()->message( tr( "Set buddy '%1' to ..." ).arg( startWidget->name() ) );
currentPos = mapFromGlobal( e->globalPos() );
- qApp->processEvents();
+ tqApp->processEvents();
if ( drawRecRect && oldendWidget )
restoreRect( TQRect( mapToForm( ( (TQWidget*)oldendWidget )->parentWidget(), ( (TQWidget*)oldendWidget )->pos() ),
( (TQWidget*)oldendWidget )->size() ) );
@@ -1035,7 +1035,7 @@ void FormWindow::handleMouseRelease( TQMouseEvent *e, TQWidget *w )
( (TQWidget*)endWidget )->pos() ),
( (TQWidget*)endWidget )->size() ) );
endUnclippedPainter();
- qApp->processEvents();
+ tqApp->processEvents();
if ( startWidget && endWidget ) {
if ( currTool == CONNECT_TOOL )
diff --git a/tools/designer/designer/hierarchyview.cpp b/tools/designer/designer/hierarchyview.cpp
index 77c84d0b..25d0f334 100644
--- a/tools/designer/designer/hierarchyview.cpp
+++ b/tools/designer/designer/hierarchyview.cpp
@@ -953,7 +953,7 @@ void HierarchyList::insertEntry( TQListViewItem *i, const TQPixmap &pix, const T
item->setRenameEnabled( 0, TRUE );
setCurrentItem( item );
ensureItemVisible( item );
- qApp->processEvents();
+ tqApp->processEvents();
newItem = item;
item->startRename( 0 );
}
diff --git a/tools/designer/designer/listeditor.ui.h b/tools/designer/designer/listeditor.ui.h
index 5468f796..3092706d 100644
--- a/tools/designer/designer/listeditor.ui.h
+++ b/tools/designer/designer/listeditor.ui.h
@@ -30,7 +30,7 @@ void ListEditor::addItem()
{
TQListViewItem *i = new TQListViewItem( listview, listview->lastItem() );
i->setRenameEnabled( 0, TRUE );
- qApp->processEvents();
+ tqApp->processEvents();
i->startRename( 0 );
}
diff --git a/tools/designer/designer/mainwindow.cpp b/tools/designer/designer/mainwindow.cpp
index 4f22fb8b..1d97ffe4 100644
--- a/tools/designer/designer/mainwindow.cpp
+++ b/tools/designer/designer/mainwindow.cpp
@@ -185,7 +185,7 @@ MainWindow::MainWindow( bool asClient, bool single, const TQString &plgDir )
setupPluginManagers();
if ( !single )
- qApp->setMainWidget( this );
+ tqApp->setMainWidget( this );
TQWidgetFactory::addWidgetFactory( new CustomWidgetFactory );
#ifndef Q_WS_MACX
setIcon( TQPixmap::fromMimeSource( "designer_appicon.png" ) );
@@ -247,13 +247,13 @@ MainWindow::MainWindow( bool asClient, bool single, const TQString &plgDir )
emit hasActiveWindow( FALSE );
lastPressWidget = 0;
- qApp->installEventFilter( this );
+ tqApp->installEventFilter( this );
- TQSize as( qApp->desktop()->size() );
+ TQSize as( tqApp->desktop()->size() );
as -= TQSize( 30, 30 );
resize( TQSize( 1200, 1000 ).boundedTo( as ) );
- connect( qApp->clipboard(), SIGNAL( dataChanged() ),
+ connect( tqApp->clipboard(), SIGNAL( dataChanged() ),
this, SLOT( clipboardChanged() ) );
clipboardChanged();
layoutChilds = FALSE;
@@ -734,7 +734,7 @@ void MainWindow::previewForm( const TQString & style )
void MainWindow::helpContents()
{
- TQWidget *focusWidget = qApp->focusWidget();
+ TQWidget *focusWidget = tqApp->focusWidget();
bool showClassDocu = TRUE;
while ( focusWidget ) {
if ( focusWidget->isA( "PropertyList" ) ) {
@@ -1525,7 +1525,7 @@ void MainWindow::popupFormWindowMenu( const TQPoint & gp, FormWindow *fw )
setupRMBSpecialCommands( ids, commands, fw );
setupRMBProperties( ids, commands, fw );
- qApp->processEvents();
+ tqApp->processEvents();
int r = rmbFormWindow->exec( gp );
handleRMBProperties( r, commands, fw );
@@ -1543,7 +1543,7 @@ void MainWindow::popupWidgetMenu( const TQPoint &gp, FormWindow * /*fw*/, TQWidg
setupRMBSpecialCommands( ids, commands, w );
setupRMBProperties( ids, commands, w );
- qApp->processEvents();
+ tqApp->processEvents();
int r = rmbWidgets->exec( gp );
handleRMBProperties( r, commands, w );
@@ -1997,7 +1997,7 @@ void MainWindow::handleRMBSpecialCommands( int id, TQMap<TQString, int> &command
void MainWindow::clipboardChanged()
{
- TQString text( qApp->clipboard()->text() );
+ TQString text( tqApp->clipboard()->text() );
if (qWorkspace()->activeWindow() && ::qt_cast<SourceEditor*>(qWorkspace()->activeWindow())) {
actionEditPaste->setEnabled(!text.isEmpty());
} else {
@@ -3355,7 +3355,7 @@ void MainWindow::showSourceLine( TQObject *o, int line, LineMode lm )
fw->showNormal();
fw->setFocus();
lastActiveFormWindow = fw;
- qApp->processEvents();
+ tqApp->processEvents();
se = editSource();
if ( se ) {
switch ( lm ) {
@@ -3430,7 +3430,7 @@ void MainWindow::showSourceLine( TQObject *o, int line, LineMode lm )
openFormWindow( currentProject->makeAbsolute( *qwf_forms->find( (TQWidget*)o ) ) );
else
fw->formFile()->showEditor( FALSE );
- qApp->processEvents(); // give all views the chance to get the formwindow
+ tqApp->processEvents(); // give all views the chance to get the formwindow
SourceEditor *se = editSource();
if ( se ) {
switch ( lm ) {
diff --git a/tools/designer/designer/mainwindowactions.cpp b/tools/designer/designer/mainwindowactions.cpp
index 86da0e52..dbff60da 100644
--- a/tools/designer/designer/mainwindowactions.cpp
+++ b/tools/designer/designer/mainwindowactions.cpp
@@ -1082,7 +1082,7 @@ void MainWindow::fileQuit()
{
close();
if ( !singleProjectMode() )
- qApp->closeAllWindows();
+ tqApp->closeAllWindows();
}
void MainWindow::fileClose()
@@ -1531,7 +1531,7 @@ void MainWindow::editCopy()
return;
}
if ( formWindow() )
- qApp->clipboard()->setText( formWindow()->copy() );
+ tqApp->clipboard()->setText( formWindow()->copy() );
}
void MainWindow::editPaste()
@@ -1555,7 +1555,7 @@ void MainWindow::editPaste()
}
if ( w && WidgetFactory::layoutType( w ) == WidgetFactory::NoLayout ) {
- formWindow()->paste( qApp->clipboard()->text(), WidgetFactory::containerOfWidget( w ) );
+ formWindow()->paste( tqApp->clipboard()->text(), WidgetFactory::containerOfWidget( w ) );
hierarchyView->widgetInserted( 0 );
formWindow()->commandHistory()->setModified( TRUE );
} else {
@@ -2048,8 +2048,8 @@ void MainWindow::showStartDialog()
{
if ( singleProjectMode() )
return;
- for ( int i = 1; i < qApp->argc(); ++i ) {
- TQString arg = qApp->argv()[i];
+ for ( int i = 1; i < tqApp->argc(); ++i ) {
+ TQString arg = tqApp->argv()[i];
if ( arg[0] != '-' )
return;
}
diff --git a/tools/designer/designer/menubareditor.cpp b/tools/designer/designer/menubareditor.cpp
index 6687eddb..2667519f 100644
--- a/tools/designer/designer/menubareditor.cpp
+++ b/tools/designer/designer/menubareditor.cpp
@@ -822,7 +822,7 @@ void MenuBarEditor::keyPressEvent( TQKeyEvent * e )
void MenuBarEditor::focusOutEvent( TQFocusEvent * e )
{
- TQWidget * fw = qApp->focusWidget();
+ TQWidget * fw = tqApp->focusWidget();
if ( e->lostFocus() && !::qt_cast<PopupMenuEditor*>(fw) )
hideItem();
update();
diff --git a/tools/designer/designer/multilineeditorimpl.cpp b/tools/designer/designer/multilineeditorimpl.cpp
index d257d163..b7ccc67a 100644
--- a/tools/designer/designer/multilineeditorimpl.cpp
+++ b/tools/designer/designer/multilineeditorimpl.cpp
@@ -265,7 +265,7 @@ int MultiLineEditor::exec()
{
res = 1;
show();
- qApp->enter_loop();
+ tqApp->enter_loop();
return res;
}
@@ -315,7 +315,7 @@ void MultiLineEditor::cancelClicked()
void MultiLineEditor::closeEvent( TQCloseEvent *e )
{
- qApp->exit_loop();
+ tqApp->exit_loop();
MultiLineEditorBase::closeEvent( e );
}
diff --git a/tools/designer/designer/outputwindow.cpp b/tools/designer/designer/outputwindow.cpp
index 5a4479b9..e54dc9de 100644
--- a/tools/designer/designer/outputwindow.cpp
+++ b/tools/designer/designer/outputwindow.cpp
@@ -114,7 +114,7 @@ static void debugMessageOutput( TQtMsgType type, const char *msg )
abort();
}
- qApp->flush();
+ tqApp->flush();
}
void OutputWindow::setupDebug()
diff --git a/tools/designer/designer/pixmapchooser.cpp b/tools/designer/designer/pixmapchooser.cpp
index 4693013b..de90f369 100644
--- a/tools/designer/designer/pixmapchooser.cpp
+++ b/tools/designer/designer/pixmapchooser.cpp
@@ -89,7 +89,7 @@ void PixmapView::previewUrl( const TQUrl &u )
static void buildImageFormatList( TQString &filter, TQString &all )
{
- all = qApp->translate( "qChoosePixmap", "All Pixmaps (" );
+ all = tqApp->translate( "qChoosePixmap", "All Pixmaps (" );
for ( uint i = 0; i < TQImageIO::outputFormats().count(); i++ ) {
TQString outputFormat = TQImageIO::outputFormats().at( i );
TQString outputExtension;
@@ -97,12 +97,12 @@ static void buildImageFormatList( TQString &filter, TQString &all )
outputExtension = outputFormat.lower();
else
outputExtension = "jpg;*.jpeg";
- filter += qApp->translate( "qChoosePixmap", "%1-Pixmaps (%2)\n" ).
+ filter += tqApp->translate( "qChoosePixmap", "%1-Pixmaps (%2)\n" ).
arg( outputFormat ).arg( "*." + outputExtension);
all += "*." + outputExtension + ";";
}
- filter.prepend( all + qApp->translate( "qChoosePixmap", ")\n" ) );
- filter += qApp->translate( "qChoosePixmap", "All Files (*)" );
+ filter.prepend( all + tqApp->translate( "qChoosePixmap", ")\n" ) );
+ filter += tqApp->translate( "qChoosePixmap", "All Files (*)" );
}
TQStringList qChoosePixmaps( TQWidget *parent )
@@ -121,7 +121,7 @@ TQStringList qChoosePixmaps( TQWidget *parent )
fd.setContentsPreview( pw, pw );
fd.setViewMode( TQFileDialog::List );
fd.setPreviewMode( TQFileDialog::Contents );
- fd.setCaption( qApp->translate( "qChoosePixmap", "Choose Images..." ) );
+ fd.setCaption( tqApp->translate( "qChoosePixmap", "Choose Images..." ) );
if ( fd.exec() == TQDialog::Accepted )
return fd.selectedFiles();
return TQStringList();
@@ -144,7 +144,7 @@ TQPixmap qChoosePixmap( TQWidget *parent, FormWindow *fw, const TQPixmap &old, T
fd.setContentsPreview( pw, pw );
fd.setViewMode( TQFileDialog::List );
fd.setPreviewMode( TQFileDialog::Contents );
- fd.setCaption( qApp->translate( "qChoosePixmap", "Choose a Pixmap..." ) );
+ fd.setCaption( tqApp->translate( "qChoosePixmap", "Choose a Pixmap..." ) );
if ( fd.exec() == TQDialog::Accepted ) {
TQPixmap pix( fd.selectedFile() );
if ( fn )
diff --git a/tools/designer/designer/popupmenueditor.cpp b/tools/designer/designer/popupmenueditor.cpp
index af5a5959..355a6549 100644
--- a/tools/designer/designer/popupmenueditor.cpp
+++ b/tools/designer/designer/popupmenueditor.cpp
@@ -1011,7 +1011,7 @@ void PopupMenuEditor::focusInEvent( TQFocusEvent * )
void PopupMenuEditor::focusOutEvent( TQFocusEvent * )
{
- TQWidget * fw = qApp->focusWidget();
+ TQWidget * fw = tqApp->focusWidget();
if ( !fw || ( !::qt_cast<PopupMenuEditor*>(fw) && fw != lineEdit ) ) {
hideSubMenu();
if ( fw && ::qt_cast<MenuBarEditor*>(fw) )
diff --git a/tools/designer/designer/project.cpp b/tools/designer/designer/project.cpp
index 862dd174..2d5dc2dd 100644
--- a/tools/designer/designer/project.cpp
+++ b/tools/designer/designer/project.cpp
@@ -1594,5 +1594,5 @@ TQString Project::locationOfObject( TQObject *o )
bool Project::hasGUI() const
{
- return qApp->type() != TQApplication::Tty;
+ return tqApp->type() != TQApplication::Tty;
}
diff --git a/tools/designer/designer/propertyeditor.cpp b/tools/designer/designer/propertyeditor.cpp
index efbe42b9..af0db8e3 100644
--- a/tools/designer/designer/propertyeditor.cpp
+++ b/tools/designer/designer/propertyeditor.cpp
@@ -333,14 +333,14 @@ void PropertyItem::setOpen( bool b )
children.setAutoDelete( TRUE );
children.clear();
children.setAutoDelete( FALSE );
- qApp->processEvents();
+ tqApp->processEvents();
listview->updateEditorSize();
return;
}
createChildren();
initChildren();
- qApp->processEvents();
+ tqApp->processEvents();
listview->updateEditorSize();
}
@@ -552,10 +552,10 @@ TQString PropertyItem::currentItemFromObject() const
void PropertyItem::setFocus( TQWidget *w )
{
- if ( !qApp->focusWidget() ||
+ if ( !tqApp->focusWidget() ||
listview->propertyEditor()->formWindow() &&
- ( !MainWindow::self->isAFormWindowChild( qApp->focusWidget() ) &&
- !qApp->focusWidget()->inherits( "Editor" ) ) )
+ ( !MainWindow::self->isAFormWindowChild( tqApp->focusWidget() ) &&
+ !tqApp->focusWidget()->inherits( "Editor" ) ) )
w->setFocus();
}
@@ -2560,7 +2560,7 @@ void PropertyKeysequenceItem::setValue()
PropertyItem::setValue( v );
if (sequence->hasFocus()
// if the user wants to use F1 as accelerator, Designer will pop up a TQWhatsThat widget
- || (qApp->focusWidget() && qApp->focusWidget()->inherits("TQWhatsThat")))
+ || (tqApp->focusWidget() && tqApp->focusWidget()->inherits("TQWhatsThat")))
notifyValueChange();
setChanged( TRUE );
}
@@ -3314,7 +3314,7 @@ void PropertyList::setupProperties()
sort();
setSorting( -1 );
setCurrentItem( firstChild() );
- qApp->processEvents();
+ tqApp->processEvents();
}
updateEditorSize();
diff --git a/tools/designer/designer/resource.cpp b/tools/designer/designer/resource.cpp
index 4f6c997d..96720dc4 100644
--- a/tools/designer/designer/resource.cpp
+++ b/tools/designer/designer/resource.cpp
@@ -1637,7 +1637,7 @@ void Resource::saveProperty( TQObject *w, const TQString &name, const TQVariant
case TQVariant::Font: {
TQVariant v( value );
ts << makeIndent( indent ) << "<font>" << endl;
- TQFont f( qApp->font() );
+ TQFont f( tqApp->font() );
if ( w && w->isWidgetType() && ((TQWidget*)w)->parentWidget() )
f = ((TQWidget*)w)->parentWidget()->font();
TQFont f2( v.toFont() );
@@ -2188,7 +2188,7 @@ void Resource::setObjectProperty( TQObject* obj, const TQString &prop, const TQD
TQVariant defVarient;
if ( e.tagName() == "font" ) {
- TQFont f( qApp->font() );
+ TQFont f( tqApp->font() );
if ( obj->isWidgetType() && ( (TQWidget*)obj )->parentWidget() )
f = ( (TQWidget*)obj )->parentWidget()->font();
defVarient = TQVariant( f );
diff --git a/tools/designer/designer/syntaxhighlighter_html.cpp b/tools/designer/designer/syntaxhighlighter_html.cpp
index 629941d7..c41c8bac 100644
--- a/tools/designer/designer/syntaxhighlighter_html.cpp
+++ b/tools/designer/designer/syntaxhighlighter_html.cpp
@@ -41,12 +41,12 @@
SyntaxHighlighter_HTML::SyntaxHighlighter_HTML()
: TQTextPreProcessor(), lastFormat( 0 ), lastFormatId( -1 )
{
- TQFont f( qApp->font() );
+ TQFont f( tqApp->font() );
- addFormat(Standard, new TQTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::Text)));
- addFormat(Keyword, new TQTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::Dark)));
- addFormat(Attribute, new TQTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::Link)));
- addFormat(AttribValue, new TQTextFormat(f, qApp->palette().color(TQPalette::Active, TQColorGroup::LinkVisited)));
+ addFormat(Standard, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::Text)));
+ addFormat(Keyword, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::Dark)));
+ addFormat(Attribute, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::Link)));
+ addFormat(AttribValue, new TQTextFormat(f, tqApp->palette().color(TQPalette::Active, TQColorGroup::LinkVisited)));
}
SyntaxHighlighter_HTML::~SyntaxHighlighter_HTML()
diff --git a/tools/designer/editor/conf.cpp b/tools/designer/editor/conf.cpp
index 336f4471..bff12867 100644
--- a/tools/designer/editor/conf.cpp
+++ b/tools/designer/editor/conf.cpp
@@ -41,10 +41,10 @@ TQMap<TQString, ConfigStyle> Config::defaultStyles()
{
ConfigStyle s;
TQMap<TQString, ConfigStyle> styles;
- int normalSize = qApp->font().pointSize();
- TQString normalFamily = qApp->font().family();
+ int normalSize = tqApp->font().pointSize();
+ TQString normalFamily = tqApp->font().family();
TQString commentFamily = "times";
- int normalWeight = qApp->font().weight();
+ int normalWeight = tqApp->font().weight();
s.font = TQFont( normalFamily, normalSize, normalWeight );
s.color = TQt::black;
diff --git a/tools/designer/examples/addressbook/addressbook.ui.h b/tools/designer/examples/addressbook/addressbook.ui.h
index 9b1d5460..a86d2844 100644
--- a/tools/designer/examples/addressbook/addressbook.ui.h
+++ b/tools/designer/examples/addressbook/addressbook.ui.h
@@ -112,7 +112,7 @@ void AddressBook::fileSaveAs()
void AddressBook::fileExit()
{
- qApp->exit();
+ tqApp->exit();
}
void AddressBook::editFind()
diff --git a/tools/designer/examples/multiclip/multiclip.ui.h b/tools/designer/examples/multiclip/multiclip.ui.h
index a2b0b0cf..a4287fa4 100644
--- a/tools/designer/examples/multiclip/multiclip.ui.h
+++ b/tools/designer/examples/multiclip/multiclip.ui.h
@@ -35,7 +35,7 @@ void MulticlipForm::init()
lengthLCDNumber->setBackgroundColor( darkBlue );
currentLineEdit->setFocus();
- cb = qApp->clipboard();
+ cb = tqApp->clipboard();
connect( cb, SIGNAL( dataChanged() ), SLOT( dataChanged() ) );
if ( cb->supportsSelection() )
connect( cb, SIGNAL( selectionChanged() ), SLOT( selectionChanged() ) );
diff --git a/tools/designer/examples/richedit/richedit.ui.h b/tools/designer/examples/richedit/richedit.ui.h
index e6acad87..02f7b1ef 100644
--- a/tools/designer/examples/richedit/richedit.ui.h
+++ b/tools/designer/examples/richedit/richedit.ui.h
@@ -17,7 +17,7 @@ void EditorForm::init()
void EditorForm::fileExit()
{
if ( saveAndContinue( "Exit" ) )
- qApp->exit();
+ tqApp->exit();
}
void EditorForm::fileNew()
diff --git a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
index ce30936c..7607cf73 100644
--- a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
+++ b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
@@ -134,7 +134,7 @@ static TQMap<int, TQMap<TQString, int > > *wordMap = 0;
SyntaxHighlighter_CPP::SyntaxHighlighter_CPP()
: TQTextPreProcessor(), lastFormat( 0 ), lastFormatId( -1 )
{
- TQFont f( qApp->font() );
+ TQFont f( tqApp->font() );
addFormat( Standard, new TQTextFormat( f, TQt::black ) );
addFormat( Number, new TQTextFormat( f, TQt::darkBlue ) );
diff --git a/tools/designer/plugins/glade/glade2ui.cpp b/tools/designer/plugins/glade/glade2ui.cpp
index 626b3093..f886a259 100644
--- a/tools/designer/plugins/glade/glade2ui.cpp
+++ b/tools/designer/plugins/glade/glade2ui.cpp
@@ -2192,7 +2192,7 @@ TQStringList Glade2Ui::convertGladeFile( const TQString& fileName )
yyOut = TQString::null;
widgetNo++;
- qApp->processEvents();
+ tqApp->processEvents();
if ( fremskritt.wasCancelled() )
break;
fremskritt.setProgress( widgetNo );
diff --git a/tools/designer/plugins/wizards/main.cpp b/tools/designer/plugins/wizards/main.cpp
index b3400acc..5060ec7e 100644
--- a/tools/designer/plugins/wizards/main.cpp
+++ b/tools/designer/plugins/wizards/main.cpp
@@ -106,12 +106,12 @@ void StandardTemplateWizardInterface::setup( const TQString &templ, TQWidget *wi
templ == "TQDataView" ||
templ == "TQDataBrowser" ||
templ == "TQDataTable" ) {
- SqlFormWizard wizard( aIface, widget, qApp->mainWidget(), fw, 0, TRUE );
+ SqlFormWizard wizard( aIface, widget, tqApp->mainWidget(), fw, 0, TRUE );
wizard.exec();
}
#endif
if ( templ == "TQMainWindow" ) {
- MainWindowWizardBase wizard( qApp->mainWidget(), 0, TRUE );
+ MainWindowWizardBase wizard( tqApp->mainWidget(), 0, TRUE );
wizard.setAppInterface( aIface, fw, widget );
wizard.exec();
}
diff --git a/tools/designer/shared/globaldefs.h b/tools/designer/shared/globaldefs.h
index 4f4c2cb2..f093e0a3 100644
--- a/tools/designer/shared/globaldefs.h
+++ b/tools/designer/shared/globaldefs.h
@@ -51,7 +51,7 @@ static void init_colors()
return;
#if 0 // a calculated alternative for backColor1
- TQColorGroup myCg = qApp->palette().active();
+ TQColorGroup myCg = tqApp->palette().active();
int h1, s1, v1;
int h2, s2, v2;
myCg.color( TQColorGroup::Base ).hsv( &h1, &s1, &v1 );
diff --git a/tools/designer/uilib/qwidgetfactory.cpp b/tools/designer/uilib/qwidgetfactory.cpp
index cbf49cc4..9cd0ad75 100644
--- a/tools/designer/uilib/qwidgetfactory.cpp
+++ b/tools/designer/uilib/qwidgetfactory.cpp
@@ -296,7 +296,7 @@ TQWidget *TQWidgetFactory::create( const TQString &uiFile, TQObject *connector,
bool failed = FALSE;
if ( !f.open( IO_ReadOnly ) )
failed = TRUE;
- if ( failed && qApp->type() == TQApplication::Tty ) {
+ if ( failed && tqApp->type() == TQApplication::Tty ) {
// for TQSA: If we have no GUI, we have no form definition
// files, but just the code. So try if only the code exists.
f.setName( uiFile + ".qs" );
@@ -331,7 +331,7 @@ TQWidget *TQWidgetFactory::create( TQIODevice *dev, TQObject *connector, TQWidge
widgetFactory->toplevel = 0;
// If we have no GUI, we only want to load the code
- if ( qApp->type() != TQApplication::Tty ) {
+ if ( tqApp->type() != TQApplication::Tty ) {
TQIODevice::Offset start = dev->at();
Q_UINT32 magic;
TQDataStream in( dev );
@@ -2612,12 +2612,12 @@ void TQWidgetFactory::loadExtraSource()
TQString TQWidgetFactory::translate( const TQString& sourceText, const TQString& comment )
{
- return qApp->translate( d->translationContext, sourceText.utf8(), comment.utf8(),
+ return tqApp->translate( d->translationContext, sourceText.utf8(), comment.utf8(),
TQApplication::UnicodeUTF8 );
}
TQString TQWidgetFactory::translate( const char *sourceText, const char *comment )
{
- return qApp->translate( d->translationContext, sourceText, comment,
+ return tqApp->translate( d->translationContext, sourceText, comment,
TQApplication::UnicodeUTF8 );
}
diff --git a/tools/linguist/book/linguist-programmer.leaf b/tools/linguist/book/linguist-programmer.leaf
index 771fff59..7074d59f 100644
--- a/tools/linguist/book/linguist-programmer.leaf
+++ b/tools/linguist/book/linguist-programmer.leaf
@@ -253,7 +253,7 @@ QApplication::translate() function directly:
void same_global_function( LoginWidget *logwid )
{
QLabel *label = new QLabel(
- qApp->translate("LoginWidget", "Password:"),
+ tqApp->translate("LoginWidget", "Password:"),
logwid );
}
\endcode
@@ -291,7 +291,7 @@ Example of QT_TRANSLATE_NOOP():
QString global_greeting( int greet_type )
{
- return qApp->translate( "FriendlyConversation",
+ return tqApp->translate( "FriendlyConversation",
greeting_strings[greet_type] );
}
\endcode
@@ -597,7 +597,7 @@ The \c TQ_OBJECT macro defines \c tr(x) in \c ArrowPad like this
\index translate()!QApplication
\code
- qApp->translate( "ArrowPad", x )
+ tqApp->translate( "ArrowPad", x )
\endcode
Knowing which class each source text appears in enables \e {Qt
diff --git a/tools/linguist/linguist/msgedit.cpp b/tools/linguist/linguist/msgedit.cpp
index 21d54af8..86c3b55d 100644
--- a/tools/linguist/linguist/msgedit.cpp
+++ b/tools/linguist/linguist/msgedit.cpp
@@ -515,7 +515,7 @@ MessageEditor::MessageEditor( MetaTranslator * t, TQWidget * parent,
this, SIGNAL(cutAvailable(bool)) );
connect( editorPage->translationMed, SIGNAL(copyAvailable(bool)),
this, SIGNAL(copyAvailable(bool)) );
- connect( qApp->clipboard(), SIGNAL(dataChanged()),
+ connect( tqApp->clipboard(), SIGNAL(dataChanged()),
this, SLOT(updateCanPaste()) );
connect( phraseLv, SIGNAL(doubleClicked(TQListViewItem *)),
this, SLOT(insertPhraseInTranslation(TQListViewItem *)) );
@@ -814,7 +814,7 @@ void MessageEditor::updateCanPaste()
{
bool oldCanPaste = canPaste;
canPaste = ( !editorPage->translationMed->isReadOnly() &&
- !qApp->clipboard()->text().isNull() );
+ !tqApp->clipboard()->text().isNull() );
if ( canPaste != oldCanPaste )
emit pasteAvailable( canPaste );
}
diff --git a/tools/linguist/linguist/phrase.cpp b/tools/linguist/linguist/phrase.cpp
index 945d4150..0a93e89b 100644
--- a/tools/linguist/linguist/phrase.cpp
+++ b/tools/linguist/linguist/phrase.cpp
@@ -130,7 +130,7 @@ bool QphHandler::fatalError( const TQXmlParseException& exception )
msg.sprintf( "Parse error at line %d, column %d (%s).",
exception.lineNumber(), exception.columnNumber(),
exception.message().latin1() );
- TQMessageBox::information( qApp->mainWidget(),
+ TQMessageBox::information( tqApp->mainWidget(),
TQObject::tr("TQt Linguist"), msg );
}
return FALSE;
diff --git a/tools/linguist/linguist/trwindow.cpp b/tools/linguist/linguist/trwindow.cpp
index d044ca69..eaa339d6 100644
--- a/tools/linguist/linguist/trwindow.cpp
+++ b/tools/linguist/linguist/trwindow.cpp
@@ -329,7 +329,7 @@ TrWindow::TrWindow()
"are marked with a warning.") );
showNewCurrent( 0 );
- TQSize as( qApp->desktop()->size() );
+ TQSize as( tqApp->desktop()->size() );
as -= TQSize( 30, 30 );
resize( TQSize( 1000, 800 ).boundedTo( as ) );
readConfig();
@@ -349,7 +349,7 @@ void TrWindow::openFile( const TQString& name )
{
if ( !name.isEmpty() ) {
statusBar()->message( tr("Loading...") );
- qApp->processEvents();
+ tqApp->processEvents();
tor.clear();
if ( tor.load(name) ) {
slv->clear();
@@ -376,7 +376,7 @@ void TrWindow::openFile( const TQString& name )
srcChars = 0;
srcCharsSpc = 0;
for ( it = all.begin(); it != all.end(); ++it ) {
- qApp->processEvents();
+ tqApp->processEvents();
ContextLVI *c = contexts.find( TQString((*it).context()) );
if ( c == 0 ) {
c = new ContextLVI( lv, tor.toUnicode((*it).context(),
@@ -682,7 +682,7 @@ void TrWindow::findAgain()
slv->setUpdatesEnabled( TRUE );
slv->triggerUpdate();
- qApp->beep();
+ tqApp->beep();
TQMessageBox::warning( this, tr("TQt Linguist"),
TQString( tr("Cannot find the string '%1'.") ).arg(findText) );
foundItem = 0;
@@ -1038,7 +1038,7 @@ void TrWindow::updateFinished( bool finished )
danger(m->sourceText(), m->translation(),
!oldDanger) );
if ( !oldDanger && m->danger() )
- qApp->beep();
+ tqApp->beep();
tor.insert( m->message() );
if ( !dirty ) {
dirty = TRUE;
@@ -1066,7 +1066,7 @@ void TrWindow::doneAndNext()
dirty = TRUE;
updateCaption();
}
- qApp->beep();
+ tqApp->beep();
}
updateStatistics();
}
@@ -1090,7 +1090,7 @@ void TrWindow::toggleFinished( TQListViewItem *item, const TQPoint& /* p */,
m->setDanger( danger(m->sourceText(), m->translation(),
!oldDanger) );
if ( !oldDanger && m->danger() )
- qApp->beep();
+ tqApp->beep();
tor.insert( m->message() );
if ( !dirty ) {
dirty = TRUE;
@@ -1115,7 +1115,7 @@ void TrWindow::nextUnfinished()
if( (cItem == 0) && !(cItem = lv->firstChild()) ) {
statusBar()->message( tr("No phrase to translate."),
MessageMS );
- qApp->beep();
+ tqApp->beep();
return;
} else {
showNewScope( cItem );
@@ -1130,7 +1130,7 @@ void TrWindow::nextUnfinished()
} else {
statusBar()->message( tr("No phrase to translate."),
MessageMS );
- qApp->beep();
+ tqApp->beep();
return;
}
}
@@ -1182,7 +1182,7 @@ void TrWindow::nextUnfinished()
// If no Unfinished message is left, the user has finished the job. We
// congratulate on a job well done with this ringing bell.
statusBar()->message( tr("No untranslated phrases left."), MessageMS );
- qApp->beep();
+ tqApp->beep();
}
static TQListViewItem * lastChild( TQListView * view )
@@ -1214,7 +1214,7 @@ void TrWindow::prevUnfinished()
if( (cItem == 0) && !(cItem = lv->firstChild()) ) {
statusBar()->message( tr("No phrase to translate."),
MessageMS );
- qApp->beep();
+ tqApp->beep();
return;
} else {
showNewScope( cItem );
@@ -1229,7 +1229,7 @@ void TrWindow::prevUnfinished()
} else {
statusBar()->message( tr("No phrase to translate."),
MessageMS );
- qApp->beep();
+ tqApp->beep();
return;
}
}
@@ -1275,7 +1275,7 @@ void TrWindow::prevUnfinished()
} while ( q != 0 );
}
statusBar()->message( tr("No untranslated phrases left."), MessageMS );
- qApp->beep();
+ tqApp->beep();
}
void TrWindow::prev()
diff --git a/tools/linguist/shared/metatranslator.cpp b/tools/linguist/shared/metatranslator.cpp
index 5da969d8..3ea91f2c 100644
--- a/tools/linguist/shared/metatranslator.cpp
+++ b/tools/linguist/shared/metatranslator.cpp
@@ -192,10 +192,10 @@ bool TsHandler::fatalError( const TQXmlParseException& exception )
msg.sprintf( "Parse error at line %d, column %d (%s).",
exception.lineNumber(), exception.columnNumber(),
exception.message().latin1() );
- if ( qApp == 0 )
+ if ( tqApp == 0 )
fprintf( stderr, "XML error: %s\n", msg.latin1() );
else
- TQMessageBox::information( qApp->mainWidget(),
+ TQMessageBox::information( tqApp->mainWidget(),
TQObject::tr("TQt Linguist"), msg );
}
return FALSE;
diff --git a/tools/linguist/tutorial/tt2/mainwindow.cpp b/tools/linguist/tutorial/tt2/mainwindow.cpp
index 6a9808de..b2951f6e 100644
--- a/tools/linguist/tutorial/tt2/mainwindow.cpp
+++ b/tools/linguist/tutorial/tt2/mainwindow.cpp
@@ -19,7 +19,7 @@ MainWindow::MainWindow( TQWidget *parent, const char *name )
setCentralWidget( ap );
TQPopupMenu *file = new TQPopupMenu( this );
- file->insertItem( tr("E&xit"), qApp, SLOT(quit()),
+ file->insertItem( tr("E&xit"), tqApp, SLOT(quit()),
tr("Ctrl+Q", "Quit") );
menuBar()->insertItem( tr("&File"), file );
menuBar()->setSeparator( TQMenuBar::InWindowsStyle );
diff --git a/tools/linguist/tutorial/tt3/mainwindow.cpp b/tools/linguist/tutorial/tt3/mainwindow.cpp
index 86d2e007..efaaac93 100644
--- a/tools/linguist/tutorial/tt3/mainwindow.cpp
+++ b/tools/linguist/tutorial/tt3/mainwindow.cpp
@@ -22,7 +22,7 @@ MainWindow::MainWindow( TQWidget *parent, const char *name )
setCentralWidget( pp );
TQPopupMenu *file = new TQPopupMenu( this );
- file->insertItem( tr("E&xit"), qApp, SLOT(quit()),
+ file->insertItem( tr("E&xit"), tqApp, SLOT(quit()),
tr("Ctrl+Q", "Quit") );
TQPopupMenu *help = new TQPopupMenu( this );
help->insertItem( tr("&About"), this, SLOT(about()), Key_F1 );
diff --git a/tools/makeqpf/main.cpp b/tools/makeqpf/main.cpp
index 5d9bb185..8abd2162 100644
--- a/tools/makeqpf/main.cpp
+++ b/tools/makeqpf/main.cpp
@@ -198,7 +198,7 @@ public:
TQListViewItem* c = view->firstChild();
while ( c ) {
renderAndSave(c);
- qApp->processEvents();
+ tqApp->processEvents();
c = c->nextSibling();
}
}
diff --git a/tools/qconfig/main.cpp b/tools/qconfig/main.cpp
index f0b6772f..dcfcfde6 100644
--- a/tools/qconfig/main.cpp
+++ b/tools/qconfig/main.cpp
@@ -306,7 +306,7 @@ Main::Main()
file->insertSeparator();
file->insertItem( "&Test all", this, SLOT(testAll()), CTRL+Key_T );
file->insertSeparator();
- file->insertItem( "E&xit", qApp, SLOT(quit()), CTRL+Key_Q );
+ file->insertItem( "E&xit", tqApp, SLOT(quit()), CTRL+Key_Q );
menuBar()->insertItem( "&File",file );
diff --git a/tools/qtconfig/colorbutton.cpp b/tools/qtconfig/colorbutton.cpp
index 2ed4e238..94804377 100644
--- a/tools/qtconfig/colorbutton.cpp
+++ b/tools/qtconfig/colorbutton.cpp
@@ -67,7 +67,7 @@ void ColorButton::setColor(const TQColor &c)
void ColorButton::changeColor()
{
- TQColor c = TQColorDialog::getColor(col, qApp->activeWindow());
+ TQColor c = TQColorDialog::getColor(col, tqApp->activeWindow());
if (c.isValid()) {
setColor(c);
diff --git a/tools/qtconfig/mainwindow.cpp b/tools/qtconfig/mainwindow.cpp
index bf399bd4..0d3cd74d 100644
--- a/tools/qtconfig/mainwindow.cpp
+++ b/tools/qtconfig/mainwindow.cpp
@@ -572,7 +572,7 @@ void MainWindow::fileSave()
void MainWindow::fileExit()
{
- qApp->closeAllWindows();
+ tqApp->closeAllWindows();
}
@@ -1123,7 +1123,7 @@ void MainWindow::closeEvent(TQCloseEvent *e)
tr("Save changes to settings?"),
tr("&Yes"), tr("&No"), tr("&Cancel"), 0, 2)) {
case 0: // save
- qApp->processEvents();
+ tqApp->processEvents();
fileSave();
// fall through intended
diff --git a/tools/qvfb/qanimationwriter.cpp b/tools/qvfb/qanimationwriter.cpp
index 76dc9464..8a3c32cc 100644
--- a/tools/qvfb/qanimationwriter.cpp
+++ b/tools/qvfb/qanimationwriter.cpp
@@ -371,7 +371,7 @@ void TQAnimationWriter::appendFrame(const TQImage& frm, const TQPoint& offset)
if ( i == alignx ) {
// All the same
for (i=0; i<alignx; i++) {
- ld[x+i] = qRgba(0,0,0,0);
+ ld[x+i] = tqRgba(0,0,0,0);
}
} else {
// Some different
@@ -385,7 +385,7 @@ void TQAnimationWriter::appendFrame(const TQImage& frm, const TQPoint& offset)
if ( li[x] != lp[x] )
ld[x] = 0xff000000 | li[x];
else
- ld[x] = qRgba(0,0,0,0);
+ ld[x] = tqRgba(0,0,0,0);
}
}
}
diff --git a/tools/qvfb/qvfb.cpp b/tools/qvfb/qvfb.cpp
index 5ba0ea87..91f4d705 100644
--- a/tools/qvfb/qvfb.cpp
+++ b/tools/qvfb/qvfb.cpp
@@ -135,7 +135,7 @@ void TQVFb::createMenu(TQMenuData *menu)
file->insertItem( "&Save image...", this, SLOT(saveImage()), ALT+CTRL+Key_S );
file->insertItem( "&Animation...", this, SLOT(toggleAnimation()), ALT+CTRL+Key_A );
file->insertSeparator();
- file->insertItem( "&Quit", qApp, SLOT(quit()) );
+ file->insertItem( "&Quit", tqApp, SLOT(quit()) );
menu->insertItem( "&File", file );
diff --git a/tools/qvfb/qvfbview.cpp b/tools/qvfb/qvfbview.cpp
index 08566fd9..1532fe36 100644
--- a/tools/qvfb/qvfbview.cpp
+++ b/tools/qvfb/qvfbview.cpp
@@ -214,7 +214,7 @@ void TQVFbView::setGamma(double gr, double gg, double gb)
if ( r > 255 ) r = 255;
if ( g > 255 ) g = 255;
if ( b > 255 ) b = 255;
- gammatable[i] = qRgb(r,g,b);
+ gammatable[i] = tqRgb(r,g,b);
//qDebug("%d: %d,%d,%d",i,r,g,b);
}
@@ -225,9 +225,9 @@ void TQVFbView::getGamma(int i, TQRgb& rgb)
{
if ( i > 255 ) i = 255;
if ( i < 0 ) i = 0;
- rgb = qRgb(qRed(gammatable[i*rmax/255]),
- qGreen(gammatable[i*rmax/255]),
- qBlue(gammatable[i*rmax/255]));
+ rgb = tqRgb(tqRed(gammatable[i*rmax/255]),
+ tqGreen(gammatable[i*rmax/255]),
+ tqBlue(gammatable[i*rmax/255]));
}
int TQVFbView::displayId() const
@@ -257,7 +257,7 @@ void TQVFbView::setZoom( double z )
setDirty(TQRect(0,0,hdr->width,hdr->height));
resizeContents( int(hdr->width*z), int(hdr->height*z) );
updateGeometry();
- qApp->sendPostedEvents();
+ tqApp->sendPostedEvents();
topLevelWidget()->adjustSize();
drawScreen();
}
@@ -398,10 +398,10 @@ TQImage TQVFbView::getBuffer( const TQRect &r, int &leading ) const
ushort s = *sptr++;
#ifdef QT_QWS_REVERSE_BYTE_ENDIANNESS
ushort s2 = *sptr++;
- *dptr++ = qRgb(qRed(gammatable[(s2>>rsh)&rmax]),qGreen(gammatable[(s2>>gsh)&gmax]),qBlue(gammatable[(s2>>bsh)&bmax]));
+ *dptr++ = tqRgb(tqRed(gammatable[(s2>>rsh)&rmax]),tqGreen(gammatable[(s2>>gsh)&gmax]),tqBlue(gammatable[(s2>>bsh)&bmax]));
#endif
- *dptr++ = qRgb(qRed(gammatable[(s>>rsh)&rmax]),qGreen(gammatable[(s>>gsh)&gmax]),qBlue(gammatable[(s>>bsh)&bmax]));
- //*dptr++ = qRgb(((s>>rsh)&rmax)*255/rmax,((s>>gsh)&gmax)*255/gmax,((s>>bsh)&bmax)*255/bmax);
+ *dptr++ = tqRgb(tqRed(gammatable[(s>>rsh)&rmax]),tqGreen(gammatable[(s>>gsh)&gmax]),tqBlue(gammatable[(s>>bsh)&bmax]));
+ //*dptr++ = tqRgb(((s>>rsh)&rmax)*255/rmax,((s>>gsh)&gmax)*255/gmax,((s>>bsh)&bmax)*255/bmax);
}
}
leading = 0;
diff --git a/tutorial/t10/main.cpp b/tutorial/t10/main.cpp
index af106d2f..7b14dc14 100644
--- a/tutorial/t10/main.cpp
+++ b/tutorial/t10/main.cpp
@@ -27,7 +27,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle->setRange( 5, 70 );
diff --git a/tutorial/t11/main.cpp b/tutorial/t11/main.cpp
index 7a8e5798..4ddd2938 100644
--- a/tutorial/t11/main.cpp
+++ b/tutorial/t11/main.cpp
@@ -27,7 +27,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle->setRange( 5, 70 );
diff --git a/tutorial/t12/main.cpp b/tutorial/t12/main.cpp
index 2fd1c3d0..5401d997 100644
--- a/tutorial/t12/main.cpp
+++ b/tutorial/t12/main.cpp
@@ -27,7 +27,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle->setRange( 5, 70 );
diff --git a/tutorial/t13/gamebrd.cpp b/tutorial/t13/gamebrd.cpp
index fdb29d10..a8ee16c5 100644
--- a/tutorial/t13/gamebrd.cpp
+++ b/tutorial/t13/gamebrd.cpp
@@ -22,7 +22,7 @@ GameBoard::GameBoard( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle->setRange( 5, 70 );
diff --git a/tutorial/t14/gamebrd.cpp b/tutorial/t14/gamebrd.cpp
index bf6ddf1b..2aebec56 100644
--- a/tutorial/t14/gamebrd.cpp
+++ b/tutorial/t14/gamebrd.cpp
@@ -24,7 +24,7 @@ GameBoard::GameBoard( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle->setRange( 5, 70 );
@@ -78,7 +78,7 @@ GameBoard::GameBoard( TQWidget *parent, const char *name )
accel->connectItem( accel->insertItem( Key_Return ),
this, SLOT(fire()) );
accel->connectItem( accel->insertItem( CTRL+Key_Q ),
- qApp, SLOT(quit()) );
+ tqApp, SLOT(quit()) );
TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 );
grid->addWidget( quit, 0, 0 );
diff --git a/tutorial/t4/main.cpp b/tutorial/t4/main.cpp
index 6495263f..e72550b9 100644
--- a/tutorial/t4/main.cpp
+++ b/tutorial/t4/main.cpp
@@ -26,7 +26,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
quit->setGeometry( 62, 40, 75, 30 );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
}
diff --git a/tutorial/t5/main.cpp b/tutorial/t5/main.cpp
index 23b777e7..cbc5c00a 100644
--- a/tutorial/t5/main.cpp
+++ b/tutorial/t5/main.cpp
@@ -25,7 +25,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
TQLCDNumber *lcd = new TQLCDNumber( 2, this, "lcd" );
diff --git a/tutorial/t6/main.cpp b/tutorial/t6/main.cpp
index fdea55c5..75d1440e 100644
--- a/tutorial/t6/main.cpp
+++ b/tutorial/t6/main.cpp
@@ -41,7 +41,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
TQGrid *grid = new TQGrid( 4, this );
diff --git a/tutorial/t7/main.cpp b/tutorial/t7/main.cpp
index 985f28d0..773e9111 100644
--- a/tutorial/t7/main.cpp
+++ b/tutorial/t7/main.cpp
@@ -27,7 +27,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
TQGrid *grid = new TQGrid( 4, this );
diff --git a/tutorial/t8/main.cpp b/tutorial/t8/main.cpp
index 858411c5..97947afe 100644
--- a/tutorial/t8/main.cpp
+++ b/tutorial/t8/main.cpp
@@ -27,7 +27,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle->setRange( 5, 70 );
diff --git a/tutorial/t9/main.cpp b/tutorial/t9/main.cpp
index 521be552..ffd6739b 100644
--- a/tutorial/t9/main.cpp
+++ b/tutorial/t9/main.cpp
@@ -27,7 +27,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
- connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
+ connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle->setRange( 5, 70 );