From fb401a891f1b426e9419c0cb16403df407138611 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 27 Dec 2023 19:25:43 +0900 Subject: Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT Signed-off-by: Michele Calgaro --- doc/application-walkthrough.doc | 4 +- doc/html/aclock-example.html | 4 +- doc/html/addressbook-example.html | 32 +++++----- doc/html/archivesearch-example.html | 16 ++--- doc/html/buttongroups-example.html | 6 +- doc/html/canvas-chart-example.html | 44 +++++++------- doc/html/canvas-example.html | 58 +++++++++--------- doc/html/chart-chartform-cpp.html | 44 +++++++------- doc/html/chart-optionsform-cpp.html | 6 +- doc/html/chart-setdataform-cpp.html | 18 +++--- doc/html/checklists-example.html | 12 ++-- doc/html/clientserver-example.html | 50 +++++++-------- doc/html/customlayout-example.html | 2 +- doc/html/designer-manual-3.html | 2 +- doc/html/designer-manual-4.html | 4 +- doc/html/designer-manual-7.html | 8 +-- doc/html/dirview-example.html | 12 ++-- doc/html/distributor-example.html | 2 +- doc/html/drawdemo-example.html | 4 +- doc/html/extension-dialog-example.html | 2 +- doc/html/fileiconview-example.html | 88 +++++++++++++-------------- doc/html/forever-example.html | 4 +- doc/html/ftpclient-example.html | 48 +++++++-------- doc/html/grapher-nsplugin-example.html | 12 ++-- doc/html/hello-example.html | 4 +- doc/html/helpsystem-example.html | 24 ++++---- doc/html/helpviewer-example.html | 64 +++++++++---------- doc/html/httpd-example.html | 12 ++-- doc/html/i18n-example.html | 8 +-- doc/html/i18n.html | 2 +- doc/html/iconview-example.html | 6 +- doc/html/iconview-simple_dd-main-cpp.html | 4 +- doc/html/layout-example.html | 2 +- doc/html/lineedits-example.html | 30 ++++----- doc/html/linguist-manual-4.html | 10 +-- doc/html/listbox-example.html | 22 +++---- doc/html/listboxcombo-example.html | 14 ++--- doc/html/listviews-example.html | 16 ++--- doc/html/mail-example.html | 12 ++-- doc/html/mdi-example.html | 42 ++++++------- doc/html/menu-example.html | 48 +++++++-------- doc/html/motif-customwidget-example.html | 2 +- doc/html/movies-example.html | 20 +++--- doc/html/network.html | 12 ++-- doc/html/networkprotocol-example.html | 20 +++--- doc/html/ntqaccel.html | 8 +-- doc/html/ntqaction.html | 6 +- doc/html/ntqapplication.html | 6 +- doc/html/ntqkeysequence.html | 2 +- doc/html/ntqmainwindow.html | 8 +-- doc/html/ntqmenubar.html | 10 +-- doc/html/ntqmenudata.html | 6 +- doc/html/ntqobject.html | 16 ++--- doc/html/ntqpopupmenu.html | 6 +- doc/html/ntqprocess.html | 6 +- doc/html/ntqprogressdialog.html | 4 +- doc/html/ntqstatusbar.html | 4 +- doc/html/ntqtimer.html | 6 +- doc/html/popup-example.html | 10 +-- doc/html/process-example.html | 12 ++-- doc/html/progress-example.html | 16 ++--- doc/html/progressbar-example.html | 20 +++--- doc/html/qaction-application-example.html | 32 +++++----- doc/html/qactiongroup.html | 2 +- doc/html/qaxbase.html | 8 +-- doc/html/qaxcontainer-example-qutlook.html | 6 +- doc/html/qaxcontainer-example-webbrowser.html | 4 +- doc/html/qaxserver-example-simple.html | 4 +- doc/html/qdir-example.html | 16 ++--- doc/html/qfd-example.html | 8 +-- doc/html/qmag-example.html | 10 +-- doc/html/qmake-manual-7.html | 2 +- doc/html/qtableitem.html | 2 +- doc/html/qtooltipgroup.html | 8 +-- doc/html/qwerty-example.html | 28 ++++----- doc/html/rangecontrols-example.html | 4 +- doc/html/regexptester-example.html | 8 +-- doc/html/richtext-example.html | 6 +- doc/html/rot-example.html | 6 +- doc/html/scribble-example.html | 8 +-- doc/html/scrollview-example.html | 30 ++++----- doc/html/showimg-example.html | 34 +++++------ doc/html/signalsandslots.html | 2 +- doc/html/simple-application-example.html | 28 ++++----- doc/html/simple-application.html | 30 ++++----- doc/html/simple-font-demo-example.html | 12 ++-- doc/html/simple_dd-example.html | 4 +- doc/html/sound-example.html | 14 ++--- doc/html/sql-overview-custom1-main-cpp.html | 6 +- doc/html/sql.html | 10 +-- doc/html/statistics-example.html | 6 +- doc/html/t10-lcdrange-cpp.html | 8 +-- doc/html/t10-main-cpp.html | 18 +++--- doc/html/t11-cannon-cpp.html | 4 +- doc/html/t11-lcdrange-cpp.html | 8 +-- doc/html/t11-main-cpp.html | 20 +++--- doc/html/t12-cannon-cpp.html | 4 +- doc/html/t12-lcdrange-cpp.html | 8 +-- doc/html/t12-main-cpp.html | 20 +++--- doc/html/t13-cannon-cpp.html | 4 +- doc/html/t13-gamebrd-cpp.html | 34 +++++------ doc/html/t13-lcdrange-cpp.html | 8 +-- doc/html/t14-cannon-cpp.html | 4 +- doc/html/t14-gamebrd-cpp.html | 40 ++++++------ doc/html/t14-lcdrange-cpp.html | 8 +-- doc/html/t7-lcdrange-cpp.html | 8 +-- doc/html/t7-main-cpp.html | 6 +- doc/html/t8-lcdrange-cpp.html | 8 +-- doc/html/t8-main-cpp.html | 10 +-- doc/html/t9-lcdrange-cpp.html | 8 +-- doc/html/t9-main-cpp.html | 10 +-- doc/html/tabdialog-example.html | 2 +- doc/html/table-statistics-statistics-cpp.html | 6 +- doc/html/themes-example.html | 10 +-- doc/html/tictac-example.html | 14 ++--- doc/html/timers.html | 8 +-- doc/html/toggleaction-example.html | 4 +- doc/html/toplevel-example.html | 2 +- doc/html/tutorial1-02.html | 4 +- doc/html/tutorial1-03.html | 2 +- doc/html/tutorial1-04.html | 4 +- doc/html/tutorial1-05.html | 6 +- doc/html/tutorial1-06.html | 8 +-- doc/html/tutorial1-07.html | 12 ++-- doc/html/tutorial1-08.html | 8 +-- doc/html/tutorial1-10.html | 8 +-- doc/html/tutorial1-11.html | 6 +- doc/html/tutorial1-12.html | 8 +-- doc/html/tutorial1-13.html | 16 ++--- doc/html/tutorial1-14.html | 6 +- doc/html/tutorial2-05.html | 8 +-- doc/html/tutorial2-08.html | 18 +++--- doc/html/tutorial2-09.html | 6 +- doc/html/wizard-example.html | 16 ++--- doc/html/wizard-wizard-cpp.html | 16 ++--- doc/html/xform-example.html | 32 +++++----- doc/i18n.doc | 2 +- doc/man/man3/tqaccel.3qt | 8 +-- doc/man/man3/tqaction.3qt | 6 +- doc/man/man3/tqactiongroup.3qt | 2 +- doc/man/man3/tqapplication.3qt | 6 +- doc/man/man3/tqaxbase.3qt | 8 +-- doc/man/man3/tqkeysequence.3qt | 2 +- doc/man/man3/tqmainwindow.3qt | 8 +-- doc/man/man3/tqmenubar.3qt | 10 +-- doc/man/man3/tqmenudata.3qt | 6 +- doc/man/man3/tqobject.3qt | 14 ++--- doc/man/man3/tqpopupmenu.3qt | 6 +- doc/man/man3/tqprocess.3qt | 6 +- doc/man/man3/tqprogressdialog.3qt | 4 +- doc/man/man3/tqstatusbar.3qt | 4 +- doc/man/man3/tqtableitem.3qt | 2 +- doc/man/man3/tqtimer.3qt | 6 +- doc/man/man3/tqtooltipgroup.3qt | 8 +-- doc/network.doc | 12 ++-- doc/object.doc | 8 +-- doc/signalsandslots.doc | 2 +- doc/sql.doc | 4 +- doc/tutorial2.doc | 2 +- 159 files changed, 972 insertions(+), 972 deletions(-) (limited to 'doc') diff --git a/doc/application-walkthrough.doc b/doc/application-walkthrough.doc index 10c05245..5c652e5f 100644 --- a/doc/application-walkthrough.doc +++ b/doc/application-walkthrough.doc @@ -155,7 +155,7 @@ its location and floats it over the desktop, the toolbar-window will show "File Operations" as caption. \printline fileopen -\printuntil SLOT(choose()) +\printuntil TQ_SLOT(choose()) Now we create the first tool button for the \e fileTools toolbar with the appropriate icon and the tool-tip text "Open File". @@ -163,7 +163,7 @@ The \c fileopen.xpm we included at the beginning contains the definition of a pixmap called \e fileopen. We use this icon to illustrate our first tool button. -\printuntil SLOT(print()) +\printuntil TQ_SLOT(print()) In a similar way we create two more tool buttons in this toolbar, each with appropriate icons and tool-tip text. All three buttons are connected diff --git a/doc/html/aclock-example.html b/doc/html/aclock-example.html index 05e1d616..e34925e3 100644 --- a/doc/html/aclock-example.html +++ b/doc/html/aclock-example.html @@ -109,7 +109,7 @@ private: { time = TQTime::currentTime(); // get current time internalTimer = new TQTimer( this ); // create internal timer - connect( internalTimer, SIGNAL(timeout()), SLOT(timeout()) ); + connect( internalTimer, TQ_SIGNAL(timeout()), TQ_SLOT(timeout()) ); internalTimer->start( 5000 ); // emit signal every 5 seconds } @@ -136,7 +136,7 @@ void AnalogClock::mousePressEvent( void AnalogClock::setTime( const TQTime & t ) { time = t; - disconnect( internalTimer, SIGNAL(timeout()), this, SLOT(timeout()) ); + disconnect( internalTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()) ); if (autoMask()) updateMask(); else diff --git a/doc/html/addressbook-example.html b/doc/html/addressbook-example.html index a1bcc8ef..6c878fdd 100644 --- a/doc/html/addressbook-example.html +++ b/doc/html/addressbook-example.html @@ -132,16 +132,16 @@ void ABMainWindow::setupMenuBar() TQPopupMenu *file = new TQPopupMenu( this ); menuBar()->insertItem( "&File", file ); - file->insertItem( "New", this, SLOT( fileNew() ), CTRL + Key_N ); - file->insertItem( TQPixmap( "fileopen.xpm" ), "Open", this, SLOT( fileOpen() ), CTRL + Key_O ); + file->insertItem( "New", this, TQ_SLOT( fileNew() ), CTRL + Key_N ); + file->insertItem( TQPixmap( "fileopen.xpm" ), "Open", this, TQ_SLOT( fileOpen() ), CTRL + Key_O ); file->insertSeparator(); - file->insertItem( TQPixmap( "filesave.xpm" ), "Save", this, SLOT( fileSave() ), CTRL + Key_S ); - file->insertItem( "Save As...", this, SLOT( fileSaveAs() ) ); + file->insertItem( TQPixmap( "filesave.xpm" ), "Save", this, TQ_SLOT( fileSave() ), CTRL + Key_S ); + file->insertItem( "Save As...", this, TQ_SLOT( fileSaveAs() ) ); file->insertSeparator(); - file->insertItem( TQPixmap( "fileprint.xpm" ), "Print...", this, SLOT( filePrint() ), CTRL + Key_P ); + file->insertItem( TQPixmap( "fileprint.xpm" ), "Print...", this, TQ_SLOT( filePrint() ), CTRL + Key_P ); file->insertSeparator(); - file->insertItem( "Close", this, SLOT( closeWindow() ), CTRL + Key_W ); - file->insertItem( "Quit", tqApp, SLOT( quit() ), CTRL + Key_Q ); + file->insertItem( "Close", this, TQ_SLOT( closeWindow() ), CTRL + Key_W ); + file->insertItem( "Quit", tqApp, TQ_SLOT( quit() ), CTRL + Key_Q ); } void ABMainWindow::setupFileTools() @@ -371,7 +371,7 @@ void ABCentralWidget::setupTabWidget() add = new TQPushButton( "A&dd", input ); add->resize( add->sizeHint() ); grid1->addWidget( add, 0, 4 ); - connect( add, SIGNAL( clicked() ), this, SLOT( addEntry() ) ); + connect( add, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addEntry() ) ); iFirstName = new TQLineEdit( input ); iFirstName->resize( iFirstName->sizeHint() ); @@ -396,7 +396,7 @@ void ABCentralWidget::setupTabWidget() change = new TQPushButton( "&Change", input ); change->resize( change->sizeHint() ); grid1->addWidget( change, 1, 4 ); - connect( change, SIGNAL( clicked() ), this, SLOT( changeEntry() ) ); + connect( change, TQ_SIGNAL( clicked() ), this, TQ_SLOT( changeEntry() ) ); tabWidget->addTab( input, "&Add/Change Entry" ); @@ -408,22 +408,22 @@ void ABCentralWidget::setupTabWidget() cFirstName = new TQCheckBox( "First &Name", search ); cFirstName->resize( cFirstName->sizeHint() ); grid2->addWidget( cFirstName, 0, 0 ); - connect( cFirstName, SIGNAL( clicked() ), this, SLOT( toggleFirstName() ) ); + connect( cFirstName, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toggleFirstName() ) ); cLastName = new TQCheckBox( "&Last Name", search ); cLastName->resize( cLastName->sizeHint() ); grid2->addWidget( cLastName, 0, 1 ); - connect( cLastName, SIGNAL( clicked() ), this, SLOT( toggleLastName() ) ); + connect( cLastName, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toggleLastName() ) ); cAddress = new TQCheckBox( "Add&ress", search ); cAddress->resize( cAddress->sizeHint() ); grid2->addWidget( cAddress, 0, 2 ); - connect( cAddress, SIGNAL( clicked() ), this, SLOT( toggleAddress() ) ); + connect( cAddress, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toggleAddress() ) ); cEMail = new TQCheckBox( "&E-Mail", search ); cEMail->resize( cEMail->sizeHint() ); grid2->addWidget( cEMail, 0, 3 ); - connect( cEMail, SIGNAL( clicked() ), this, SLOT( toggleEMail() ) ); + connect( cEMail, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toggleEMail() ) ); sFirstName = new TQLineEdit( search ); sFirstName->resize( sFirstName->sizeHint() ); @@ -444,7 +444,7 @@ void ABCentralWidget::setupTabWidget() find = new TQPushButton( "F&ind", search ); find->resize( find->sizeHint() ); grid2->addWidget( find, 1, 4 ); - connect( find, SIGNAL( clicked() ), this, SLOT( findEntries() ) ); + connect( find, TQ_SIGNAL( clicked() ), this, TQ_SLOT( findEntries() ) ); cFirstName->setChecked( TRUE ); sFirstName->setEnabled( TRUE ); @@ -467,7 +467,7 @@ void ABCentralWidget::setupListView() listView->setSelectionMode( TQListView::Single ); - connect( listView, SIGNAL( clicked( TQListViewItem* ) ), this, SLOT( itemSelected( TQListViewItem* ) ) ); + connect( listView, TQ_SIGNAL( clicked( TQListViewItem* ) ), this, TQ_SLOT( itemSelected( TQListViewItem* ) ) ); mainGrid->addWidget( listView, 1, 0 ); listView->setAllColumnsShowFocus( TRUE ); @@ -647,7 +647,7 @@ int main( int argc, char ** argv ) a.setMainWidget( mw ); mw->show(); - a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); + a.connect( &a, TQ_SIGNAL( lastWindowClosed() ), &a, TQ_SLOT( quit() ) ); int result = a.exec(); delete mw; return result; diff --git a/doc/html/archivesearch-example.html b/doc/html/archivesearch-example.html index 176357bf..314d3cc6 100644 --- a/doc/html/archivesearch-example.html +++ b/doc/html/archivesearch-example.html @@ -59,12 +59,12 @@ were done using TQt Designer. void ArchiveDialog::init() { - connect(&articleSearcher, SIGNAL(done(bool)), this, SLOT(searchDone(bool))); - connect(&articleFetcher, SIGNAL(done(bool)), this, SLOT(fetchDone(bool))); - connect(myListView, SIGNAL(selectionChanged(TQListViewItem*)), this, SLOT(fetch(TQListViewItem*))); - connect(myLineEdit, SIGNAL(returnPressed()), this, SLOT(search())); - connect(myListView, SIGNAL(returnPressed(TQListViewItem*)), this, SLOT(fetch(TQListViewItem*))); - connect(myPushButton, SIGNAL(clicked()), this, SLOT(close())); + connect(&articleSearcher, TQ_SIGNAL(done(bool)), this, TQ_SLOT(searchDone(bool))); + connect(&articleFetcher, TQ_SIGNAL(done(bool)), this, TQ_SLOT(fetchDone(bool))); + connect(myListView, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(fetch(TQListViewItem*))); + connect(myLineEdit, TQ_SIGNAL(returnPressed()), this, TQ_SLOT(search())); + connect(myListView, TQ_SIGNAL(returnPressed(TQListViewItem*)), this, TQ_SLOT(fetch(TQListViewItem*))); + connect(myPushButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(close())); } void ArchiveDialog::fetch( TQListViewItem *it ) @@ -164,8 +164,8 @@ int main(int argc, char **argv) ArchiveDialog ad; ad.show(); - TQObject::connect( &a, SIGNAL(lastWindowClosed()), - &a, SLOT(quit()) ); + TQObject::connect( &a, TQ_SIGNAL(lastWindowClosed()), + &a, TQ_SLOT(quit()) ); return a.exec(); } diff --git a/doc/html/buttongroups-example.html b/doc/html/buttongroups-example.html index bf6b0edf..b6ee7f5e 100644 --- a/doc/html/buttongroups-example.html +++ b/doc/html/buttongroups-example.html @@ -154,8 +154,8 @@ protected slots: // insert a checkbox... state = new TQCheckBox( "E&nable Radiobuttons", bgrp3 ); state->setChecked( TRUE ); - // ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State() - connect( state, SIGNAL( clicked() ), this, SLOT( slotChangeGrp3State() ) ); + // ...and connect its TQ_SIGNAL clicked() with the TQ_SLOT slotChangeGrp3State() + connect( state, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotChangeGrp3State() ) ); // ------------ fourth group @@ -186,7 +186,7 @@ protected slots: } /* - * SLOT slotChangeGrp3State() + * TQ_SLOT slotChangeGrp3State() * * enables/disables the radiobuttons of the third buttongroup */ diff --git a/doc/html/canvas-chart-example.html b/doc/html/canvas-chart-example.html index 4ec51828..8a9a531f 100644 --- a/doc/html/canvas-chart-example.html +++ b/doc/html/canvas-chart-example.html @@ -303,41 +303,41 @@ const TQString APP_KEY = "/Chart/"; fileNewAction = new TQAction( "New Chart", TQPixmap( file_new ), "&New", CTRL+Key_N, this, "new" ); - connect( fileNewAction, SIGNAL( activated() ), this, SLOT( fileNew() ) ); + connect( fileNewAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileNew() ) ); fileOpenAction = new TQAction( "Open Chart", TQPixmap( file_open ), "&Open...", CTRL+Key_O, this, "open" ); - connect( fileOpenAction, SIGNAL( activated() ), this, SLOT( fileOpen() ) ); + connect( fileOpenAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileOpen() ) ); fileSaveAction = new TQAction( "Save Chart", TQPixmap( file_save ), "&Save", CTRL+Key_S, this, "save" ); - connect( fileSaveAction, SIGNAL( activated() ), this, SLOT( fileSave() ) ); + connect( fileSaveAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileSave() ) ); fileSaveAsAction = new TQAction( "Save Chart As", TQPixmap( file_save ), "Save &As...", 0, this, "save as" ); - connect( fileSaveAsAction, SIGNAL( activated() ), - this, SLOT( fileSaveAs() ) ); + connect( fileSaveAsAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( fileSaveAs() ) ); fileSaveAsPixmapAction = new TQAction( "Save Chart As Bitmap", TQPixmap( file_save ), "Save As &Bitmap...", CTRL+Key_B, this, "save as bitmap" ); - connect( fileSaveAsPixmapAction, SIGNAL( activated() ), - this, SLOT( fileSaveAsPixmap() ) ); + connect( fileSaveAsPixmapAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( fileSaveAsPixmap() ) ); filePrintAction = new TQAction( "Print Chart", TQPixmap( file_print ), "&Print Chart...", CTRL+Key_P, this, "print chart" ); - connect( filePrintAction, SIGNAL( activated() ), - this, SLOT( filePrint() ) ); + connect( filePrintAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( filePrint() ) ); optionsSetDataAction = new TQAction( "Set Data", TQPixmap( options_setdata ), "Set &Data...", CTRL+Key_D, this, "set data" ); - connect( optionsSetDataAction, SIGNAL( activated() ), - this, SLOT( optionsSetData() ) ); + connect( optionsSetDataAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( optionsSetData() ) ); TQActionGroup *chartGroup = new TQActionGroup( this ); // Connected later @@ -363,17 +363,17 @@ const TQString APP_KEY = "/Chart/"; optionsSetFontAction = new TQAction( "Set Font", TQPixmap( options_setfont ), "Set &Font...", CTRL+Key_F, this, "set font" ); - connect( optionsSetFontAction, SIGNAL( activated() ), - this, SLOT( optionsSetFont() ) ); + connect( optionsSetFontAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( optionsSetFont() ) ); optionsSetOptionsAction = new TQAction( "Set Options", TQPixmap( options_setoptions ), "Set &Options...", 0, this, "set options" ); - connect( optionsSetOptionsAction, SIGNAL( activated() ), - this, SLOT( optionsSetOptions() ) ); + connect( optionsSetOptionsAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( optionsSetOptions() ) ); fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this, "quit" ); - connect( fileQuitAction, SIGNAL( activated() ), this, SLOT( fileQuit() ) ); + connect( fileQuitAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileQuit() ) ); TQToolBar* fileTools = new TQToolBar( this, "file operations" ); @@ -425,9 +425,9 @@ const TQString APP_KEY = "/Chart/"; TQPopupMenu *helpMenu = new TQPopupMenu( this ); menuBar()->insertItem( "&Help", helpMenu ); - helpMenu->insertItem( "&Help", this, SLOT(helpHelp()), Key_F1 ); - helpMenu->insertItem( "&About", this, SLOT(helpAbout()) ); - helpMenu->insertItem( "About &TQt", this, SLOT(helpAboutTQt()) ); + helpMenu->insertItem( "&Help", this, TQ_SLOT(helpHelp()), Key_F1 ); + helpMenu->insertItem( "&About", this, TQ_SLOT(helpAbout()) ); + helpMenu->insertItem( "About &TQt", this, TQ_SLOT(helpAboutTQt()) ); m_printer = 0; @@ -459,8 +459,8 @@ const TQString APP_KEY = "/Chart/"; // Connect *after* we've set the chart type on so we don't call // drawElements() prematurely. - connect( chartGroup, SIGNAL( selected(TQAction*) ), - this, SLOT( updateChartType(TQAction*) ) ); + connect( chartGroup, TQ_SIGNAL( selected(TQAction*) ), + this, TQ_SLOT( updateChartType(TQAction*) ) ); resize( windowWidth, windowHeight ); if ( windowX != -1 || windowY != -1 ) @@ -604,7 +604,7 @@ void ChartForm::updateRecentFilesMenu() if ( i < int(m_recentFiles.count()) ) fileMenu->insertItem( TQString( "&%1 %2" ). arg( i + 1 ).arg( m_recentFiles[i] ), - this, SLOT( fileOpenRecent(int) ), + this, TQ_SLOT( fileOpenRecent(int) ), 0, i ); } } diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html index 2c36c44a..2856d684 100644 --- a/doc/html/canvas-example.html +++ b/doc/html/canvas-example.html @@ -448,52 +448,52 @@ static TQImage *logoimg; TQMenuBar* menu = menuBar(); TQPopupMenu* file = new TQPopupMenu( menu ); - file->insertItem("&Fill canvas", this, SLOT(init()), CTRL+Key_F); - file->insertItem("&Erase canvas", this, SLOT(clear()), CTRL+Key_E); - file->insertItem("&New view", this, SLOT(newView()), CTRL+Key_N); + file->insertItem("&Fill canvas", this, TQ_SLOT(init()), CTRL+Key_F); + file->insertItem("&Erase canvas", this, TQ_SLOT(clear()), CTRL+Key_E); + file->insertItem("&New view", this, TQ_SLOT(newView()), CTRL+Key_N); file->insertSeparator(); - file->insertItem("&Print...", this, SLOT(print()), CTRL+Key_P); + file->insertItem("&Print...", this, TQ_SLOT(print()), CTRL+Key_P); file->insertSeparator(); - file->insertItem("E&xit", tqApp, SLOT(quit()), CTRL+Key_Q); + file->insertItem("E&xit", tqApp, TQ_SLOT(quit()), CTRL+Key_Q); menu->insertItem("&File", file); TQPopupMenu* edit = new TQPopupMenu( menu ); - edit->insertItem("Add &Circle", this, SLOT(addCircle()), ALT+Key_C); - edit->insertItem("Add &Hexagon", this, SLOT(addHexagon()), ALT+Key_H); - edit->insertItem("Add &Polygon", this, SLOT(addPolygon()), ALT+Key_P); - edit->insertItem("Add Spl&ine", this, SLOT(addSpline()), ALT+Key_I); - edit->insertItem("Add &Text", this, SLOT(addText()), ALT+Key_T); - edit->insertItem("Add &Line", this, SLOT(addLine()), ALT+Key_L); - edit->insertItem("Add &Rectangle", this, SLOT(addRectangle()), ALT+Key_R); - edit->insertItem("Add &Sprite", this, SLOT(addSprite()), ALT+Key_S); - edit->insertItem("Create &Mesh", this, SLOT(addMesh()), ALT+Key_M ); - edit->insertItem("Add &Alpha-blended image", this, SLOT(addButterfly()), ALT+Key_A); + edit->insertItem("Add &Circle", this, TQ_SLOT(addCircle()), ALT+Key_C); + edit->insertItem("Add &Hexagon", this, TQ_SLOT(addHexagon()), ALT+Key_H); + edit->insertItem("Add &Polygon", this, TQ_SLOT(addPolygon()), ALT+Key_P); + edit->insertItem("Add Spl&ine", this, TQ_SLOT(addSpline()), ALT+Key_I); + edit->insertItem("Add &Text", this, TQ_SLOT(addText()), ALT+Key_T); + edit->insertItem("Add &Line", this, TQ_SLOT(addLine()), ALT+Key_L); + edit->insertItem("Add &Rectangle", this, TQ_SLOT(addRectangle()), ALT+Key_R); + edit->insertItem("Add &Sprite", this, TQ_SLOT(addSprite()), ALT+Key_S); + edit->insertItem("Create &Mesh", this, TQ_SLOT(addMesh()), ALT+Key_M ); + edit->insertItem("Add &Alpha-blended image", this, TQ_SLOT(addButterfly()), ALT+Key_A); menu->insertItem("&Edit", edit); TQPopupMenu* view = new TQPopupMenu( menu ); - view->insertItem("&Enlarge", this, SLOT(enlarge()), SHIFT+CTRL+Key_Plus); - view->insertItem("Shr&ink", this, SLOT(shrink()), SHIFT+CTRL+Key_Minus); + view->insertItem("&Enlarge", this, TQ_SLOT(enlarge()), SHIFT+CTRL+Key_Plus); + view->insertItem("Shr&ink", this, TQ_SLOT(shrink()), SHIFT+CTRL+Key_Minus); view->insertSeparator(); - view->insertItem("&Rotate clockwise", this, SLOT(rotateClockwise()), CTRL+Key_PageDown); - view->insertItem("Rotate &counterclockwise", this, SLOT(rotateCounterClockwise()), CTRL+Key_PageUp); - view->insertItem("&Zoom in", this, SLOT(zoomIn()), CTRL+Key_Plus); - view->insertItem("Zoom &out", this, SLOT(zoomOut()), CTRL+Key_Minus); - view->insertItem("Translate left", this, SLOT(moveL()), CTRL+Key_Left); - view->insertItem("Translate right", this, SLOT(moveR()), CTRL+Key_Right); - view->insertItem("Translate up", this, SLOT(moveU()), CTRL+Key_Up); - view->insertItem("Translate down", this, SLOT(moveD()), CTRL+Key_Down); - view->insertItem("&Mirror", this, SLOT(mirror()), CTRL+Key_Home); + view->insertItem("&Rotate clockwise", this, TQ_SLOT(rotateClockwise()), CTRL+Key_PageDown); + view->insertItem("Rotate &counterclockwise", this, TQ_SLOT(rotateCounterClockwise()), CTRL+Key_PageUp); + view->insertItem("&Zoom in", this, TQ_SLOT(zoomIn()), CTRL+Key_Plus); + view->insertItem("Zoom &out", this, TQ_SLOT(zoomOut()), CTRL+Key_Minus); + view->insertItem("Translate left", this, TQ_SLOT(moveL()), CTRL+Key_Left); + view->insertItem("Translate right", this, TQ_SLOT(moveR()), CTRL+Key_Right); + view->insertItem("Translate up", this, TQ_SLOT(moveU()), CTRL+Key_Up); + view->insertItem("Translate down", this, TQ_SLOT(moveD()), CTRL+Key_Down); + view->insertItem("&Mirror", this, TQ_SLOT(mirror()), CTRL+Key_Home); menu->insertItem("&View", view); options = new TQPopupMenu( menu ); - dbf_id = options->insertItem("Double buffer", this, SLOT(toggleDoubleBuffer())); + dbf_id = options->insertItem("Double buffer", this, TQ_SLOT(toggleDoubleBuffer())); options->setItemChecked(dbf_id, TRUE); menu->insertItem("&Options",options); menu->insertSeparator(); TQPopupMenu* help = new TQPopupMenu( menu ); - help->insertItem("&About", this, SLOT(help()), Key_F1); + help->insertItem("&About", this, TQ_SLOT(help()), Key_F1); help->setItemChecked(dbf_id, TRUE); menu->insertItem("&Help",help); @@ -922,7 +922,7 @@ int main(int argc, char** argv) else m.showMaximized(); - TQObject::connect( tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit()) ); + TQObject::connect( tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit()) ); return app.exec(); } diff --git a/doc/html/chart-chartform-cpp.html b/doc/html/chart-chartform-cpp.html index e106621f..881f791b 100644 --- a/doc/html/chart-chartform-cpp.html +++ b/doc/html/chart-chartform-cpp.html @@ -91,41 +91,41 @@ const TQString APP_KEY = "/Chart/"; fileNewAction = new TQAction( "New Chart", TQPixmap( file_new ), "&New", CTRL+Key_N, this, "new" ); - connect( fileNewAction, SIGNAL( activated() ), this, SLOT( fileNew() ) ); + connect( fileNewAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileNew() ) ); fileOpenAction = new TQAction( "Open Chart", TQPixmap( file_open ), "&Open...", CTRL+Key_O, this, "open" ); - connect( fileOpenAction, SIGNAL( activated() ), this, SLOT( fileOpen() ) ); + connect( fileOpenAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileOpen() ) ); fileSaveAction = new TQAction( "Save Chart", TQPixmap( file_save ), "&Save", CTRL+Key_S, this, "save" ); - connect( fileSaveAction, SIGNAL( activated() ), this, SLOT( fileSave() ) ); + connect( fileSaveAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileSave() ) ); fileSaveAsAction = new TQAction( "Save Chart As", TQPixmap( file_save ), "Save &As...", 0, this, "save as" ); - connect( fileSaveAsAction, SIGNAL( activated() ), - this, SLOT( fileSaveAs() ) ); + connect( fileSaveAsAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( fileSaveAs() ) ); fileSaveAsPixmapAction = new TQAction( "Save Chart As Bitmap", TQPixmap( file_save ), "Save As &Bitmap...", CTRL+Key_B, this, "save as bitmap" ); - connect( fileSaveAsPixmapAction, SIGNAL( activated() ), - this, SLOT( fileSaveAsPixmap() ) ); + connect( fileSaveAsPixmapAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( fileSaveAsPixmap() ) ); filePrintAction = new TQAction( "Print Chart", TQPixmap( file_print ), "&Print Chart...", CTRL+Key_P, this, "print chart" ); - connect( filePrintAction, SIGNAL( activated() ), - this, SLOT( filePrint() ) ); + connect( filePrintAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( filePrint() ) ); optionsSetDataAction = new TQAction( "Set Data", TQPixmap( options_setdata ), "Set &Data...", CTRL+Key_D, this, "set data" ); - connect( optionsSetDataAction, SIGNAL( activated() ), - this, SLOT( optionsSetData() ) ); + connect( optionsSetDataAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( optionsSetData() ) ); TQActionGroup *chartGroup = new TQActionGroup( this ); // Connected later @@ -151,17 +151,17 @@ const TQString APP_KEY = "/Chart/"; optionsSetFontAction = new TQAction( "Set Font", TQPixmap( options_setfont ), "Set &Font...", CTRL+Key_F, this, "set font" ); - connect( optionsSetFontAction, SIGNAL( activated() ), - this, SLOT( optionsSetFont() ) ); + connect( optionsSetFontAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( optionsSetFont() ) ); optionsSetOptionsAction = new TQAction( "Set Options", TQPixmap( options_setoptions ), "Set &Options...", 0, this, "set options" ); - connect( optionsSetOptionsAction, SIGNAL( activated() ), - this, SLOT( optionsSetOptions() ) ); + connect( optionsSetOptionsAction, TQ_SIGNAL( activated() ), + this, TQ_SLOT( optionsSetOptions() ) ); fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this, "quit" ); - connect( fileQuitAction, SIGNAL( activated() ), this, SLOT( fileQuit() ) ); + connect( fileQuitAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileQuit() ) ); TQToolBar* fileTools = new TQToolBar( this, "file operations" ); @@ -213,9 +213,9 @@ const TQString APP_KEY = "/Chart/"; TQPopupMenu *helpMenu = new TQPopupMenu( this ); menuBar()->insertItem( "&Help", helpMenu ); - helpMenu->insertItem( "&Help", this, SLOT(helpHelp()), Key_F1 ); - helpMenu->insertItem( "&About", this, SLOT(helpAbout()) ); - helpMenu->insertItem( "About &TQt", this, SLOT(helpAboutTQt()) ); + helpMenu->insertItem( "&Help", this, TQ_SLOT(helpHelp()), Key_F1 ); + helpMenu->insertItem( "&About", this, TQ_SLOT(helpAbout()) ); + helpMenu->insertItem( "About &TQt", this, TQ_SLOT(helpAboutTQt()) ); m_printer = 0; @@ -247,8 +247,8 @@ const TQString APP_KEY = "/Chart/"; // Connect *after* we've set the chart type on so we don't call // drawElements() prematurely. - connect( chartGroup, SIGNAL( selected(TQAction*) ), - this, SLOT( updateChartType(TQAction*) ) ); + connect( chartGroup, TQ_SIGNAL( selected(TQAction*) ), + this, TQ_SLOT( updateChartType(TQAction*) ) ); resize( windowWidth, windowHeight ); if ( windowX != -1 || windowY != -1 ) @@ -392,7 +392,7 @@ void ChartForm::updateRecentFilesMenu() if ( i < int(m_recentFiles.count()) ) fileMenu->insertItem( TQString( "&%1 %2" ). arg( i + 1 ).arg( m_recentFiles[i] ), - this, SLOT( fileOpenRecent(int) ), + this, TQ_SLOT( fileOpenRecent(int) ), 0, i ); } } diff --git a/doc/html/chart-optionsform-cpp.html b/doc/html/chart-optionsform-cpp.html index c2caa73c..06ed5a7f 100644 --- a/doc/html/chart-optionsform-cpp.html +++ b/doc/html/chart-optionsform-cpp.html @@ -138,9 +138,9 @@ body { background: #ffffff; color: black; } buttonsLayout->addWidget( cancelPushButton ); optionsFormLayout->addLayout( buttonsLayout ); - connect( fontPushButton, SIGNAL( clicked() ), this, SLOT( chooseFont() ) ); - connect( okPushButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); - connect( cancelPushButton, SIGNAL( clicked() ), this, SLOT( reject() ) ); + connect( fontPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( chooseFont() ) ); + connect( okPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) ); + connect( cancelPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) ); chartTypeTextLabel->setBuddy( chartTypeComboBox ); decimalPlacesTextLabel->setBuddy( decimalPlacesSpinBox ); diff --git a/doc/html/chart-setdataform-cpp.html b/doc/html/chart-setdataform-cpp.html index 4cf004ee..5caecb38 100644 --- a/doc/html/chart-setdataform-cpp.html +++ b/doc/html/chart-setdataform-cpp.html @@ -116,15 +116,15 @@ const int MAX_PATTERNS = 14; tableButtonBox->addLayout( buttonBox ); - connect( table, SIGNAL( clicked(int,int,int,const TQPoint&) ), - this, SLOT( setColor(int,int) ) ); - connect( table, SIGNAL( currentChanged(int,int) ), - this, SLOT( currentChanged(int,int) ) ); - connect( table, SIGNAL( valueChanged(int,int) ), - this, SLOT( valueChanged(int,int) ) ); - connect( colorPushButton, SIGNAL( clicked() ), this, SLOT( setColor() ) ); - connect( okPushButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); - connect( cancelPushButton, SIGNAL( clicked() ), this, SLOT( reject() ) ); + connect( table, TQ_SIGNAL( clicked(int,int,int,const TQPoint&) ), + this, TQ_SLOT( setColor(int,int) ) ); + connect( table, TQ_SIGNAL( currentChanged(int,int) ), + this, TQ_SLOT( currentChanged(int,int) ) ); + connect( table, TQ_SIGNAL( valueChanged(int,int) ), + this, TQ_SLOT( valueChanged(int,int) ) ); + connect( colorPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( setColor() ) ); + connect( okPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) ); + connect( cancelPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) ); TQPixmap patterns[MAX_PATTERNS]; patterns[0] = TQPixmap( pattern01 ); diff --git a/doc/html/checklists-example.html b/doc/html/checklists-example.html index 54f945f0..db69b9c3 100644 --- a/doc/html/checklists-example.html +++ b/doc/html/checklists-example.html @@ -149,8 +149,8 @@ protected slots: TQPushButton *copy1 = new TQPushButton( " -> ", this ); tmp->addWidget( copy1 ); copy1->setMaximumWidth( copy1->sizeHint().width() ); - // connect the SIGNAL clicked() of the pushbutton with the SLOT copy1to2() - connect( copy1, SIGNAL( clicked() ), this, SLOT( copy1to2() ) ); + // connect the TQ_SIGNAL clicked() of the pushbutton with the TQ_SLOT copy1to2() + connect( copy1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( copy1to2() ) ); // another widget for layouting TQVBoxLayout *vbox2 = new TQVBoxLayout( lay ); @@ -173,8 +173,8 @@ protected slots: TQPushButton *copy2 = new TQPushButton( " -> ", this ); lay->addWidget( copy2 ); copy2->setMaximumWidth( copy2->sizeHint().width() ); - // ...and connect its clicked() SIGNAL to the copy2to3() SLOT - connect( copy2, SIGNAL( clicked() ), this, SLOT( copy2to3() ) ); + // ...and connect its clicked() TQ_SIGNAL to the copy2to3() TQ_SLOT + connect( copy2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( copy2to3() ) ); tmp = new TQVBoxLayout( lay ); tmp->setMargin( 5 ); @@ -185,7 +185,7 @@ protected slots: } /* - * SLOT copy1to2() + * TQ_SLOT copy1to2() * * Copies all checked ListViewItems from the first ListView to * the second one, and inserts them as Radio-ListViewItem. @@ -217,7 +217,7 @@ void CheckLists::copy1to2() } /* - * SLOT copy2to3() + * TQ_SLOT copy2to3() * * Copies the checked item of the second ListView into the * Label at the right. diff --git a/doc/html/clientserver-example.html b/doc/html/clientserver-example.html index fd1e2479..0191069a 100644 --- a/doc/html/clientserver-example.html +++ b/doc/html/clientserver-example.html @@ -80,10 +80,10 @@ public: TQSocket( parent, name ) { line = 0; - connect( this, SIGNAL(readyRead()), - SLOT(readClient()) ); - connect( this, SIGNAL(connectionClosed()), - SLOT(deleteLater()) ); + connect( this, TQ_SIGNAL(readyRead()), + TQ_SLOT(readClient()) ); + connect( this, TQ_SIGNAL(connectionClosed()), + TQ_SLOT(deleteLater()) ); setSocket( sock ); } @@ -168,10 +168,10 @@ public: infoText = new TQTextView( this ); TQPushButton *quit = new TQPushButton( tr("Quit") , this ); - connect( server, SIGNAL(newConnect(ClientSocket*)), - SLOT(newConnect(ClientSocket*)) ); - connect( quit, SIGNAL(clicked()), tqApp, - SLOT(quit()) ); + connect( server, TQ_SIGNAL(newConnect(ClientSocket*)), + TQ_SLOT(newConnect(ClientSocket*)) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, + TQ_SLOT(quit()) ); } ~ServerInfo() @@ -182,10 +182,10 @@ private slots: void newConnect( ClientSocket *s ) { infoText->append( tr("New connection\n") ); - connect( s, SIGNAL(logText(const TQString&)), - infoText, SLOT(append(const TQString&)) ); - connect( s, SIGNAL(connectionClosed()), - SLOT(connectionClosed()) ); + connect( s, TQ_SIGNAL(logText(const TQString&)), + infoText, TQ_SLOT(append(const TQString&)) ); + connect( s, TQ_SIGNAL(connectionClosed()), + TQ_SLOT(connectionClosed()) ); } void connectionClosed() @@ -247,20 +247,20 @@ public: TQPushButton *close = new TQPushButton( tr("Close connection") , this ); TQPushButton *quit = new TQPushButton( tr("Quit") , this ); - connect( send, SIGNAL(clicked()), SLOT(sendToServer()) ); - connect( close, SIGNAL(clicked()), SLOT(closeConnection()) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( send, TQ_SIGNAL(clicked()), TQ_SLOT(sendToServer()) ); + connect( close, TQ_SIGNAL(clicked()), TQ_SLOT(closeConnection()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); // create the socket and connect various of its signals socket = new TQSocket( this ); - connect( socket, SIGNAL(connected()), - SLOT(socketConnected()) ); - connect( socket, SIGNAL(connectionClosed()), - SLOT(socketConnectionClosed()) ); - connect( socket, SIGNAL(readyRead()), - SLOT(socketReadyRead()) ); - connect( socket, SIGNAL(error(int)), - SLOT(socketError(int)) ); + connect( socket, TQ_SIGNAL(connected()), + TQ_SLOT(socketConnected()) ); + connect( socket, TQ_SIGNAL(connectionClosed()), + TQ_SLOT(socketConnectionClosed()) ); + connect( socket, TQ_SIGNAL(readyRead()), + TQ_SLOT(socketReadyRead()) ); + connect( socket, TQ_SIGNAL(error(int)), + TQ_SLOT(socketError(int)) ); // connect to the server infoText->append( tr("Trying to connect to the server\n") ); @@ -277,8 +277,8 @@ private slots: socket->close(); if ( socket->state() == TQSocket::Closing ) { // We have a delayed close. - connect( socket, SIGNAL(delayedCloseFinished()), - SLOT(socketClosed()) ); + connect( socket, TQ_SIGNAL(delayedCloseFinished()), + TQ_SLOT(socketClosed()) ); } else { // The socket is closed. socketClosed(); diff --git a/doc/html/customlayout-example.html b/doc/html/customlayout-example.html index 09ec8dac..671889c0 100644 --- a/doc/html/customlayout-example.html +++ b/doc/html/customlayout-example.html @@ -778,7 +778,7 @@ int main( int argc, char **argv ) b1->add( new TQPushButton( "More text", f ) ); b1->add( new TQPushButton( "Even longer button text", f ) ); TQPushButton* qb = new TQPushButton( "Quit", f ); - a.connect( qb, SIGNAL( clicked() ), SLOT( quit() ) ); + a.connect( qb, TQ_SIGNAL( clicked() ), TQ_SLOT( quit() ) ); b1->add( qb ); TQWidget *wid = new TQWidget( f ); diff --git a/doc/html/designer-manual-3.html b/doc/html/designer-manual-3.html index c034e9d2..507316fc 100644 --- a/doc/html/designer-manual-3.html +++ b/doc/html/designer-manual-3.html @@ -474,7 +474,7 @@ body { background: #ffffff; color: black; }

When TQt Designer generates a main.cpp file it includes this line:

-    a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
+    a.connect( &a, TQ_SIGNAL( lastWindowClosed() ), &a, TQ_SLOT( quit() ) );
 

If we left this code as-is, the user could by-pass our own termination code by clicking the main window's close (X) button. Since we want to give the user the option to save any unsaved changes we need to ensure that we intercept any attempt to close the application. To achieve this we delete the connection and add a new slot, closeEvent() which will intercept attempts to close the application and call our fileExit() function.

Click main.cpp in the Project Overview window. The file will appear in an editing window. Delete the connect line.

diff --git a/doc/html/designer-manual-4.html b/doc/html/designer-manual-4.html index e23d76c9..71560ab2 100644 --- a/doc/html/designer-manual-4.html +++ b/doc/html/designer-manual-4.html @@ -271,8 +271,8 @@ body { background: #ffffff; color: black; } { if ( ! findForm ) { findForm = new FindForm( this ); - connect( findForm, SIGNAL( lookfor(const TQString&) ), - this, SLOT( lookfor(const TQString&) ) ); + connect( findForm, TQ_SIGNAL( lookfor(const TQString&) ), + this, TQ_SLOT( lookfor(const TQString&) ) ); } findForm->show(); } diff --git a/doc/html/designer-manual-7.html b/doc/html/designer-manual-7.html index 725812bb..e952c27b 100644 --- a/doc/html/designer-manual-7.html +++ b/doc/html/designer-manual-7.html @@ -179,15 +179,15 @@ DBFILE = vcr.db layout->addWidget( lineEdit );

We begin by creating a horizontal box layout (TQHBoxLayout) and add a TQLineEdit and a TQPushButton to it.

-
        connect( lineEdit, SIGNAL( textChanged( const TQString & ) ),
-                 this, SIGNAL( fileNameChanged( const TQString & ) ) );
+
        connect( lineEdit, TQ_SIGNAL( textChanged( const TQString & ) ),
+                 this, TQ_SIGNAL( fileNameChanged( const TQString & ) ) );
 
         button = new TQPushButton( "...", this, "filechooser_button" );
         button->setFixedWidth( button->fontMetrics().width( " ... " ) );
         layout->addWidget( button );
 
-        connect( button, SIGNAL( clicked() ),
-                 this, SLOT( chooseFile() ) );
+        connect( button, TQ_SIGNAL( clicked() ),
+                 this, TQ_SLOT( chooseFile() ) );
 

We connect the lineEdit's textChanged() signal to the custom widget's fileNameChanged() signal. This ensures that if the user changes the text in the TQLineEdit this fact will be propagated via the custom widget's own signal. The button's clicked() signal is connected to the custom widget's chooseFile() slot which invokes the appropriate dialog for the user to choose their file or directory.

        setFocusProxy( lineEdit );
diff --git a/doc/html/dirview-example.html b/doc/html/dirview-example.html
index ebb7deda..28a6db32 100644
--- a/doc/html/dirview-example.html
+++ b/doc/html/dirview-example.html
@@ -444,16 +444,16 @@ TQString Directory::fullName()
         fileNormal = new TQPixmap( pix_file );
     }
 
-    connect( this, SIGNAL( doubleClicked( TQListViewItem * ) ),
-             this, SLOT( slotFolderSelected( TQListViewItem * ) ) );
-    connect( this, SIGNAL( returnPressed( TQListViewItem * ) ),
-             this, SLOT( slotFolderSelected( TQListViewItem * ) ) );
+    connect( this, TQ_SIGNAL( doubleClicked( TQListViewItem * ) ),
+             this, TQ_SLOT( slotFolderSelected( TQListViewItem * ) ) );
+    connect( this, TQ_SIGNAL( returnPressed( TQListViewItem * ) ),
+             this, TQ_SLOT( slotFolderSelected( TQListViewItem * ) ) );
 
     setAcceptDrops( TRUE );
     viewport()->setAcceptDrops( TRUE );
 
-    connect( autoopen_timer, SIGNAL( timeout() ),
-             this, SLOT( openFolder() ) );
+    connect( autoopen_timer, TQ_SIGNAL( timeout() ),
+             this, TQ_SLOT( openFolder() ) );
 }
 
 void DirectoryView::slotFolderSelected( TQListViewItem *i )
diff --git a/doc/html/distributor-example.html b/doc/html/distributor-example.html
index 87f37c1d..8a02555a 100644
--- a/doc/html/distributor-example.html
+++ b/doc/html/distributor-example.html
@@ -77,7 +77,7 @@ distributed with TQt.
 void Distributor::init()
 {
     timer = new TQTimer( this );
-    connect( timer, SIGNAL(timeout()), SLOT(checkLibData()) );
+    connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(checkLibData()) );
 
     cancelButton()->setAutoDefault( FALSE );
     backButton()->setAutoDefault( FALSE );
diff --git a/doc/html/drawdemo-example.html b/doc/html/drawdemo-example.html
index 9019f9ef..4cf02e21 100644
--- a/doc/html/drawdemo-example.html
+++ b/doc/html/drawdemo-example.html
@@ -202,7 +202,7 @@ private:
     // Create a button group to contain all buttons
     bgroup = new TQButtonGroup( this );
     bgroup->resize( 200, 200 );
-    connect( bgroup, SIGNAL(clicked(int)), SLOT(updateIt(int)) );
+    connect( bgroup, TQ_SIGNAL(clicked(int)), TQ_SLOT(updateIt(int)) );
 
     // Calculate the size for the radio buttons
     int maxwidth = 80;
@@ -259,7 +259,7 @@ private:
     print = new TQPushButton( "Print...", bgroup );
     print->resize( 80, 30 );
     print->move( maxwidth/2 - print->width()/2, maxindex*30+20 );
-    connect( print, SIGNAL(clicked()), SLOT(printIt()) );
+    connect( print, TQ_SIGNAL(clicked()), TQ_SLOT(printIt()) );
 
     // Resize bgroup to its final size when printersupport is given.
     bgroup->resize( maxwidth, print->y()+print->height()+10 );
diff --git a/doc/html/extension-dialog-example.html b/doc/html/extension-dialog-example.html
index 074b091c..20700509 100644
--- a/doc/html/extension-dialog-example.html
+++ b/doc/html/extension-dialog-example.html
@@ -151,7 +151,7 @@ int main( int argc, char ** argv )
     TQApplication a( argc, argv );
     MainForm *w = new MainForm;
     w->show();
-    a.connect( &a, SIGNAL( lastWindowClosed() ), w, SLOT( quit() ) );
+    a.connect( &a, TQ_SIGNAL( lastWindowClosed() ), w, TQ_SLOT( quit() ) );
     return a.exec();
 }
 
diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html index 8815046b..31f08c41 100644 --- a/doc/html/fileiconview-example.html +++ b/doc/html/fileiconview-example.html @@ -544,8 +544,8 @@ static void cleanup() checkSetText = TRUE; - TQObject::connect( &timer, SIGNAL( timeout() ), - iconView(), SLOT( openFolder() ) ); + TQObject::connect( &timer, TQ_SIGNAL( timeout() ), + iconView(), TQ_SLOT( openFolder() ) ); } void TQtFileIconViewItem::paintItem( TQPainter *p, const TQColorGroup &cg ) @@ -716,14 +716,14 @@ TQtFileIconViewItem::~TQtFileIconViewItem() setResizeMode( Adjust ); setWordWrapIconText( FALSE ); - connect( this, SIGNAL( doubleClicked( TQIconViewItem * ) ), - this, SLOT( itemDoubleClicked( TQIconViewItem * ) ) ); - connect( this, SIGNAL( returnPressed( TQIconViewItem * ) ), - this, SLOT( itemDoubleClicked( TQIconViewItem * ) ) ); - connect( this, SIGNAL( dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ), - this, SLOT( slotDropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ) ); - connect( this, SIGNAL( contextMenuRequested( TQIconViewItem *, const TQPoint & ) ), - this, SLOT( slotRightPressed( TQIconViewItem * ) ) ); + connect( this, TQ_SIGNAL( doubleClicked( TQIconViewItem * ) ), + this, TQ_SLOT( itemDoubleClicked( TQIconViewItem * ) ) ); + connect( this, TQ_SIGNAL( returnPressed( TQIconViewItem * ) ), + this, TQ_SLOT( itemDoubleClicked( TQIconViewItem * ) ) ); + connect( this, TQ_SIGNAL( dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ), + this, TQ_SLOT( slotDropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ) ); + connect( this, TQ_SIGNAL( contextMenuRequested( TQIconViewItem *, const TQPoint & ) ), + this, TQ_SLOT( slotRightPressed( TQIconViewItem * ) ) ); setHScrollBarMode( AlwaysOff ); setVScrollBarMode( Auto ); @@ -998,22 +998,22 @@ void TQtFileIconView::slotRightPressed( TQPopupMenu menu( this ); - menu.insertItem( "&Large view", this, SLOT( viewLarge() ) ); - menu.insertItem( "&Small view", this, SLOT( viewSmall() ) ); + menu.insertItem( "&Large view", this, TQ_SLOT( viewLarge() ) ); + menu.insertItem( "&Small view", this, TQ_SLOT( viewSmall() ) ); menu.insertSeparator(); - menu.insertItem( "Text at the &bottom", this, SLOT( viewBottom() ) ); - menu.insertItem( "Text at the &right", this, SLOT( viewRight() ) ); + menu.insertItem( "Text at the &bottom", this, TQ_SLOT( viewBottom() ) ); + menu.insertItem( "Text at the &right", this, TQ_SLOT( viewRight() ) ); menu.insertSeparator(); - menu.insertItem( "Arrange l&eft to right", this, SLOT( flowEast() ) ); - menu.insertItem( "Arrange t&op to bottom", this, SLOT( flowSouth() ) ); + menu.insertItem( "Arrange l&eft to right", this, TQ_SLOT( flowEast() ) ); + menu.insertItem( "Arrange t&op to bottom", this, TQ_SLOT( flowSouth() ) ); menu.insertSeparator(); - menu.insertItem( "&Truncate item text", this, SLOT( itemTextTruncate() ) ); - menu.insertItem( "&Wordwrap item text", this, SLOT( itemTextWordWrap() ) ); + menu.insertItem( "&Truncate item text", this, TQ_SLOT( itemTextTruncate() ) ); + menu.insertItem( "&Wordwrap item text", this, TQ_SLOT( itemTextWordWrap() ) ); menu.insertSeparator(); - menu.insertItem( "Arrange items in &grid", this, SLOT( arrangeItemsInGrid() ) ); + menu.insertItem( "Arrange items in &grid", this, TQ_SLOT( arrangeItemsInGrid() ) ); menu.insertSeparator(); - menu.insertItem( "Sort &ascending", this, SLOT( sortAscending() ) ); - menu.insertItem( "Sort &descending", this, SLOT( sortDescending() ) ); + menu.insertItem( "Sort &ascending", this, TQ_SLOT( sortAscending() ) ); + menu.insertItem( "Sort &descending", this, TQ_SLOT( sortDescending() ) ); menu.setMouseTracking( TRUE ); menu.exec( TQCursor::pos() ); @@ -1220,8 +1220,8 @@ void FileMainWindow::setup() pathCombo = new TQComboBox( TRUE, toolbar ); pathCombo->setAutoCompletion( TRUE ); toolbar->setStretchableWidget( pathCombo ); - connect( pathCombo, SIGNAL( activated( const TQString & ) ), - this, SLOT ( changePath( const TQString & ) ) ); + connect( pathCombo, TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_SLOT ( changePath( const TQString & ) ) ); toolbar->addSeparator(); @@ -1229,22 +1229,22 @@ void FileMainWindow::setup() pix = TQPixmap( cdtoparent_xpm ); upButton = new TQToolButton( pix, "One directory up", TQString::null, - this, SLOT( cdUp() ), toolbar, "cd up" ); + this, TQ_SLOT( cdUp() ), toolbar, "cd up" ); pix = TQPixmap( newfolder_xpm ); mkdirButton = new TQToolButton( pix, "New Folder", TQString::null, - this, SLOT( newFolder() ), toolbar, "new folder" ); - - connect( dirlist, SIGNAL( folderSelected( const TQString & ) ), - fileview, SLOT ( setDirectory( const TQString & ) ) ); - connect( fileview, SIGNAL( directoryChanged( const TQString & ) ), - this, SLOT( directoryChanged( const TQString & ) ) ); - connect( fileview, SIGNAL( startReadDir( int ) ), - this, SLOT( slotStartReadDir( int ) ) ); - connect( fileview, SIGNAL( readNextDir() ), - this, SLOT( slotReadNextDir() ) ); - connect( fileview, SIGNAL( readDirDone() ), - this, SLOT( slotReadDirDone() ) ); + this, TQ_SLOT( newFolder() ), toolbar, "new folder" ); + + connect( dirlist, TQ_SIGNAL( folderSelected( const TQString & ) ), + fileview, TQ_SLOT ( setDirectory( const TQString & ) ) ); + connect( fileview, TQ_SIGNAL( directoryChanged( const TQString & ) ), + this, TQ_SLOT( directoryChanged( const TQString & ) ) ); + connect( fileview, TQ_SIGNAL( startReadDir( int ) ), + this, TQ_SLOT( slotStartReadDir( int ) ) ); + connect( fileview, TQ_SIGNAL( readNextDir() ), + this, TQ_SLOT( slotReadNextDir() ) ); + connect( fileview, TQ_SIGNAL( readDirDone() ), + this, TQ_SLOT( slotReadDirDone() ) ); setDockEnabled( DockLeft, FALSE ); setDockEnabled( DockRight, FALSE ); @@ -1254,14 +1254,14 @@ void FileMainWindow::setup() progress = new TQProgressBar( statusBar() ); statusBar()->addWidget( progress, 1, TRUE ); - connect( fileview, SIGNAL( enableUp() ), - this, SLOT( enableUp() ) ); - connect( fileview, SIGNAL( disableUp() ), - this, SLOT( disableUp() ) ); - connect( fileview, SIGNAL( enableMkdir() ), - this, SLOT( enableMkdir() ) ); - connect( fileview, SIGNAL( disableMkdir() ), - this, SLOT( disableMkdir() ) ); + connect( fileview, TQ_SIGNAL( enableUp() ), + this, TQ_SLOT( enableUp() ) ); + connect( fileview, TQ_SIGNAL( disableUp() ), + this, TQ_SLOT( disableUp() ) ); + connect( fileview, TQ_SIGNAL( enableMkdir() ), + this, TQ_SLOT( enableMkdir() ) ); + connect( fileview, TQ_SIGNAL( disableMkdir() ), + this, TQ_SLOT( disableMkdir() ) ); } void FileMainWindow::setPathCombo() diff --git a/doc/html/forever-example.html b/doc/html/forever-example.html index b8193a0d..620b56a6 100644 --- a/doc/html/forever-example.html +++ b/doc/html/forever-example.html @@ -119,8 +119,8 @@ private: rectangles = 0; startTimer( 0 ); // run continuous timer TQTimer * counter = new TQTimer( this ); - connect( counter, SIGNAL(timeout()), - this, SLOT(updateCaption()) ); + connect( counter, TQ_SIGNAL(timeout()), + this, TQ_SLOT(updateCaption()) ); counter->start( 1000 ); } diff --git a/doc/html/ftpclient-example.html b/doc/html/ftpclient-example.html index 3dcedc20..13ad9fae 100644 --- a/doc/html/ftpclient-example.html +++ b/doc/html/ftpclient-example.html @@ -76,18 +76,18 @@ void FtpMainWindow::init() statusBar()->addWidget( stateFtp, 0, TRUE ); ftp = new TQFtp( this ); - connect( ftp, SIGNAL(commandStarted(int)), - SLOT(ftp_commandStarted()) ); - connect( ftp, SIGNAL(commandFinished(int,bool)), - SLOT(ftp_commandFinished()) ); - connect( ftp, SIGNAL(done(bool)), - SLOT(ftp_done(bool)) ); - connect( ftp, SIGNAL(stateChanged(int)), - SLOT(ftp_stateChanged(int)) ); - connect( ftp, SIGNAL(listInfo(const TQUrlInfo &)), - SLOT(ftp_listInfo(const TQUrlInfo &)) ); - connect( ftp, SIGNAL(rawCommandReply(int, const TQString &)), - SLOT(ftp_rawCommandReply(int, const TQString &)) ); + connect( ftp, TQ_SIGNAL(commandStarted(int)), + TQ_SLOT(ftp_commandStarted()) ); + connect( ftp, TQ_SIGNAL(commandFinished(int,bool)), + TQ_SLOT(ftp_commandFinished()) ); + connect( ftp, TQ_SIGNAL(done(bool)), + TQ_SLOT(ftp_done(bool)) ); + connect( ftp, TQ_SIGNAL(stateChanged(int)), + TQ_SLOT(ftp_stateChanged(int)) ); + connect( ftp, TQ_SIGNAL(listInfo(const TQUrlInfo &)), + TQ_SLOT(ftp_listInfo(const TQUrlInfo &)) ); + connect( ftp, TQ_SIGNAL(rawCommandReply(int, const TQString &)), + TQ_SLOT(ftp_rawCommandReply(int, const TQString &)) ); } void FtpMainWindow::destroy() @@ -122,12 +122,12 @@ void FtpMainWindow::uploadFile() this, "upload progress dialog", TRUE ); - connect( ftp, SIGNAL(dataTransferProgress(int,int)), - &progress, SLOT(setProgress(int,int)) ); - connect( ftp, SIGNAL(commandFinished(int,bool)), - &progress, SLOT(reset()) ); - connect( &progress, SIGNAL(cancelled()), - ftp, SLOT(abort()) ); + connect( ftp, TQ_SIGNAL(dataTransferProgress(int,int)), + &progress, TQ_SLOT(setProgress(int,int)) ); + connect( ftp, TQ_SIGNAL(commandFinished(int,bool)), + &progress, TQ_SLOT(reset()) ); + connect( &progress, TQ_SIGNAL(cancelled()), + ftp, TQ_SLOT(abort()) ); TQFileInfo fi( fileName ); ftp->put( file, fi.fileName() ); @@ -168,12 +168,12 @@ void FtpMainWindow::downloadFile() this, "download progress dialog", TRUE ); - connect( ftp, SIGNAL(dataTransferProgress(int,int)), - &progress, SLOT(setProgress(int,int)) ); - connect( ftp, SIGNAL(commandFinished(int,bool)), - &progress, SLOT(reset()) ); - connect( &progress, SIGNAL(cancelled()), - ftp, SLOT(abort()) ); + connect( ftp, TQ_SIGNAL(dataTransferProgress(int,int)), + &progress, TQ_SLOT(setProgress(int,int)) ); + connect( ftp, TQ_SIGNAL(commandFinished(int,bool)), + &progress, TQ_SLOT(reset()) ); + connect( &progress, TQ_SIGNAL(cancelled()), + ftp, TQ_SLOT(abort()) ); ftp->get( item->text(0), file ); progress.exec(); // ### takes a lot of time!!! diff --git a/doc/html/grapher-nsplugin-example.html b/doc/html/grapher-nsplugin-example.html index bcb6acdd..3058528f 100644 --- a/doc/html/grapher-nsplugin-example.html +++ b/doc/html/grapher-nsplugin-example.html @@ -190,16 +190,16 @@ private slots: for ( Style s = Pie; styleName[s]; s = Style(s+1)) { stylemenu->insertItem(styleName[s], s+100); } - connect(stylemenu, SIGNAL(activated(int)), - this, SLOT(setStyleFromMenu(int))); + connect(stylemenu, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(setStyleFromMenu(int))); setStyle(Pie); menubar->insertItem("Style", stylemenu); menubar->insertSeparator(); TQPopupMenu* help = new TQPopupMenu; - help->insertItem( "About plugin...", this, SIGNAL(aboutPlugin()) ); - help->insertItem( "About data...", this, SIGNAL(aboutData()) ); + help->insertItem( "About plugin...", this, TQ_SIGNAL(aboutPlugin()) ); + help->insertItem( "About data...", this, TQ_SIGNAL(aboutData()) ); menubar->insertItem("Help", help); menubar->hide(); } @@ -532,8 +532,8 @@ int Grapher::nCols() const int ptsize = fontsize ? atoi(fontsize) : graph->font().pointSize(); if (fontfamily) graph->setFont(TQFont(fontfamily, ptsize)); - connect(graph, SIGNAL(aboutPlugin()), this, SLOT(aboutPlugin())); - connect(graph, SIGNAL(aboutData()), this, SLOT(aboutData())); + connect(graph, TQ_SIGNAL(aboutPlugin()), this, TQ_SLOT(aboutPlugin())); + connect(graph, TQ_SIGNAL(aboutData()), this, TQ_SLOT(aboutData())); return graph; } diff --git a/doc/html/hello-example.html b/doc/html/hello-example.html index 0cb176c5..53627c5d 100644 --- a/doc/html/hello-example.html +++ b/doc/html/hello-example.html @@ -100,7 +100,7 @@ private: : TQWidget(parent,name), t(text), b(0) { TQTimer *timer = new TQTimer(this); - connect( timer, SIGNAL(timeout()), SLOT(animate()) ); + connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(animate()) ); timer->start( 40 ); resize( 260, 130 ); @@ -215,7 +215,7 @@ int main( int argc, char **argv ) #ifndef TQT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build h.setCaption( "TQt says hello" ); #endif - TQObject::connect( &h, SIGNAL(clicked()), &a, SLOT(quit()) ); + TQObject::connect( &h, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) ); h.setFont( TQFont("times",32,TQFont::Bold) ); // default font h.setBackgroundColor( TQt::white ); // default bg color a.setMainWidget( &h ); diff --git a/doc/html/helpsystem-example.html b/doc/html/helpsystem-example.html index 028ac940..6a210e97 100644 --- a/doc/html/helpsystem-example.html +++ b/doc/html/helpsystem-example.html @@ -368,9 +368,9 @@ so that the system path is used. menuBar()->insertItem( "&File", fileMenu ); menuBar()->insertItem( "&Help", helpMenu ); - int fileId = fileMenu->insertItem( "E&xit", this, SLOT(close()) ); + int fileId = fileMenu->insertItem( "E&xit", this, TQ_SLOT(close()) ); - int helpId = helpMenu->insertItem( "Open Assistant", this, SLOT(assistantSlot()) ); + int helpId = helpMenu->insertItem( "Open Assistant", this, TQ_SLOT(assistantSlot()) ); // populate toolbar TQToolBar* toolbar = new TQToolBar( this ); @@ -385,9 +385,9 @@ and the toolbar are populated. which will enter "What's this?" mode when clicked.
        //create tooltipgroup
         TQToolTipGroup * tipGroup = new TQToolTipGroup( this );
-        connect( tipGroup, SIGNAL(showTip(const TQString&)), statusBar(),
-            SLOT(message(const TQString&)) );
-        connect( tipGroup, SIGNAL(removeTip()), statusBar(), SLOT(clear()) );
+        connect( tipGroup, TQ_SIGNAL(showTip(const TQString&)), statusBar(),
+            TQ_SLOT(message(const TQString&)) );
+        connect( tipGroup, TQ_SIGNAL(removeTip()), statusBar(), TQ_SLOT(clear()) );
 

A TQToolTipGroup is created and will show and remove tooltips in the statusbar as the tooltips are displayed on the widgets. @@ -422,13 +422,13 @@ Instances of the two WhatsThis subclasses are created for the headers and the table. What's This? help is also added for the menu items.

        // connections
-        connect( assistantButton, SIGNAL(clicked()), this, SLOT(assistantSlot()) );
-        connect( horizontalWhatsThis, SIGNAL(linkClicked(const TQString&)), assistant,
-            SLOT(showPage(const TQString&)) );
-        connect( verticalWhatsThis, SIGNAL(linkClicked(const TQString&)), assistant,
-            SLOT(showPage(const TQString&)) );
-        connect( cellWhatsThis, SIGNAL(linkClicked(const TQString&)), assistant,
-            SLOT(showPage(const TQString&)) );
+        connect( assistantButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(assistantSlot()) );
+        connect( horizontalWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
+            TQ_SLOT(showPage(const TQString&)) );
+        connect( verticalWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
+            TQ_SLOT(showPage(const TQString&)) );
+        connect( cellWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
+            TQ_SLOT(showPage(const TQString&)) );
     }
 

Signals and slots are connected, so that the relevant pages will diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html index 33bed5d9..9aaab16d 100644 --- a/doc/html/helpviewer-example.html +++ b/doc/html/helpviewer-example.html @@ -155,26 +155,26 @@ private: browser->mimeSourceFactory()->setFilePath( _path ); browser->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); - connect( browser, SIGNAL( sourceChanged(const TQString& ) ), - this, SLOT( sourceChanged( const TQString&) ) ); + connect( browser, TQ_SIGNAL( sourceChanged(const TQString& ) ), + this, TQ_SLOT( sourceChanged( const TQString&) ) ); setCentralWidget( browser ); if ( !home_.isEmpty() ) browser->setSource( home_ ); - connect( browser, SIGNAL( highlighted( const TQString&) ), - statusBar(), SLOT( message( const TQString&)) ); + connect( browser, TQ_SIGNAL( highlighted( const TQString&) ), + statusBar(), TQ_SLOT( message( const TQString&)) ); resize( 640,700 ); TQPopupMenu* file = new TQPopupMenu( this ); - file->insertItem( tr("&New Window"), this, SLOT( newWindow() ), CTRL+Key_N ); - file->insertItem( tr("&Open File"), this, SLOT( openFile() ), CTRL+Key_O ); - file->insertItem( tr("&Print"), this, SLOT( print() ), CTRL+Key_P ); + file->insertItem( tr("&New Window"), this, TQ_SLOT( newWindow() ), CTRL+Key_N ); + file->insertItem( tr("&Open File"), this, TQ_SLOT( openFile() ), CTRL+Key_O ); + file->insertItem( tr("&Print"), this, TQ_SLOT( print() ), CTRL+Key_P ); file->insertSeparator(); - file->insertItem( tr("&Close"), this, SLOT( close() ), CTRL+Key_Q ); - file->insertItem( tr("E&xit"), tqApp, SLOT( closeAllWindows() ), CTRL+Key_X ); + file->insertItem( tr("&Close"), this, TQ_SLOT( close() ), CTRL+Key_Q ); + file->insertItem( tr("E&xit"), tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_X ); // The same three icons are used twice each. TQIconSet icon_back( TQPixmap("back.xpm") ); @@ -183,33 +183,33 @@ private: TQPopupMenu* go = new TQPopupMenu( this ); backwardId = go->insertItem( icon_back, - tr("&Backward"), browser, SLOT( backward() ), + tr("&Backward"), browser, TQ_SLOT( backward() ), CTRL+Key_Left ); forwardId = go->insertItem( icon_forward, - tr("&Forward"), browser, SLOT( forward() ), + tr("&Forward"), browser, TQ_SLOT( forward() ), CTRL+Key_Right ); - go->insertItem( icon_home, tr("&Home"), browser, SLOT( home() ) ); + go->insertItem( icon_home, tr("&Home"), browser, TQ_SLOT( home() ) ); TQPopupMenu* help = new TQPopupMenu( this ); - help->insertItem( tr("&About"), this, SLOT( about() ) ); - help->insertItem( tr("About &TQt"), this, SLOT( aboutTQt() ) ); + help->insertItem( tr("&About"), this, TQ_SLOT( about() ) ); + help->insertItem( tr("About &TQt"), this, TQ_SLOT( aboutTQt() ) ); hist = new TQPopupMenu( this ); TQStringList::Iterator it = history.begin(); for ( ; it != history.end(); ++it ) mHistory[ hist->insertItem( *it ) ] = *it; - connect( hist, SIGNAL( activated( int ) ), - this, SLOT( histChosen( int ) ) ); + connect( hist, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( histChosen( int ) ) ); bookm = new TQPopupMenu( this ); - bookm->insertItem( tr( "Add Bookmark" ), this, SLOT( addBookmark() ) ); + bookm->insertItem( tr( "Add Bookmark" ), this, TQ_SLOT( addBookmark() ) ); bookm->insertSeparator(); TQStringList::Iterator it2 = bookmarks.begin(); for ( ; it2 != bookmarks.end(); ++it2 ) mBookmarks[ bookm->insertItem( *it2 ) ] = *it2; - connect( bookm, SIGNAL( activated( int ) ), - this, SLOT( bookmChosen( int ) ) ); + connect( bookm, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( bookmChosen( int ) ) ); menuBar()->insertItem( tr("&File"), file ); menuBar()->insertItem( tr("&Go"), go ); @@ -220,29 +220,29 @@ private: menuBar()->setItemEnabled( forwardId, FALSE); menuBar()->setItemEnabled( backwardId, FALSE); - connect( browser, SIGNAL( backwardAvailable( bool ) ), - this, SLOT( setBackwardAvailable( bool ) ) ); - connect( browser, SIGNAL( forwardAvailable( bool ) ), - this, SLOT( setForwardAvailable( bool ) ) ); + connect( browser, TQ_SIGNAL( backwardAvailable( bool ) ), + this, TQ_SLOT( setBackwardAvailable( bool ) ) ); + connect( browser, TQ_SIGNAL( forwardAvailable( bool ) ), + this, TQ_SLOT( setForwardAvailable( bool ) ) ); TQToolBar* toolbar = new TQToolBar( this ); addToolBar( toolbar, "Toolbar"); TQToolButton* button; - button = new TQToolButton( icon_back, tr("Backward"), "", browser, SLOT(backward()), toolbar ); - connect( browser, SIGNAL( backwardAvailable(bool) ), button, SLOT( setEnabled(bool) ) ); + button = new TQToolButton( icon_back, tr("Backward"), "", browser, TQ_SLOT(backward()), toolbar ); + connect( browser, TQ_SIGNAL( backwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); button->setEnabled( FALSE ); - button = new TQToolButton( icon_forward, tr("Forward"), "", browser, SLOT(forward()), toolbar ); - connect( browser, SIGNAL( forwardAvailable(bool) ), button, SLOT( setEnabled(bool) ) ); + button = new TQToolButton( icon_forward, tr("Forward"), "", browser, TQ_SLOT(forward()), toolbar ); + connect( browser, TQ_SIGNAL( forwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); button->setEnabled( FALSE ); - button = new TQToolButton( icon_home, tr("Home"), "", browser, SLOT(home()), toolbar ); + button = new TQToolButton( icon_home, tr("Home"), "", browser, TQ_SLOT(home()), toolbar ); toolbar->addSeparator(); pathCombo = new TQComboBox( TRUE, toolbar ); - connect( pathCombo, SIGNAL( activated( const TQString & ) ), - this, SLOT( pathSelected( const TQString & ) ) ); + connect( pathCombo, TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_SLOT( pathSelected( const TQString & ) ) ); toolbar->setStretchableWidget( pathCombo ); setRightJustification( TRUE ); setDockEnabled( DockLeft, FALSE ); @@ -462,8 +462,8 @@ int main( int argc, char ** argv ) else help->showMaximized(); - TQObject::connect( &a, SIGNAL(lastWindowClosed()), - &a, SLOT(quit()) ); + TQObject::connect( &a, TQ_SIGNAL(lastWindowClosed()), + &a, TQ_SLOT(quit()) ); return a.exec(); } diff --git a/doc/html/httpd-example.html b/doc/html/httpd-example.html index f2626a43..0839b8f6 100644 --- a/doc/html/httpd-example.html +++ b/doc/html/httpd-example.html @@ -81,8 +81,8 @@ public: // works asynchronouslyl, this means that all the communication is done // in the two slots readClient() and discardClient(). TQSocket* s = new TQSocket( this ); - connect( s, SIGNAL(readyRead()), this, SLOT(readClient()) ); - connect( s, SIGNAL(delayedCloseFinished()), this, SLOT(discardClient()) ); + connect( s, TQ_SIGNAL(readyRead()), this, TQ_SLOT(readClient()) ); + connect( s, TQ_SIGNAL(delayedCloseFinished()), this, TQ_SLOT(discardClient()) ); s->setSocket( socket ); emit newConnect(); } @@ -142,10 +142,10 @@ public: infoText = new TQTextView( this ); TQPushButton *quit = new TQPushButton( "quit" , this ); - connect( httpd, SIGNAL(newConnect()), SLOT(newConnect()) ); - connect( httpd, SIGNAL(endConnect()), SLOT(endConnect()) ); - connect( httpd, SIGNAL(wroteToClient()), SLOT(wroteToClient()) ); - connect( quit, SIGNAL(pressed()), tqApp, SLOT(quit()) ); + connect( httpd, TQ_SIGNAL(newConnect()), TQ_SLOT(newConnect()) ); + connect( httpd, TQ_SIGNAL(endConnect()), TQ_SLOT(endConnect()) ); + connect( httpd, TQ_SIGNAL(wroteToClient()), TQ_SLOT(wroteToClient()) ); + connect( quit, TQ_SIGNAL(pressed()), tqApp, TQ_SLOT(quit()) ); } ~HttpInfo() diff --git a/doc/html/i18n-example.html b/doc/html/i18n-example.html index 3ed7e40f..0163de3b 100644 --- a/doc/html/i18n-example.html +++ b/doc/html/i18n-example.html @@ -112,7 +112,7 @@ private: setCentralWidget(central); TQPopupMenu* file = new TQPopupMenu(this); - file->insertItem( tr("E&xit"), tqApp, SLOT(quit()), + file->insertItem( tr("E&xit"), tqApp, TQ_SLOT(quit()), TQAccel::stringToKey(tr("Ctrl+Q")) ); menuBar()->insertItem( tr("&File"), file ); @@ -195,7 +195,7 @@ public: vb->setAutoAdd(TRUE); hb = 0; sm = new TQSignalMapper(this); - connect(sm,SIGNAL(mapped(int)),this,SLOT(done(int))); + connect(sm,TQ_SIGNAL(mapped(int)),this,TQ_SLOT(done(int))); } void addButtons( const TQString& cancel=TQString::null, const TQString& ok=TQString::null, @@ -216,7 +216,7 @@ public: hb = new TQHBox(this); TQPushButton *c = new TQPushButton(text, hb); sm->setMapping(c,result); - connect(c,SIGNAL(clicked()),sm,SLOT(map())); + connect(c,TQ_SIGNAL(clicked()),sm,TQ_SLOT(map())); } private: @@ -293,7 +293,7 @@ int main( int argc, char** argv ) MyWidget* w = showLang((const char*)qm[i]); if( w == 0 ) exit( 0 ); - TQObject::connect(w, SIGNAL(closed()), tqApp, SLOT(quit())); + TQObject::connect(w, TQ_SIGNAL(closed()), tqApp, TQ_SLOT(quit())); w->setGeometry(x,y,197,356); w->show(); if ( tight ) { diff --git a/doc/html/i18n.html b/doc/html/i18n.html index 9cd85c5b..837fb8cc 100644 --- a/doc/html/i18n.html +++ b/doc/html/i18n.html @@ -263,7 +263,7 @@ your application, translators won't be able to override it. The correct idiom is

     TQPopupMenu *file = new TQPopupMenu( this );
-    file->insertItem( tr("&Quit"), this, SLOT(quit()),
+    file->insertItem( tr("&Quit"), this, TQ_SLOT(quit()),
                       TQKeySequence(tr("Ctrl+Q", "File|Quit")) );
 
diff --git a/doc/html/iconview-example.html b/doc/html/iconview-example.html index 4454a967..fe9db0dc 100644 --- a/doc/html/iconview-example.html +++ b/doc/html/iconview-example.html @@ -101,9 +101,9 @@ int main( int argc, char **argv ) qiconview.setCaption( "TQt Example - Iconview" ); ListenDND listen_dnd( &qiconview ); - TQObject::connect( &qiconview, SIGNAL( dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ), - &listen_dnd, SLOT( dropped( TQDropEvent * ) ) ); - TQObject::connect( &qiconview, SIGNAL( moved() ), &listen_dnd, SLOT( moved() ) ); + TQObject::connect( &qiconview, TQ_SIGNAL( dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ), + &listen_dnd, TQ_SLOT( dropped( TQDropEvent * ) ) ); + TQObject::connect( &qiconview, TQ_SIGNAL( moved() ), &listen_dnd, TQ_SLOT( moved() ) ); a.setMainWidget( &qiconview ); qiconview.show(); diff --git a/doc/html/iconview-simple_dd-main-cpp.html b/doc/html/iconview-simple_dd-main-cpp.html index c43a87b9..09ac4629 100644 --- a/doc/html/iconview-simple_dd-main-cpp.html +++ b/doc/html/iconview-simple_dd-main-cpp.html @@ -204,8 +204,8 @@ int main( int argc, char *argv[] ) // Set up the connection so that we can drop items into the icon view TQObject::connect( - iv, SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), - iv, SLOT(slotNewItem(TQDropEvent*, const TQValueList<TQIconDragItem>&))); + iv, TQ_SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), + iv, TQ_SLOT(slotNewItem(TQDropEvent*, const TQValueList<TQIconDragItem>&))); // Populate the TQIconView with icons DDIconViewItem *item; diff --git a/doc/html/layout-example.html b/doc/html/layout-example.html index c79f41ac..99519f00 100644 --- a/doc/html/layout-example.html +++ b/doc/html/layout-example.html @@ -76,7 +76,7 @@ public: menubar->setSeparator( TQMenuBar::InWindowsStyle ); TQPopupMenu* popup; popup = new TQPopupMenu( this ); - popup->insertItem( "&Quit", tqApp, SLOT(quit()) ); + popup->insertItem( "&Quit", tqApp, TQ_SLOT(quit()) ); menubar->insertItem( "&File", popup ); // ...and tell the layout about it. diff --git a/doc/html/lineedits-example.html b/doc/html/lineedits-example.html index 90455fa7..c450cc8a 100644 --- a/doc/html/lineedits-example.html +++ b/doc/html/lineedits-example.html @@ -125,9 +125,9 @@ protected slots: combo1->insertItem( "Normal" ); combo1->insertItem( "Password" ); combo1->insertItem( "No Echo" ); - // ...and connect the activated() SIGNAL with the slotEchoChanged() SLOT to be able + // ...and connect the activated() TQ_SIGNAL with the slotEchoChanged() TQ_SLOT to be able // to react when an item is selected - connect( combo1, SIGNAL( activated( int ) ), this, SLOT( slotEchoChanged( int ) ) ); + connect( combo1, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotEchoChanged( int ) ) ); // insert the first LineEdit lined1 = new TQLineEdit( this ); @@ -147,8 +147,8 @@ protected slots: combo2->insertItem( "No Validator" ); combo2->insertItem( "Integer Validator" ); combo2->insertItem( "Double Validator" ); - // ...and again the activated() SIGNAL gets connected with a SLOT - connect( combo2, SIGNAL( activated( int ) ), this, SLOT( slotValidatorChanged( int ) ) ); + // ...and again the activated() TQ_SIGNAL gets connected with a TQ_SLOT + connect( combo2, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotValidatorChanged( int ) ) ); // and the second LineEdit lined2 = new TQLineEdit( this ); @@ -168,8 +168,8 @@ protected slots: combo3->insertItem( "Left" ); combo3->insertItem( "Centered" ); combo3->insertItem( "Right" ); - // ...and again the activated() SIGNAL gets connected with a SLOT - connect( combo3, SIGNAL( activated( int ) ), this, SLOT( slotAlignmentChanged( int ) ) ); + // ...and again the activated() TQ_SIGNAL gets connected with a TQ_SLOT + connect( combo3, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotAlignmentChanged( int ) ) ); // and the third lineedit lined3 = new TQLineEdit( this ); @@ -192,8 +192,8 @@ protected slots: combo4->insertItem( "License key" ); // ...this time we use the activated( const TQString & ) signal - connect( combo4, SIGNAL( activated( int ) ), - this, SLOT( slotInputMaskChanged( int ) ) ); + connect( combo4, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( slotInputMaskChanged( int ) ) ); // and the fourth lineedit lined4 = new TQLineEdit( this ); @@ -211,8 +211,8 @@ protected slots: combo5 = new TQComboBox( FALSE, row5 ); combo5->insertItem( "False" ); combo5->insertItem( "True" ); - // ...and again the activated() SIGNAL gets connected with a SLOT - connect( combo5, SIGNAL( activated( int ) ), this, SLOT( slotReadOnlyChanged( int ) ) ); + // ...and again the activated() TQ_SIGNAL gets connected with a TQ_SLOT + connect( combo5, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotReadOnlyChanged( int ) ) ); // and the last lineedit lined5 = new TQLineEdit( this ); @@ -223,7 +223,7 @@ protected slots: } /* - * SLOT slotEchoChanged( int i ) + * TQ_SLOT slotEchoChanged( int i ) * * i contains the number of the item which the user has been chosen in the * first Combobox. According to this value, we set the Echo-Mode for the @@ -248,7 +248,7 @@ void LineEdits::slotEchoChanged( int i ) } /* - * SLOT slotValidatorChanged( int i ) + * TQ_SLOT slotValidatorChanged( int i ) * * i contains the number of the item which the user has been chosen in the * second Combobox. According to this value, we set a validator for the @@ -278,7 +278,7 @@ void LineEdits::slotValidatorChanged( int i ) /* - * SLOT slotAlignmentChanged( int i ) + * TQ_SLOT slotAlignmentChanged( int i ) * * i contains the number of the item which the user has been chosen in * the third Combobox. According to this value, we set an alignment @@ -303,7 +303,7 @@ void LineEdits::slotAlignmentChanged( int i ) } /* - * SLOT slotInputMaskChanged( const TQString &mask ) + * TQ_SLOT slotInputMaskChanged( const TQString &mask ) * * i contains the number of the item which the user has been chosen in * the third Combobox. According to this value, we set an input mask on @@ -332,7 +332,7 @@ void LineEdits::slotInputMaskChanged( int i ) } /* - * SLOT slotReadOnlyChanged( int i ) + * TQ_SLOT slotReadOnlyChanged( int i ) * * i contains the number of the item which the user has been chosen in * the fourth Combobox. According to this value, we toggle read-only. diff --git a/doc/html/linguist-manual-4.html b/doc/html/linguist-manual-4.html index 897b784c..4f7e2e97 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 );

Ctrl key accelerators are also translatable:

-
        file->insertItem( tr("E&xit"), tqApp, SLOT(quit()),
+
        file->insertItem( tr("E&xit"), tqApp, TQ_SLOT(quit()),
                           tr("Ctrl+Q", "Quit") );
 

It is strongly recommended that the two argument form of tr() is used for Ctrl key accelerators. The second argument is the only clue the translator has as to the function performed by the accelerator.

@@ -336,7 +336,7 @@ TRANSLATIONS = tt2_fr.ts \
        ArrowPad *ap = new ArrowPad( this, "arrow pad" );
 

We also call MainWindow::tr() twice, once for the menu item and once for the accelerator.

-
        file->insertItem( tr("E&xit"), tqApp, SLOT(quit()),
+
        file->insertItem( tr("E&xit"), tqApp, TQ_SLOT(quit()),
                           tr("Ctrl+Q", "Quit") );
 

Note the use of tr() 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 tr() for Ctrl key accelerators, the two argument form should be used with the second argument describing the function that the accelerator performs.

@@ -452,11 +452,11 @@ TRANSLATIONS = tt3_pt.ts
        setCaption( tr("Troll Print 1.0") );
 

We must translate the window's caption.

-
        file->insertItem( tr("E&xit"), tqApp, SLOT(quit()),
+
        file->insertItem( tr("E&xit"), tqApp, TQ_SLOT(quit()),
                           tr("Ctrl+Q", "Quit") );
         TQPopupMenu *help = new TQPopupMenu( this );
-        help->insertItem( tr("&About"), this, SLOT(about()), Key_F1 );
-        help->insertItem( tr("About &TQt"), this, SLOT(aboutTQt()) );
+        help->insertItem( tr("&About"), this, TQ_SLOT(about()), Key_F1 );
+        help->insertItem( tr("About &TQt"), this, TQ_SLOT(aboutTQt()) );
 
         menuBar()->insertItem( tr("&File"), file );
         menuBar()->insertSeparator();
diff --git a/doc/html/listbox-example.html b/doc/html/listbox-example.html
index 1e1a4f87..82fce5b3 100644
--- a/doc/html/listbox-example.html
+++ b/doc/html/listbox-example.html
@@ -135,7 +135,7 @@ private:
     bg->insert( b );
     v->addWidget( b );
     b->setChecked( TRUE );
-    connect( b, SIGNAL(clicked()), this, SLOT(setNumCols()) );
+    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setNumCols()) );
     TQHBoxLayout * h = new TQHBoxLayout;
     v->addLayout( h );
     h->addSpacing( 30 );
@@ -151,7 +151,7 @@ private:
                           this );
     bg->insert( b );
     v->addWidget( b );
-    connect( b, SIGNAL(clicked()), this, SLOT(setColsByWidth()) );
+    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setColsByWidth()) );
 
     v->addSpacing( 12 );
 
@@ -160,7 +160,7 @@ private:
                           this );
     bg->insert( b );
     v->addWidget( b );
-    connect( b, SIGNAL(clicked()), this, SLOT(setNumRows()) );
+    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setNumRows()) );
     h = new TQHBoxLayout;
     v->addLayout( h );
     h->addSpacing( 30 );
@@ -177,30 +177,30 @@ private:
                           this );
     bg->insert( b );
     v->addWidget( b );
-    connect( b, SIGNAL(clicked()), this, SLOT(setRowsByHeight()) );
+    connect( b, TQ_SIGNAL(clicked()), this, TQ_SLOT(setRowsByHeight()) );
 
     v->addSpacing( 12 );
 
     TQCheckBox * cb = new TQCheckBox( "Variable-height rows", this );
     cb->setChecked( TRUE );
-    connect( cb, SIGNAL(toggled(bool)), this, SLOT(setVariableHeight(bool)) );
+    connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setVariableHeight(bool)) );
     v->addWidget( cb );
     v->addSpacing( 6 );
 
     cb = new TQCheckBox( "Variable-width columns", this );
-    connect( cb, SIGNAL(toggled(bool)), this, SLOT(setVariableWidth(bool)) );
+    connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setVariableWidth(bool)) );
     v->addWidget( cb );
 
     cb = new TQCheckBox( "Extended-Selection", this );
-    connect( cb, SIGNAL(toggled(bool)), this, SLOT(setMultiSelection(bool)) );
+    connect( cb, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setMultiSelection(bool)) );
     v->addWidget( cb );
 
     TQPushButton *pb = new TQPushButton( "Sort ascending", this );
-    connect( pb, SIGNAL( clicked() ), this, SLOT( sortAscending() ) );
+    connect( pb, TQ_SIGNAL( clicked() ), this, TQ_SLOT( sortAscending() ) );
     v->addWidget( pb );
 
     pb = new TQPushButton( "Sort descending", this );
-    connect( pb, SIGNAL( clicked() ), this, SLOT( sortDescending() ) );
+    connect( pb, TQ_SIGNAL( clicked() ), this, TQ_SLOT( sortDescending() ) );
     v->addWidget( pb );
 
     v->addStretch( 100 );
@@ -214,8 +214,8 @@ private:
     rows->setRange( 1, 256 );
     rows->setValue( 256 );
 
-    connect( columns, SIGNAL(valueChanged(int)), this, SLOT(setNumCols()) );
-    connect( rows, SIGNAL(valueChanged(int)), this, SLOT(setNumRows()) );
+    connect( columns, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(setNumCols()) );
+    connect( rows, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(setNumRows()) );
 }
 
 
diff --git a/doc/html/listboxcombo-example.html b/doc/html/listboxcombo-example.html
index a70a7ce3..668bff71 100644
--- a/doc/html/listboxcombo-example.html
+++ b/doc/html/listboxcombo-example.html
@@ -166,8 +166,8 @@ protected:
 
     // Create a pushbutton...
     TQPushButton *arrow1 = new TQPushButton( " -> ", row1 );
-    // ...and connect the clicked SIGNAL with the SLOT slotLeft2Right
-    connect( arrow1, SIGNAL( clicked() ), this, SLOT( slotLeft2Right() ) );
+    // ...and connect the clicked TQ_SIGNAL with the TQ_SLOT slotLeft2Right
+    connect( arrow1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotLeft2Right() ) );
 
     // create an empty single-selection ListBox
     lb2 = new TQListBox( row1 );
@@ -212,12 +212,12 @@ protected:
     }
 
     // Connect the activated SIGNALs of the Comboboxes with SLOTs
-    connect( cb1, SIGNAL( activated( const TQString & ) ), this, SLOT( slotCombo1Activated( const TQString & ) ) );
-    connect( cb2, SIGNAL( activated( const TQString & ) ), this, SLOT( slotCombo2Activated( const TQString & ) ) );
+    connect( cb1, TQ_SIGNAL( activated( const TQString & ) ), this, TQ_SLOT( slotCombo1Activated( const TQString & ) ) );
+    connect( cb2, TQ_SIGNAL( activated( const TQString & ) ), this, TQ_SLOT( slotCombo2Activated( const TQString & ) ) );
 }
 
 /*
- * SLOT slotLeft2Right
+ * TQ_SLOT slotLeft2Right
  *
  * Copies all selected items of the first ListBox into the
  * second ListBox
@@ -242,7 +242,7 @@ void ListBoxCombo::slotLeft2Right()
 }
 
 /*
- * SLOT slotCombo1Activated( const TQString &s )
+ * TQ_SLOT slotCombo1Activated( const TQString &s )
  *
  * Sets the text of the item which the user just selected
  * in the first Combobox (and is now the value of s) to
@@ -255,7 +255,7 @@ void ListBoxCombo::slotCombo1Activated( const TQString &s )
+ * TQ_SLOT slotCombo2Activated( const TQString &s )
  *
  * Sets the text of the item which the user just selected
  * in the second Combobox (and is now the value of s) to
diff --git a/doc/html/listviews-example.html b/doc/html/listviews-example.html
index e7600194..d22ed98b 100644
--- a/doc/html/listviews-example.html
+++ b/doc/html/listviews-example.html
@@ -339,20 +339,20 @@ void FolderListItem::insertSubFolders( const TQPopupMenu( messages );
     for( int i = 1; i <= 10; i++ )
         menu->insertItem( TQString( "Context Item %1" ).arg( i ) );
-    connect(messages, SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
-            this, SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) );
+    connect(messages, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
+            this, TQ_SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) );
     vsplitter->setResizeMode( messages, TQSplitter::KeepSize );
 
     message = new TQLabel( vsplitter );
     message->setAlignment( TQt::AlignTop );
     message->setBackgroundMode( PaletteBase );
 
-    connect( folders, SIGNAL( selectionChanged( TQListViewItem* ) ),
-             this, SLOT( slotFolderChanged( TQListViewItem* ) ) );
-    connect( messages, SIGNAL( selectionChanged() ),
-             this, SLOT( slotMessageChanged() ) );
-    connect( messages, SIGNAL( currentChanged( TQListViewItem * ) ),
-             this, SLOT( slotMessageChanged() ) );
+    connect( folders, TQ_SIGNAL( selectionChanged( TQListViewItem* ) ),
+             this, TQ_SLOT( slotFolderChanged( TQListViewItem* ) ) );
+    connect( messages, TQ_SIGNAL( selectionChanged() ),
+             this, TQ_SLOT( slotMessageChanged() ) );
+    connect( messages, TQ_SIGNAL( currentChanged( TQListViewItem * ) ),
+             this, TQ_SLOT( slotMessageChanged() ) );
 
     messages->setSelectionMode( TQListView::Extended );
     // some preparations
diff --git a/doc/html/mail-example.html b/doc/html/mail-example.html
index 2b825211..edee5f5e 100644
--- a/doc/html/mail-example.html
+++ b/doc/html/mail-example.html
@@ -127,14 +127,14 @@ private:
             const TQString &body )
 {
     socket = new TQSocket( this );
-    connect ( socket, SIGNAL( readyRead() ),
-              this, SLOT( readyRead() ) );
-    connect ( socket, SIGNAL( connected() ),
-              this, SLOT( connected() ) );
+    connect ( socket, TQ_SIGNAL( readyRead() ),
+              this, TQ_SLOT( readyRead() ) );
+    connect ( socket, TQ_SIGNAL( connected() ),
+              this, TQ_SLOT( connected() ) );
 
     mxLookup = new TQDns( to.mid( to.find( '@' )+1 ), TQDns::Mx );
-    connect( mxLookup, SIGNAL(resultsReady()),
-             this, SLOT(dnsLookupHelper()) );
+    connect( mxLookup, TQ_SIGNAL(resultsReady()),
+             this, TQ_SLOT(dnsLookupHelper()) );
 
     message = TQString::fromLatin1( "From: " ) + from +
               TQString::fromLatin1( "\nTo: " ) + to +
diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html
index 50684724..40f8b098 100644
--- a/doc/html/mdi-example.html
+++ b/doc/html/mdi-example.html
@@ -188,12 +188,12 @@ const char * filePrintText = "Click this button to print the file you "
     openIcon = TQPixmap( fileopen );
     TQToolButton * fileOpen
         = new TQToolButton( openIcon, "Open File", TQString::null,
-                           this, SLOT(load()), fileTools, "open file" );
+                           this, TQ_SLOT(load()), fileTools, "open file" );
 
     saveIcon = TQPixmap( filesave );
     TQToolButton * fileSave
         = new TQToolButton( saveIcon, "Save File", TQString::null,
-                           this, SLOT(save()), fileTools, "save file" );
+                           this, TQ_SLOT(save()), fileTools, "save file" );
 
 #ifndef TQT_NO_PRINTER
     printer = new TQPrinter( TQPrinter::HighResolution );
@@ -202,7 +202,7 @@ const char * filePrintText = "Click this button to print the file you "
     printIcon = TQPixmap( fileprint );
     TQToolButton * filePrint
         = new TQToolButton( printIcon, "Print File", TQString::null,
-                           this, SLOT(print()), fileTools, "print file" );
+                           this, TQ_SLOT(print()), fileTools, "print file" );
     TQWhatsThis::add( filePrint, filePrintText );
 #endif
 
@@ -214,41 +214,41 @@ const char * filePrintText = "Click this button to print the file you "
     TQPopupMenu * file = new TQPopupMenu( this );
     menuBar()->insertItem( "&File", file );
 
-    file->insertItem( "&New", this, SLOT(newDoc()), CTRL+Key_N );
+    file->insertItem( "&New", this, TQ_SLOT(newDoc()), CTRL+Key_N );
 
     id = file->insertItem( openIcon, "&Open...",
-                           this, SLOT(load()), CTRL+Key_O );
+                           this, TQ_SLOT(load()), CTRL+Key_O );
     file->setWhatsThis( id, fileOpenText );
 
     id = file->insertItem( saveIcon, "&Save",
-                           this, SLOT(save()), CTRL+Key_S );
+                           this, TQ_SLOT(save()), CTRL+Key_S );
     file->setWhatsThis( id, fileSaveText );
-    id = file->insertItem( "Save &As...", this, SLOT(saveAs()) );
+    id = file->insertItem( "Save &As...", this, TQ_SLOT(saveAs()) );
     file->setWhatsThis( id, fileSaveText );
 #ifndef TQT_NO_PRINTER
     file->insertSeparator();
     id = file->insertItem( printIcon, "&Print...",
-                           this, SLOT(print()), CTRL+Key_P );
+                           this, TQ_SLOT(print()), CTRL+Key_P );
     file->setWhatsThis( id, filePrintText );
 #endif
     file->insertSeparator();
-    file->insertItem( "&Close", this, SLOT(closeWindow()), CTRL+Key_W );
-    file->insertItem( "&Quit", tqApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
+    file->insertItem( "&Close", this, TQ_SLOT(closeWindow()), CTRL+Key_W );
+    file->insertItem( "&Quit", tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q );
 
     windowsMenu = new TQPopupMenu( this );
     windowsMenu->setCheckable( TRUE );
-    connect( windowsMenu, SIGNAL( aboutToShow() ),
-             this, SLOT( windowsMenuAboutToShow() ) );
+    connect( windowsMenu, TQ_SIGNAL( aboutToShow() ),
+             this, TQ_SLOT( windowsMenuAboutToShow() ) );
     menuBar()->insertItem( "&Windows", windowsMenu );
 
     menuBar()->insertSeparator();
     TQPopupMenu * help = new TQPopupMenu( this );
     menuBar()->insertItem( "&Help", help );
 
-    help->insertItem( "&About", this, SLOT(about()), Key_F1);
-    help->insertItem( "About &TQt", this, SLOT(aboutTQt()));
+    help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1);
+    help->insertItem( "About &TQt", this, TQ_SLOT(aboutTQt()));
     help->insertSeparator();
-    help->insertItem( "What's &This", this, SLOT(whatsThis()), SHIFT+Key_F1);
+    help->insertItem( "What's &This", this, TQ_SLOT(whatsThis()), SHIFT+Key_F1);
 
     TQVBox* vb = new TQVBox( this );
     vb->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
@@ -272,7 +272,7 @@ ApplicationWindow::~ApplicationWindow()
 MDIWindow* ApplicationWindow::newDoc()
 {
     MDIWindow* w = new MDIWindow( ws, 0, WDestructiveClose );
-    connect( w, SIGNAL( message(const TQString&, int) ), statusBar(), SLOT( message(const TQString&, int )) );
+    connect( w, TQ_SIGNAL( message(const TQString&, int) ), statusBar(), TQ_SLOT( message(const TQString&, int )) );
     w->setCaption("unnamed document");
     w->setIcon( TQPixmap("document.xpm") );
     // show the very first window in maximized mode
@@ -344,9 +344,9 @@ void ApplicationWindow::aboutTQt()
 void ApplicationWindow::windowsMenuAboutToShow()
 {
     windowsMenu->clear();
-    int cascadeId = windowsMenu->insertItem("&Cascade", ws, SLOT(cascade() ) );
-    int tileId = windowsMenu->insertItem("&Tile", ws, SLOT(tile() ) );
-    int horTileId = windowsMenu->insertItem("Tile &Horizontally", this, SLOT(tileHorizontal() ) );
+    int cascadeId = windowsMenu->insertItem("&Cascade", ws, TQ_SLOT(cascade() ) );
+    int tileId = windowsMenu->insertItem("&Tile", ws, TQ_SLOT(tile() ) );
+    int horTileId = windowsMenu->insertItem("Tile &Horizontally", this, TQ_SLOT(tileHorizontal() ) );
     if ( ws->windowList().isEmpty() ) {
         windowsMenu->setItemEnabled( cascadeId, FALSE );
         windowsMenu->setItemEnabled( tileId, FALSE );
@@ -356,7 +356,7 @@ void ApplicationWindow::windowsMenuAboutToShow()
     TQWidgetList windows = ws->windowList();
     for ( int i = 0; i < int(windows.count()); ++i ) {
         int id = windowsMenu->insertItem(windows.at(i)->caption(),
-                                         this, SLOT( windowsMenuActivated( int ) ) );
+                                         this, TQ_SLOT( windowsMenuActivated( int ) ) );
         windowsMenu->setItemParameter( id, i );
         windowsMenu->setItemChecked( id, ws->activeWindow() == windows.at(i) );
     }
@@ -582,7 +582,7 @@ int main( int argc, char ** argv ) {
     a.setMainWidget(mw);
     mw->setCaption( "TQt Example - Multiple Documents Interface (MDI)" );
     mw->show();
-    a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
+    a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
     int res = a.exec();
     return res;
 }
diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html
index 89161446..1ae81bcf 100644
--- a/doc/html/menu-example.html
+++ b/doc/html/menu-example.html
@@ -227,27 +227,27 @@ private:
     TQPopupMenu *print = new TQPopupMenu( this );
     TQ_CHECK_PTR( print );
     print->insertTearOffHandle();
-    print->insertItem( "&Print to printer", this, SLOT(printer()) );
-    print->insertItem( "Print to &file", this, SLOT(file()) );
-    print->insertItem( "Print to fa&x", this, SLOT(fax()) );
+    print->insertItem( "&Print to printer", this, TQ_SLOT(printer()) );
+    print->insertItem( "Print to &file", this, TQ_SLOT(file()) );
+    print->insertItem( "Print to fa&x", this, TQ_SLOT(fax()) );
     print->insertSeparator();
-    print->insertItem( "Printer &Setup", this, SLOT(printerSetup()) );
+    print->insertItem( "Printer &Setup", this, TQ_SLOT(printerSetup()) );
 
     TQPopupMenu *file = new TQPopupMenu( this );
     TQ_CHECK_PTR( file );
-    file->insertItem( p1, "&Open",  this, SLOT(open()), CTRL+Key_O );
-    file->insertItem( p2, "&New", this, SLOT(news()), CTRL+Key_N );
-    file->insertItem( p3, "&Save", this, SLOT(save()), CTRL+Key_S );
-    file->insertItem( "&Close", this, SLOT(closeDoc()), CTRL+Key_W );
+    file->insertItem( p1, "&Open",  this, TQ_SLOT(open()), CTRL+Key_O );
+    file->insertItem( p2, "&New", this, TQ_SLOT(news()), CTRL+Key_N );
+    file->insertItem( p3, "&Save", this, TQ_SLOT(save()), CTRL+Key_S );
+    file->insertItem( "&Close", this, TQ_SLOT(closeDoc()), CTRL+Key_W );
     file->insertSeparator();
     file->insertItem( "&Print", print, CTRL+Key_P );
     file->insertSeparator();
-    file->insertItem( "E&xit",  tqApp, SLOT(quit()), CTRL+Key_Q );
+    file->insertItem( "E&xit",  tqApp, TQ_SLOT(quit()), CTRL+Key_Q );
 
     TQPopupMenu *edit = new TQPopupMenu( this );
     TQ_CHECK_PTR( edit );
-    int undoID = edit->insertItem( "&Undo", this, SLOT(undo()) );
-    int redoID = edit->insertItem( "&Redo", this, SLOT(redo()) );
+    int undoID = edit->insertItem( "&Undo", this, TQ_SLOT(undo()) );
+    int redoID = edit->insertItem( "&Redo", this, TQ_SLOT(redo()) );
     edit->setItemEnabled( undoID, FALSE );
     edit->setItemEnabled( redoID, FALSE );
 
@@ -255,7 +255,7 @@ private:
     TQ_CHECK_PTR( options );
     options->insertTearOffHandle();
     options->setCaption("Options");
-    options->insertItem( "&Normal Font", this, SLOT(normal()) );
+    options->insertItem( "&Normal Font", this, TQ_SLOT(normal()) );
     options->insertSeparator();
 
     options->polish(); // adjust system settings
@@ -263,12 +263,12 @@ private:
     f.setBold( TRUE );
     boldID = options->insertItem( new MyMenuItem( "Bold", f ) );
     options->setAccel( CTRL+Key_B, boldID );
-    options->connectItem( boldID, this, SLOT(bold()) );
+    options->connectItem( boldID, this, TQ_SLOT(bold()) );
     f = font();
     f.setUnderline( TRUE );
     underlineID = options->insertItem( new MyMenuItem( "Underline", f ) );
     options->setAccel( CTRL+Key_U, underlineID );
-    options->connectItem( underlineID, this, SLOT(underline()) );
+    options->connectItem( underlineID, this, TQ_SLOT(underline()) );
 
     isBold = FALSE;
     isUnderline = FALSE;
@@ -277,8 +277,8 @@ private:
 
     TQPopupMenu *help = new TQPopupMenu( this );
     TQ_CHECK_PTR( help );
-    help->insertItem( "&About", this, SLOT(about()), CTRL+Key_H );
-    help->insertItem( "About &TQt", this, SLOT(aboutTQt()) );
+    help->insertItem( "&About", this, TQ_SLOT(about()), CTRL+Key_H );
+    help->insertItem( "About &TQt", this, TQ_SLOT(aboutTQt()) );
 
     // If we used a TQMainWindow we could use its built-in menuBar().
     menu = new TQMenuBar( this );
@@ -306,8 +306,8 @@ private:
     label->setLineWidth( 1 );
     label->setAlignment( AlignCenter );
 
-    connect( this,  SIGNAL(explain(const TQString&)),
-             label, SLOT(setText(const TQString&)) );
+    connect( this,  TQ_SIGNAL(explain(const TQString&)),
+             label, TQ_SLOT(setText(const TQString&)) );
 
     setMinimumSize( 100, 80 );
     setFocusPolicy( TQWidget::ClickFocus );
@@ -322,14 +322,14 @@ private:
         "Context Menu</b></u></font>", this );
     caption->setAlignment( TQt::AlignCenter );
     contextMenu->insertItem( caption );
-    contextMenu->insertItem( "&New",  this, SLOT(news()), CTRL+Key_N );
-    contextMenu->insertItem( "&Open...", this, SLOT(open()), CTRL+Key_O );
-    contextMenu->insertItem( "&Save", this, SLOT(save()), CTRL+Key_S );
+    contextMenu->insertItem( "&New",  this, TQ_SLOT(news()), CTRL+Key_N );
+    contextMenu->insertItem( "&Open...", this, TQ_SLOT(open()), CTRL+Key_O );
+    contextMenu->insertItem( "&Save", this, TQ_SLOT(save()), CTRL+Key_S );
     TQPopupMenu *submenu = new TQPopupMenu( this );
     TQ_CHECK_PTR( submenu );
-    submenu->insertItem( "&Print to printer", this, SLOT(printer()) );
-    submenu->insertItem( "Print to &file", this, SLOT(file()) );
-    submenu->insertItem( "Print to fa&x", this, SLOT(fax()) );
+    submenu->insertItem( "&Print to printer", this, TQ_SLOT(printer()) );
+    submenu->insertItem( "Print to &file", this, TQ_SLOT(file()) );
+    submenu->insertItem( "Print to fa&x", this, TQ_SLOT(fax()) );
     contextMenu->insertItem( "&Print", submenu );
     contextMenu->exec( TQCursor::pos() );
     delete contextMenu;
diff --git a/doc/html/motif-customwidget-example.html b/doc/html/motif-customwidget-example.html
index 01e80d33..26d3e488 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 )
     : TQMainWindow( 0, "mainwindow" )
 {
     TQPopupMenu *filemenu = new TQPopupMenu( this );
-    filemenu->insertItem( tr("&Quit"), tqApp, SLOT(quit()) );
+    filemenu->insertItem( tr("&Quit"), tqApp, TQ_SLOT(quit()) );
 
     menuBar()->insertItem( tr("&File"), filemenu );
     statusBar()->message( tr("This is a TQMainWindow with an XmText widget.") );
diff --git a/doc/html/movies-example.html b/doc/html/movies-example.html
index dd3967d8..0572b2d8 100644
--- a/doc/html/movies-example.html
+++ b/doc/html/movies-example.html
@@ -81,9 +81,9 @@ public:
         setBackgroundMode(NoBackground);
 
         // Get the movie to tell use when interesting things happen.
-        movie.connectUpdate(this, SLOT(movieUpdated(const TQRect&)));
-        movie.connectResize(this, SLOT(movieResized(const TQSize&)));
-        movie.connectStatus(this, SLOT(movieStatus(int)));
+        movie.connectUpdate(this, TQ_SLOT(movieUpdated(const TQRect&)));
+        movie.connectResize(this, TQ_SLOT(movieResized(const TQSize&)));
+        movie.connectStatus(this, TQ_SLOT(movieStatus(int)));
 
         setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Expanding));
     }
@@ -245,13 +245,13 @@ public:
         TQHBox* hb = new TQHBox(this);
         TQPushButton* btn;
         btn = new TQPushButton("<<", hb);
-        connect(btn, SIGNAL(clicked()), movie, SLOT(restart()));
+        connect(btn, TQ_SIGNAL(clicked()), movie, TQ_SLOT(restart()));
         btn = new TQPushButton("||", hb);
-        connect(btn, SIGNAL(clicked()), movie, SLOT(togglePause()));
+        connect(btn, TQ_SIGNAL(clicked()), movie, TQ_SLOT(togglePause()));
         btn = new TQPushButton(">|", hb);
-        connect(btn, SIGNAL(clicked()), movie, SLOT(step()));
+        connect(btn, TQ_SIGNAL(clicked()), movie, TQ_SLOT(step()));
         btn = new TQPushButton(">>|", hb);
-        connect(btn, SIGNAL(clicked()), movie, SLOT(step10()));
+        connect(btn, TQ_SIGNAL(clicked()), movie, TQ_SLOT(step10()));
     }
 };
 
@@ -277,8 +277,8 @@ public slots:
     //behave as in getOpenFilename
     setMode( ExistingFile );
     // When a file is selected, show it as a movie.
-    connect(this, SIGNAL(fileSelected(const TQString&)),
-            this, SLOT(startMovie(const TQString&)));
+    connect(this, TQ_SIGNAL(fileSelected(const TQString&)),
+            this, TQ_SLOT(startMovie(const TQString&)));
 }
 
 
@@ -317,7 +317,7 @@ int main(int argc, char **argv)
                 (void)new MovieScreen(argv[arg], TQMovie(argv[arg]), 0, 0,
                                       TQt::WDestructiveClose);
         }
-        TQObject::connect(tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit()));
+        TQObject::connect(tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit()));
     } else {
         // "GUI" mode - open a chooser for movies
         //
diff --git a/doc/html/network.html b/doc/html/network.html
index baf1057e..953b2ac3 100644
--- a/doc/html/network.html
+++ b/doc/html/network.html
@@ -146,12 +146,12 @@ TQUrlOperator op;
 
 MyClass::MyClass() : TQObject(), op( "ftp://ftp.trolltech.com" )
 {
-    connect( &op, SIGNAL( newChildren( const TQValueList<TQUrlInfo> &, TQNetworkOperation * ) ),
-             this, SLOT( slotInsertEntries( const TQValueList<TQUrlInfo> &, TQNetworkOperation * ) ) );
-    connect( &op, SIGNAL( start( TQNetworkOperation * ) ),
-             this, SLOT( slotStart( TQNetworkOperation *) ) );
-    connect( &op, SIGNAL( finished( TQNetworkOperation * ) ),
-             this, SLOT( slotFinished( TQNetworkOperation *) ) );
+    connect( &op, TQ_SIGNAL( newChildren( const TQValueList<TQUrlInfo> &, TQNetworkOperation * ) ),
+             this, TQ_SLOT( slotInsertEntries( const TQValueList<TQUrlInfo> &, TQNetworkOperation * ) ) );
+    connect( &op, TQ_SIGNAL( start( TQNetworkOperation * ) ),
+             this, TQ_SLOT( slotStart( TQNetworkOperation *) ) );
+    connect( &op, TQ_SIGNAL( finished( TQNetworkOperation * ) ),
+             this, TQ_SLOT( slotFinished( TQNetworkOperation *) ) );
 }
 
 void MyClass::slotInsertEntries( const TQValueList<TQUrlInfo> &info, TQNetworkOperation * )
diff --git a/doc/html/networkprotocol-example.html b/doc/html/networkprotocol-example.html
index 12f5c972..38fe4ece 100644
--- a/doc/html/networkprotocol-example.html
+++ b/doc/html/networkprotocol-example.html
@@ -116,16 +116,16 @@ protected slots:
 {
     // create the command socket and connect to its signals
     commandSocket = new TQSocket( this );
-    connect( commandSocket, SIGNAL( hostFound() ),
-             this, SLOT( hostFound() ) );
-    connect( commandSocket, SIGNAL( connected() ),
-             this, SLOT( connected() ) );
-    connect( commandSocket, SIGNAL( connectionClosed() ),
-             this, SLOT( closed() ) );
-    connect( commandSocket, SIGNAL( readyRead() ),
-             this, SLOT( readyRead() ) );
-    connect( commandSocket, SIGNAL( error( int ) ),
-             this, SLOT( error( int ) ) );
+    connect( commandSocket, TQ_SIGNAL( hostFound() ),
+             this, TQ_SLOT( hostFound() ) );
+    connect( commandSocket, TQ_SIGNAL( connected() ),
+             this, TQ_SLOT( connected() ) );
+    connect( commandSocket, TQ_SIGNAL( connectionClosed() ),
+             this, TQ_SLOT( closed() ) );
+    connect( commandSocket, TQ_SIGNAL( readyRead() ),
+             this, TQ_SLOT( readyRead() ) );
+    connect( commandSocket, TQ_SIGNAL( error( int ) ),
+             this, TQ_SLOT( error( int ) ) );
 }
 
 Nntp::~Nntp()
diff --git a/doc/html/ntqaccel.html b/doc/html/ntqaccel.html
index 9c8f02f4..b0d2c23c 100644
--- a/doc/html/ntqaccel.html
+++ b/doc/html/ntqaccel.html
@@ -92,7 +92,7 @@ Example:
 
         TQPushButton p( "&Exit", parent ); // automatic shortcut ALT+Key_E
         TQPopupMenu *fileMenu = new fileMenu( parent );
-        fileMenu->insertItem( "Undo", parent, SLOT(undo()), CTRL+Key_Z );
+        fileMenu->insertItem( "Undo", parent, TQ_SLOT(undo()), CTRL+Key_Z );
     

A TQAccel contains a list of accelerator items that can be @@ -138,7 +138,7 @@ combination. TQAccel *a = new TQAccel( myWindow ); // create accels for myWindow a->connectItem( a->insertItem(Key_P+CTRL), // adds Ctrl+P accelerator myWindow, // connected to myWindow's - SLOT(printDoc()) ); // printDoc() slot + TQ_SLOT(printDoc()) ); // printDoc() slot

See also TQKeyEvent, TQWidget::keyPressEvent(), TQMenuData::setAccel(), TQButton::accel, TQLabel::setBuddy(), TQKeySequence, GUI Design Handbook: Keyboard Shortcuts, and Miscellaneous Classes. @@ -180,7 +180,7 @@ Removes all accelerator items. Connects the accelerator item id to the slot member of receiver.

-        a->connectItem( 201, mainView, SLOT(quit()) );
+        a->connectItem( 201, mainView, TQ_SLOT(quit()) );
     

Of course, you can also send a signal as member. @@ -307,7 +307,7 @@ if s is not recognized. translations:

     TQPopupMenu *file = new TQPopupMenu( this );
-    file->insertItem( p1, tr("&Open..."), this, SLOT(open()),
+    file->insertItem( p1, tr("&Open..."), this, TQ_SLOT(open()),
                       TQAccel::stringToKey(tr("Ctrl+O", "File|Open")) );
   
diff --git a/doc/html/ntqaction.html b/doc/html/ntqaction.html index 909e8b63..68e8f682 100644 --- a/doc/html/ntqaction.html +++ b/doc/html/ntqaction.html @@ -140,7 +140,7 @@ the action. For example:
        fileOpenAction = new TQAction( TQPixmap( fileopen ), "&Open...",
                                       CTRL+Key_O, this, "open" );
-        connect( fileOpenAction, SIGNAL( activated() ) , this, SLOT( choose() ) );
+        connect( fileOpenAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( choose() ) );
 

We create a "File Save" action with a menu text of "&Save" and Ctrl+S as the keyboard accelerator. We connect the @@ -389,8 +389,8 @@ indicate the state, e.g.

        TQMainWindow * window = new TQMainWindow;
 
        TQAction * labelonoffaction = new TQAction( window, "labelonoff" );
-
        TQObject::connect( labelonoffaction, SIGNAL( toggled( bool ) ),
-                          window, SLOT( setUsesTextLabel( bool ) ) );
+
        TQObject::connect( labelonoffaction, TQ_SIGNAL( toggled( bool ) ),
+                          window, TQ_SLOT( setUsesTextLabel( bool ) ) );
 

See also activated(), toggleAction, and on. diff --git a/doc/html/ntqapplication.html b/doc/html/ntqapplication.html index f8e7cad9..8542c952 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:

     // the "Quit" menu entry should try to close all windows
     TQPopupMenu* file = new TQPopupMenu( this );
-    file->insertItem( "&Quit", tqApp, SLOT(closeAllWindows()), CTRL+Key_Q );
+    file->insertItem( "&Quit", tqApp, TQ_SLOT(closeAllWindows()), CTRL+Key_Q );
 
     // when the last window is closed, the application should quit
-    connect( tqApp, SIGNAL( lastWindowClosed() ), tqApp, SLOT( quit() ) );
+    connect( tqApp, TQ_SIGNAL( lastWindowClosed() ), tqApp, TQ_SLOT( quit() ) );
   

The windows are closed in random order, until one window does not @@ -1126,7 +1126,7 @@ you also often connect e.g. TQButton::clicked Example:

     TQPushButton *quitButton = new TQPushButton( "Quit" );
-    connect( quitButton, SIGNAL(clicked()), tqApp, SLOT(quit()) );
+    connect( quitButton, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
   

See also exit(), aboutToQuit(), lastWindowClosed(), and TQAction. diff --git a/doc/html/ntqkeysequence.html b/doc/html/ntqkeysequence.html index b6b93b9c..ae11016f 100644 --- a/doc/html/ntqkeysequence.html +++ b/doc/html/ntqkeysequence.html @@ -98,7 +98,7 @@ with commas, e.g. "Alt+X,Ctrl+S,Q". translations:

         TQPopupMenu *file = new TQPopupMenu( this );
-        file->insertItem( tr("&Open..."), this, SLOT(open()),
+        file->insertItem( tr("&Open..."), this, TQ_SLOT(open()),
                           TQKeySequence( tr("Ctrl+O", "File|Open") ) );
     
diff --git a/doc/html/ntqmainwindow.html b/doc/html/ntqmainwindow.html index fc0fb104..178236eb 100644 --- a/doc/html/ntqmainwindow.html +++ b/doc/html/ntqmainwindow.html @@ -181,7 +181,7 @@ passing the TQMainWindow instance as the parent instead of the this poi
        TQPopupMenu * help = new TQPopupMenu( this );
         menuBar()->insertItem( "&Help", help );
 
-        help->insertItem( "&About", this, SLOT(about()), Key_F1 );
+        help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1 );
 

Here we've added a new menu with one menu item. The menu has been inserted into the menu bar that TQMainWindow provides by default @@ -193,7 +193,7 @@ will be called when the menu item is clicked. fileTools->setLabel( "File Operations" );

        TQToolButton * fileOpen
             = new TQToolButton( openIcon, "Open File", TQString::null,
-                               this, SLOT(choose()), fileTools, "open file" );
+                               this, TQ_SLOT(choose()), fileTools, "open file" );
 

This extract shows the creation of a toolbar with one toolbar button. TQMainWindow supplies four dock areas for toolbars. When a @@ -228,7 +228,7 @@ to the toolbar and menu.

        TQAction * fileOpenAction;
 
        fileOpenAction = new TQAction( TQPixmap( fileopen ), "&Open...",
                                       CTRL+Key_O, this, "open" );
-        connect( fileOpenAction, SIGNAL( activated() ) , this, SLOT( choose() ) );
+        connect( fileOpenAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( choose() ) );
 

Here we create an action with an icon which will be used in any menu and toolbar that the action is added to. We've also given the @@ -853,7 +853,7 @@ implemented as a main window object's slot. This way it can easily be used for popup menus, for example:

     TQPopupMenu * help = new TQPopupMenu( this );
-    help->insertItem( "What's &This", this , SLOT(whatsThis()), SHIFT+Key_F1);
+    help->insertItem( "What's &This", this , TQ_SLOT(whatsThis()), SHIFT+Key_F1);
     

See also TQWhatsThis::enterWhatsThisMode(). diff --git a/doc/html/ntqmenubar.html b/doc/html/ntqmenubar.html index 4dde93ad..143a14a9 100644 --- a/doc/html/ntqmenubar.html +++ b/doc/html/ntqmenubar.html @@ -118,8 +118,8 @@ appropriately whenever the parent is resized.

        TQPopupMenu *file = new TQPopupMenu( this );
-
        file->insertItem( p1, "&Open",  this, SLOT(open()), CTRL+Key_O );
-        file->insertItem( p2, "&New", this, SLOT(news()), CTRL+Key_N );
+
        file->insertItem( p1, "&Open",  this, TQ_SLOT(open()), CTRL+Key_O );
+        file->insertItem( p2, "&New", this, TQ_SLOT(news()), CTRL+Key_N );
 
        menu = new TQMenuBar( this );
 
        menu->insertItem( "&File", file );
 
@@ -268,8 +268,8 @@ connects it to the slot member in the object receiver.
         TQMenuBar   *mainMenu = new TQMenuBar;
         TQPopupMenu *fileMenu = new TQPopupMenu;
-        fileMenu->insertItem( "New",  myView, SLOT(newFile()), CTRL+Key_N );
-        fileMenu->insertItem( "Open", myView, SLOT(open()),    CTRL+Key_O );
+        fileMenu->insertItem( "New",  myView, TQ_SLOT(newFile()), CTRL+Key_N );
+        fileMenu->insertItem( "Open", myView, TQ_SLOT(open()),    CTRL+Key_O );
         mainMenu->insertItem( "File", fileMenu );
     
@@ -279,7 +279,7 @@ accelerator key. Use connectItem() an accelerator. (For translations use a string key sequence.):
-        fileMenu->insertItem( tr("Open"), myView, SLOT(open()),
+        fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()),
                               tr("Ctrl+O") );
     
diff --git a/doc/html/ntqmenudata.html b/doc/html/ntqmenudata.html index 0343f2cf..698bea5e 100644 --- a/doc/html/ntqmenudata.html +++ b/doc/html/ntqmenudata.html @@ -292,8 +292,8 @@ connects it to the slot member in the object receiver.
         TQMenuBar   *mainMenu = new TQMenuBar;
         TQPopupMenu *fileMenu = new TQPopupMenu;
-        fileMenu->insertItem( "New",  myView, SLOT(newFile()), CTRL+Key_N );
-        fileMenu->insertItem( "Open", myView, SLOT(open()),    CTRL+Key_O );
+        fileMenu->insertItem( "New",  myView, TQ_SLOT(newFile()), CTRL+Key_N );
+        fileMenu->insertItem( "Open", myView, TQ_SLOT(open()),    CTRL+Key_O );
         mainMenu->insertItem( "File", fileMenu );
     
@@ -303,7 +303,7 @@ accelerator key. Use connectItem() and key sequence.):
-        fileMenu->insertItem( tr("Open"), myView, SLOT(open()),
+        fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()),
                               tr("Ctrl+O") );
     
diff --git a/doc/html/ntqobject.html b/doc/html/ntqobject.html index 06ecf97e..e1233374 100644 --- a/doc/html/ntqobject.html +++ b/doc/html/ntqobject.html @@ -279,21 +279,21 @@ definition lacks the TQ_OBJECT macro. Connects signal from the sender object to member in object receiver, and returns TRUE if the connection succeeds; otherwise returns FALSE. -

You must use the SIGNAL() and SLOT() macros when specifying the signal +

You must use the TQ_SIGNAL() and TQ_SLOT() macros when specifying the signal and the member, for example:

     TQLabel     *label  = new TQLabel;
     TQScrollBar *scroll = new TQScrollBar;
-    TQObject::connect( scroll, SIGNAL(valueChanged(int)),
-                      label,  SLOT(setNum(int)) );
+    TQObject::connect( scroll, TQ_SIGNAL(valueChanged(int)),
+                      label,  TQ_SLOT(setNum(int)) );
     

This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return FALSE: -TQObject::connect( scroll, SIGNAL(valueChanged(int v)), -label, SLOT(setNum(int v)) ); +TQObject::connect( scroll, TQ_SIGNAL(valueChanged(int v)), +label, TQ_SLOT(setNum(int v)) );

A signal can also be connected to another signal:

     class MyWidget : public TQWidget
@@ -312,7 +312,7 @@ label,  SLOT(setNum(int v)) );
     MyWidget::MyWidget()
     {
         aButton = new TQPushButton( this );
-        connect( aButton, SIGNAL(clicked()), SIGNAL(myUsefulSignal()) );
+        connect( aButton, TQ_SIGNAL(clicked()), TQ_SIGNAL(myUsefulSignal()) );
     }
     
@@ -408,12 +408,12 @@ equivalent to the non-static overloaded function
  • Disconnect everything connected to a specific signal:
    -       disconnect( myObject, SIGNAL(mySignal()), 0, 0 );
    +       disconnect( myObject, TQ_SIGNAL(mySignal()), 0, 0 );
            
    equivalent to the non-static overloaded function
    -       myObject->disconnect( SIGNAL(mySignal()) );
    +       myObject->disconnect( TQ_SIGNAL(mySignal()) );
            
  • Disconnect a specific receiver: diff --git a/doc/html/ntqpopupmenu.html b/doc/html/ntqpopupmenu.html index 470a19a1..0d48975b 100644 --- a/doc/html/ntqpopupmenu.html +++ b/doc/html/ntqpopupmenu.html @@ -394,8 +394,8 @@ connects it to the slot member in the object receiver.
             TQMenuBar   *mainMenu = new TQMenuBar;
             TQPopupMenu *fileMenu = new TQPopupMenu;
    -        fileMenu->insertItem( "New",  myView, SLOT(newFile()), CTRL+Key_N );
    -        fileMenu->insertItem( "Open", myView, SLOT(open()),    CTRL+Key_O );
    +        fileMenu->insertItem( "New",  myView, TQ_SLOT(newFile()), CTRL+Key_N );
    +        fileMenu->insertItem( "Open", myView, TQ_SLOT(open()),    CTRL+Key_O );
             mainMenu->insertItem( "File", fileMenu );
         
    @@ -405,7 +405,7 @@ accelerator key. Use connectItem() an accelerator. (For translations use a string key sequence.):
    -        fileMenu->insertItem( tr("Open"), myView, SLOT(open()),
    +        fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()),
                                   tr("Ctrl+O") );
         
    diff --git a/doc/html/ntqprocess.html b/doc/html/ntqprocess.html index 22afc994..0f84b5b7 100644 --- a/doc/html/ntqprocess.html +++ b/doc/html/ntqprocess.html @@ -153,8 +153,8 @@ this: proc->addArgument( "i18n" ); proc->addArgument( "small_dialog.ui" ); - connect( proc, SIGNAL(readyReadStdout()), - this, SLOT(readFromStdout()) ); + connect( proc, TQ_SIGNAL(readyReadStdout()), + this, TQ_SLOT(readFromStdout()) );
  •         if ( !proc->start() ) {
                 // error handling
     
            }
    @@ -347,7 +347,7 @@ tryTerminate().
     is to do something like this:
     
             process->tryTerminate();
    -        TQTimer::singleShot( 5000, process, SLOT( kill() ) );
    +        TQTimer::singleShot( 5000, process, TQ_SLOT( kill() ) );
         

    This tries to terminate the process the nice way. If the process diff --git a/doc/html/ntqprogressdialog.html b/doc/html/ntqprogressdialog.html index 5a8fc488..37ecab85 100644 --- a/doc/html/ntqprogressdialog.html +++ b/doc/html/ntqprogressdialog.html @@ -148,9 +148,9 @@ Operation::Operation( TQObject *parent = 0 ) : TQObject( parent ), steps( 0 ) { pd = new TQProgressDialog( "Operation in progress.", "Cancel", 100 ); - connect( pd, SIGNAL(canceled()), this, SLOT(cancel()) ); + connect( pd, TQ_SIGNAL(canceled()), this, TQ_SLOT(cancel()) ); t = new TQTimer( this ); - connect( t, SIGNAL(timeout()), this, SLOT(perform()) ); + connect( t, TQ_SIGNAL(timeout()), this, TQ_SLOT(perform()) ); t->start( 0 ); } diff --git a/doc/html/ntqstatusbar.html b/doc/html/ntqstatusbar.html index 87200b25..3af2d523 100644 --- a/doc/html/ntqstatusbar.html +++ b/doc/html/ntqstatusbar.html @@ -92,8 +92,8 @@ message, call clear(). There are two variants of message(): that displays the message until the next clear() or message() and one that has a time limit:

    -        connect( loader, SIGNAL(progressMessage(const TQString&)),
    -                 statusBar(), SLOT(message(const TQString&)) );
    +        connect( loader, TQ_SIGNAL(progressMessage(const TQString&)),
    +                 statusBar(), TQ_SLOT(message(const TQString&)) );
     
             statusBar()->message("Loading...");  // Initial message
             loader.loadStuff();                  // Emits progress messages
    diff --git a/doc/html/ntqtimer.html b/doc/html/ntqtimer.html
    index b04fa1a9..b6789035 100644
    --- a/doc/html/ntqtimer.html
    +++ b/doc/html/ntqtimer.html
    @@ -71,7 +71,7 @@ parent object is destroyed.
     

    Example:

             TQTimer *timer = new TQTimer( myObject );
    -        connect( timer, SIGNAL(timeout()), myObject, SLOT(timerDone()) );
    +        connect( timer, TQ_SIGNAL(timeout()), myObject, TQ_SLOT(timerDone()) );
             timer->start( 2000, TRUE ); // 2 seconds single-shot timer
         
    @@ -84,7 +84,7 @@ processed. user interface:
             TQTimer *t = new TQTimer( myObject );
    -        connect( t, SIGNAL(timeout()), SLOT(processOneThing()) );
    +        connect( t, TQ_SIGNAL(timeout()), TQ_SLOT(processOneThing()) );
             t->start( 0, FALSE );
         
    @@ -147,7 +147,7 @@ to create a local TQTimer object. int main( int argc, char **argv ) { TQApplication a( argc, argv ); - TQTimer::singleShot( 10*60*1000, &a, SLOT(quit()) ); + TQTimer::singleShot( 10*60*1000, &a, TQ_SLOT(quit()) ); ... // create and show your widgets return a.exec(); } diff --git a/doc/html/popup-example.html b/doc/html/popup-example.html index ec60e3c0..f9dcd5b8 100644 --- a/doc/html/popup-example.html +++ b/doc/html/popup-example.html @@ -167,9 +167,9 @@ void FancyPopup::popup( TQWidget Frame::Frame(TQWidget* parent, const char* name): TQFrame(parent, name){ button1 = new TQPushButton("Simple Popup", this); - connect ( button1, SIGNAL( clicked() ), SLOT( button1Clicked() ) ); + connect ( button1, TQ_SIGNAL( clicked() ), TQ_SLOT( button1Clicked() ) ); button2 = new TQPushButton("Fancy Popup", this); - connect ( button2, SIGNAL( pressed() ), SLOT( button2Pressed() ) ); + connect ( button2, TQ_SIGNAL( pressed() ), TQ_SLOT( button2Pressed() ) ); TQBoxLayout * l = new TQHBoxLayout( this ); button1->setMaximumSize(button1->sizeHint()); @@ -189,11 +189,11 @@ void FancyPopup::popup( TQWidget popup1->setFrameStyle( WinPanel|Raised ); popup1->resize(150,100); TQLineEdit *tmpE = new TQLineEdit( popup1 ); - connect( tmpE, SIGNAL( returnPressed() ), popup1, SLOT( hide() ) ); + connect( tmpE, TQ_SIGNAL( returnPressed() ), popup1, TQ_SLOT( hide() ) ); tmpE->setGeometry(10,10, 130, 30); tmpE->setFocus(); TQPushButton *tmpB = new TQPushButton("Click me!", popup1); - connect( tmpB, SIGNAL( clicked() ), popup1, SLOT( close() ) ); + connect( tmpB, TQ_SIGNAL( clicked() ), popup1, TQ_SLOT( close() ) ); tmpB->setGeometry(10, 50, 130, 30); // the fancier version uses its own class. It will be shown when @@ -208,7 +208,7 @@ void FancyPopup::popup( TQWidget // tmpE = new TQLineEdit( popup2 ); // tmpE->setFocus(); -// connect( tmpE, SIGNAL( returnPressed() ), popup2, SLOT( close() ) ); +// connect( tmpE, TQ_SIGNAL( returnPressed() ), popup2, TQ_SLOT( close() ) ); // tmpE->setGeometry(10, 10, 130, 30); } diff --git a/doc/html/process-example.html b/doc/html/process-example.html index 0ee3cba5..d543ee68 100644 --- a/doc/html/process-example.html +++ b/doc/html/process-example.html @@ -82,8 +82,8 @@ private: // Layout output = new TQTextView( this ); quitButton = new TQPushButton( tr("Quit"), this ); - connect( quitButton, SIGNAL(clicked()), - tqApp, SLOT(quit()) ); + connect( quitButton, TQ_SIGNAL(clicked()), + tqApp, TQ_SLOT(quit()) ); resize( 500, 500 ); // TQProcess related code @@ -97,10 +97,10 @@ private: proc->addArgument( "i18n" ); proc->addArgument( "small_dialog.ui" ); - connect( proc, SIGNAL(readyReadStdout()), - this, SLOT(readFromStdout()) ); - connect( proc, SIGNAL(processExited()), - this, SLOT(scrollToTop()) ); + connect( proc, TQ_SIGNAL(readyReadStdout()), + this, TQ_SLOT(readFromStdout()) ); + connect( proc, TQ_SIGNAL(processExited()), + this, TQ_SLOT(scrollToTop()) ); if ( !proc->start() ) { // error handling diff --git a/doc/html/progress-example.html b/doc/html/progress-example.html index 63f2e907..266f5686 100644 --- a/doc/html/progress-example.html +++ b/doc/html/progress-example.html @@ -190,20 +190,20 @@ public: menubar->insertItem( "&File", file ); for (int i=first_draw_item; i<=last_draw_item; i++) file->insertItem( drawItemText(i), i ); - connect( menubar, SIGNAL(activated(int)), this, SLOT(doMenuItem(int)) ); + connect( menubar, TQ_SIGNAL(activated(int)), this, TQ_SLOT(doMenuItem(int)) ); file->insertSeparator(); - file->insertItem( "Quit", tqApp, SLOT(quit()) ); + file->insertItem( "Quit", tqApp, TQ_SLOT(quit()) ); options = new TQPopupMenu(); TQ_CHECK_PTR( options ); menubar->insertItem( "&Options", options ); - td_id = options->insertItem( "Timer driven", this, SLOT(timerDriven()) ); - ld_id = options->insertItem( "Loop driven", this, SLOT(loopDriven()) ); + td_id = options->insertItem( "Timer driven", this, TQ_SLOT(timerDriven()) ); + ld_id = options->insertItem( "Loop driven", this, TQ_SLOT(loopDriven()) ); options->insertSeparator(); - dl_id = options->insertItem( "Default label", this, SLOT(defaultLabel()) ); - cl_id = options->insertItem( "Custom label", this, SLOT(customLabel()) ); + dl_id = options->insertItem( "Default label", this, TQ_SLOT(defaultLabel()) ); + cl_id = options->insertItem( "Custom label", this, TQ_SLOT(customLabel()) ); options->insertSeparator(); - md_id = options->insertItem( "No minimum duration", this, SLOT(toggleMinimumDuration()) ); + md_id = options->insertItem( "No minimum duration", this, TQ_SLOT(toggleMinimumDuration()) ); options->setCheckable( TRUE ); loopDriven(); defaultLabel(); @@ -320,7 +320,7 @@ private: pb = newProgressDialog("Drawing rectangles.\n" "Using timer event.", n, FALSE); pb->setCaption("Please Wait"); - connect(pb, SIGNAL(cancelled()), this, SLOT(stopDrawing())); + connect(pb, TQ_SIGNAL(cancelled()), this, TQ_SLOT(stopDrawing())); enableDrawingItems(FALSE); startTimer(0); got_stop = FALSE; diff --git a/doc/html/progressbar-example.html b/doc/html/progressbar-example.html index 02b4b901..f2dc2d52 100644 --- a/doc/html/progressbar-example.html +++ b/doc/html/progressbar-example.html @@ -141,11 +141,11 @@ protected slots: toplayout->addMultiCellWidget( progress, 1, 1, 0, 1 ); // connect the clicked() SIGNALs of the pushbuttons to SLOTs - connect( start, SIGNAL( clicked() ), this, SLOT( slotStart() ) ); - connect( reset, SIGNAL( clicked() ), this, SLOT( slotReset() ) ); + connect( start, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotStart() ) ); + connect( reset, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotReset() ) ); - // connect the timeout() SIGNAL of the progress-timer to a SLOT - connect( &timer, SIGNAL( timeout() ), this, SLOT( slotTimeout() ) ); + // connect the timeout() TQ_SIGNAL of the progress-timer to a TQ_SLOT + connect( &timer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotTimeout() ) ); // Let's start with normal speed... normal->setChecked( TRUE ); @@ -157,9 +157,9 @@ protected slots: } /* - * SLOT slotStart + * TQ_SLOT slotStart * - * This SLOT is called if the user clicks start/pause/continue + * This TQ_SLOT is called if the user clicks start/pause/continue * button */ @@ -197,9 +197,9 @@ void ProgressBar::slotStart() } /* - * SLOT slotReset + * TQ_SLOT slotReset * - * This SLOT is called when the user clicks the reset button + * This TQ_SLOT is called when the user clicks the reset button */ void ProgressBar::slotReset() @@ -222,9 +222,9 @@ void ProgressBar::slotReset() } /* - * SLOT slotTimeout + * TQ_SLOT slotTimeout * - * This SLOT is called each ms when the timer is + * This TQ_SLOT is called each ms when the timer is * active (== progress is running) */ diff --git a/doc/html/qaction-application-example.html b/doc/html/qaction-application-example.html index fd030627..107e2775 100644 --- a/doc/html/qaction-application-example.html +++ b/doc/html/qaction-application-example.html @@ -141,12 +141,12 @@ private: TQAction * fileCloseAction, * fileQuitAction; fileNewAction = new TQAction( "&New", CTRL+Key_N, this, "new" ); - connect( fileNewAction, SIGNAL( activated() ) , this, - SLOT( newDoc() ) ); + connect( fileNewAction, TQ_SIGNAL( activated() ) , this, + TQ_SLOT( newDoc() ) ); fileOpenAction = new TQAction( TQPixmap( fileopen ), "&Open...", CTRL+Key_O, this, "open" ); - connect( fileOpenAction, SIGNAL( activated() ) , this, SLOT( choose() ) ); + connect( fileOpenAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( choose() ) ); const char * fileOpenText = "<p><img source=\"fileopen\"> " "Click this button to open a <em>new file</em>. <br>" @@ -158,7 +158,7 @@ private: fileSaveAction = new TQAction( TQPixmap( filesave ), "&Save", CTRL+Key_S, this, "save" ); - connect( fileSaveAction, SIGNAL( activated() ) , this, SLOT( save() ) ); + connect( fileSaveAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( save() ) ); const char * fileSaveText = "<p>Click this button to save the file you " "are editing. You will be prompted for a file name.\n" @@ -168,14 +168,14 @@ private: fileSaveAsAction = new TQAction( "Save File As", "Save &As...", 0, this, "save as" ); - connect( fileSaveAsAction, SIGNAL( activated() ) , this, - SLOT( saveAs() ) ); + connect( fileSaveAsAction, TQ_SIGNAL( activated() ) , this, + TQ_SLOT( saveAs() ) ); fileSaveAsAction->setWhatsThis( fileSaveText ); filePrintAction = new TQAction( "Print File", TQPixmap( fileprint ), "&Print...", CTRL+Key_P, this, "print" ); - connect( filePrintAction, SIGNAL( activated() ) , this, - SLOT( print() ) ); + connect( filePrintAction, TQ_SIGNAL( activated() ) , this, + TQ_SLOT( print() ) ); const char * filePrintText = "Click this button to print the file you " "are editing.\n You can also select the Print " @@ -184,13 +184,13 @@ private: fileCloseAction = new TQAction( "Close", "&Close", CTRL+Key_W, this, "close" ); - connect( fileCloseAction, SIGNAL( activated() ) , this, - SLOT( close() ) ); + connect( fileCloseAction, TQ_SIGNAL( activated() ) , this, + TQ_SLOT( close() ) ); fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this, "quit" ); - connect( fileQuitAction, SIGNAL( activated() ) , tqApp, - SLOT( closeAllWindows() ) ); + connect( fileQuitAction, TQ_SIGNAL( activated() ) , tqApp, + TQ_SLOT( closeAllWindows() ) ); // populate a tool bar with some actions @@ -223,10 +223,10 @@ private: TQPopupMenu * help = new TQPopupMenu( this ); menuBar()->insertItem( "&Help", help ); - help->insertItem( "&About", this, SLOT(about()), Key_F1 ); - help->insertItem( "About &TQt", this, SLOT(aboutTQt()) ); + help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1 ); + help->insertItem( "About &TQt", this, TQ_SLOT(aboutTQt()) ); help->insertSeparator(); - help->insertItem( "What's &This", this, SLOT(whatsThis()), + help->insertItem( "What's &This", this, TQ_SLOT(whatsThis()), SHIFT+Key_F1 ); @@ -421,7 +421,7 @@ int main( int argc, char ** argv ) { ApplicationWindow * mw = new ApplicationWindow(); mw->setCaption( "Document 1" ); mw->show(); - a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) ); + a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) ); return a.exec(); }
    diff --git a/doc/html/qactiongroup.html b/doc/html/qactiongroup.html index 21aa9d1b..3a88a9bc 100644 --- a/doc/html/qactiongroup.html +++ b/doc/html/qactiongroup.html @@ -77,7 +77,7 @@ appearing as separate menu options and toolbar buttons.
            TQActionGroup *grp = new TQActionGroup( this );
    -        connect( grp, SIGNAL( selected( TQAction* ) ), this, SLOT( textAlign( TQAction* ) ) );
    +        connect( grp, TQ_SIGNAL( selected( TQAction* ) ), this, TQ_SLOT( textAlign( TQAction* ) ) );
     

    Here we create a new action group. Since the action group is exclusive by default, only one of the actions in the group is ever active at any diff --git a/doc/html/qaxbase.html b/doc/html/qaxbase.html index 517c32ab..5e756fa7 100644 --- a/doc/html/qaxbase.html +++ b/doc/html/qaxbase.html @@ -94,7 +94,7 @@ through its IUnknown implementation. If the COM object implements the IDispatch interface, the properties and methods of that object become available as TQt properties and slots.

    -    connect( buttonBack, SIGNAL(clicked()), webBrowser, SLOT(GoBack()) );
    +    connect( buttonBack, TQ_SIGNAL(clicked()), webBrowser, TQ_SLOT(GoBack()) );
         

    Properties exposed by the object's IDispatch implementation can be @@ -116,8 +116,8 @@ object's IDispatch implementation can be called directly using

    Outgoing events supported by the COM object are emitted as standard TQt signals.

    -    connect( webBrowser, SIGNAL(TitleChanged(const TQString&)),
    -             this, SLOT(setCaption(const TQString&)) );
    +    connect( webBrowser, TQ_SIGNAL(TitleChanged(const TQString&)),
    +             this, TQ_SLOT(setCaption(const TQString&)) );
         

    TQAxBase transparently converts between COM data types and the @@ -243,7 +243,7 @@ use the TQAxBase API like this: TQString text = object.property( "text" ).toString(); object.setProperty( "font", TQFont( "Times New Roman", 12 ) ); - connect( this, SIGNAL(clicked(int)), &object, SLOT(showColumn(int)) ); + connect( this, TQ_SIGNAL(clicked(int)), &object, TQ_SLOT(showColumn(int)) ); bool ok = object.dynamicCall( "addColumn(const TQString&)", "Column 1" ).toBool(); TQValueList<TQVariant> varlist; diff --git a/doc/html/qaxcontainer-example-qutlook.html b/doc/html/qaxcontainer-example-qutlook.html index e7261e35..899f6196 100644 --- a/doc/html/qaxcontainer-example-qutlook.html +++ b/doc/html/qaxcontainer-example-qutlook.html @@ -144,9 +144,9 @@ to the signals provided by the "Items" COM object. Finally, it calls the

            // Get all items
             if ( defFolder ) {
                 contactItems = defFolder->querySubObject( "Items" );
    -            connect( contactItems, SIGNAL(ItemAdd(IDispatch*)), this, SLOT(updateOutlook()) );
    -            connect( contactItems, SIGNAL(ItemChange(IDispatch*)), this, SLOT(updateOutlook()) );
    -            connect( contactItems, SIGNAL(ItemRemove()), this, SLOT(updateOutlook()) );
    +            connect( contactItems, TQ_SIGNAL(ItemAdd(IDispatch*)), this, TQ_SLOT(updateOutlook()) );
    +            connect( contactItems, TQ_SIGNAL(ItemChange(IDispatch*)), this, TQ_SLOT(updateOutlook()) );
    +            connect( contactItems, TQ_SIGNAL(ItemRemove()), this, TQ_SLOT(updateOutlook()) );
             }
     
             updateOutlook();
    diff --git a/doc/html/qaxcontainer-example-webbrowser.html b/doc/html/qaxcontainer-example-webbrowser.html
    index 6f60fada..ab55b537 100644
    --- a/doc/html/qaxcontainer-example-webbrowser.html
    +++ b/doc/html/qaxcontainer-example-webbrowser.html
    @@ -50,8 +50,8 @@ already been set up within TQt Designer.
             pb->hide();
             statusBar()->addWidget( pb, 0, TRUE );
     
    -        connect( WebBrowser, SIGNAL(ProgressChange(int,int)), this, SLOT(setProgress(int,int)) );
    -        connect( WebBrowser, SIGNAL(StatusTextChange(const TQString&)), statusBar(), SLOT(message(const TQString&)) );
    +        connect( WebBrowser, TQ_SIGNAL(ProgressChange(int,int)), this, TQ_SLOT(setProgress(int,int)) );
    +        connect( WebBrowser, TQ_SIGNAL(StatusTextChange(const TQString&)), statusBar(), TQ_SLOT(message(const TQString&)) );
     
             WebBrowser->dynamicCall( "GoHome()" );
         }
    diff --git a/doc/html/qaxserver-example-simple.html b/doc/html/qaxserver-example-simple.html
    index 503eb938..57e7c1d7 100644
    --- a/doc/html/qaxserver-example-simple.html
    +++ b/doc/html/qaxserver-example-simple.html
    @@ -59,8 +59,8 @@ and TQAxBindable::propertyChanged
                 LCD = new TQLCDNumber( 3, this );
                 edit = new TQLineEdit( this );
     
    -            connect( slider, SIGNAL( valueChanged( int ) ), this, SLOT( setValue(int) ) );
    -            connect( edit, SIGNAL(textChanged(const TQString&)), this, SLOT(setText(const TQString&)) );
    +            connect( slider, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( setValue(int) ) );
    +            connect( edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(setText(const TQString&)) );
     
                 vbox->addWidget( slider );
                 vbox->addWidget( LCD );
    diff --git a/doc/html/qdir-example.html b/doc/html/qdir-example.html
    index 618a7dd0..4fed687d 100644
    --- a/doc/html/qdir-example.html
    +++ b/doc/html/qdir-example.html
    @@ -239,8 +239,8 @@ void PreviewWidget::previewUrl( const T
         TQToolTip::add( p, tr( "Bookmarks" ) );
     
         bookmarkMenu = new TQPopupMenu( this );
    -    connect( bookmarkMenu, SIGNAL( activated( int ) ),
    -             this, SLOT( bookmarkChosen( int ) ) );
    +    connect( bookmarkMenu, TQ_SIGNAL( activated( int ) ),
    +             this, TQ_SLOT( bookmarkChosen( int ) ) );
         addId = bookmarkMenu->insertItem( tr( "Add bookmark" ) );
         bookmarkMenu->insertSeparator();
     
    @@ -260,16 +260,16 @@ void PreviewWidget::previewUrl( const T
     
         addToolButton( p, TRUE );
     
    -    connect( dirView, SIGNAL( folderSelected( const TQString & ) ),
    -             this, SLOT( setDir2( const TQString & ) ) );
    -    connect( this, SIGNAL( dirEntered( const TQString & ) ),
    -             dirView, SLOT( setDir( const TQString & ) ) );
    +    connect( dirView, TQ_SIGNAL( folderSelected( const TQString & ) ),
    +             this, TQ_SLOT( setDir2( const TQString & ) ) );
    +    connect( this, TQ_SIGNAL( dirEntered( const TQString & ) ),
    +             dirView, TQ_SLOT( setDir( const TQString & ) ) );
     
         TQToolButton *b = new TQToolButton( this );
         TQToolTip::add( b, tr( "Go Home!" ) );
         b->setPixmap( TQPixmap( home ) );
    -    connect( b, SIGNAL( clicked() ),
    -             this, SLOT( goHome() ) );
    +    connect( b, TQ_SIGNAL( clicked() ),
    +             this, TQ_SLOT( goHome() ) );
     
         addToolButton( b );
     
    diff --git a/doc/html/qfd-example.html b/doc/html/qfd-example.html
    index 064e9704..f04dab40 100644
    --- a/doc/html/qfd-example.html
    +++ b/doc/html/qfd-example.html
    @@ -237,10 +237,10 @@ void FontRowTable::chooseFont()
         controls->addSeparator();
         TQPushButton *fontbutton = new TQPushButton(tr("Font..."), controls);
     
    -    connect(row,SIGNAL(valueChanged(int)),table,SLOT(setRow(int)));
    -    connect(fontbutton, SIGNAL(clicked()), table, SLOT(chooseFont()));
    -    connect(table,SIGNAL(fontInformation(const TQString&)),
    -            statusBar(),SLOT(message(const TQString&)));
    +    connect(row,TQ_SIGNAL(valueChanged(int)),table,TQ_SLOT(setRow(int)));
    +    connect(fontbutton, TQ_SIGNAL(clicked()), table, TQ_SLOT(chooseFont()));
    +    connect(table,TQ_SIGNAL(fontInformation(const TQString&)),
    +            statusBar(),TQ_SLOT(message(const TQString&)));
         table->setRow(0);
         setCentralWidget(table);
     }
    diff --git a/doc/html/qmag-example.html b/doc/html/qmag-example.html
    index 09655703..29b97de4 100644
    --- a/doc/html/qmag-example.html
    +++ b/doc/html/qmag-example.html
    @@ -135,12 +135,12 @@ static const int timer[] = {
         zoom = new TQComboBox( FALSE, this );
         TQ_CHECK_PTR(zoom);
         zoom->insertStrList( zoomfactors, 9 );
    -    connect( zoom, SIGNAL(activated(int)), SLOT(setZoom(int)) );
    +    connect( zoom, TQ_SIGNAL(activated(int)), TQ_SLOT(setZoom(int)) );
     
         refresh = new TQComboBox( FALSE, this );
         TQ_CHECK_PTR(refresh);
         refresh->insertStrList( refreshrates, 9 );
    -    connect( refresh, SIGNAL(activated(int)), SLOT(setRefresh(int)) );
    +    connect( refresh, TQ_SIGNAL(activated(int)), TQ_SLOT(setRefresh(int)) );
     
         for( n=0; n<9; n++) {
             int w2 = zoom->fontMetrics().width( zoomfactors[n] );
    @@ -158,7 +158,7 @@ static const int timer[] = {
     
         saveButton = new TQPushButton( this );
         TQ_CHECK_PTR(saveButton);
    -    connect( saveButton, SIGNAL(clicked()), this, SLOT(save()) );
    +    connect( saveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(save()) );
         saveButton->setText( "Save" );
         saveButton->setGeometry( x+w+30+2, 2,
                                  10+saveButton->fontMetrics().width("Save"), 20 );
    @@ -166,14 +166,14 @@ static const int timer[] = {
         multiSaveButton = new TQPushButton( this );
         multiSaveButton->setToggleButton(TRUE);
         TQ_CHECK_PTR(multiSaveButton);
    -    connect( multiSaveButton, SIGNAL(clicked()), this, SLOT(multiSave()) );
    +    connect( multiSaveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(multiSave()) );
         multiSaveButton->setText( "MultiSave" );
         multiSaveButton->setGeometry( saveButton->geometry().right() + 2, 2,
                                  10+multiSaveButton->fontMetrics().width("MultiSave"), 20 );
     
         quitButton = new TQPushButton( this );
         TQ_CHECK_PTR(quitButton);
    -    connect( quitButton, SIGNAL(clicked()), tqApp, SLOT(quit()) );
    +    connect( quitButton, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
         quitButton->setText( "Quit" );
         quitButton->setGeometry( multiSaveButton->geometry().right() + 2, 2,
                                  10+quitButton->fontMetrics().width("Quit"), 20 );
    diff --git a/doc/html/qmake-manual-7.html b/doc/html/qmake-manual-7.html
    index acaaf185..eaa4d911 100644
    --- a/doc/html/qmake-manual-7.html
    +++ b/doc/html/qmake-manual-7.html
    @@ -166,7 +166,7 @@ body { background: #ffffff; color: black; }
             MyObject obj;
             MyDialog dia;
             app.setMainWidget( &dia );
    -        dia.connect( dia.aButton, SIGNAL(clicked()), SLOT(close()) );
    +        dia.connect( dia.aButton, TQ_SIGNAL(clicked()), TQ_SLOT(close()) );
             dia.show();
     
             return app.exec();
    diff --git a/doc/html/qtableitem.html b/doc/html/qtableitem.html
    index bab32194..815f0b3e 100644
    --- a/doc/html/qtableitem.html
    +++ b/doc/html/qtableitem.html
    @@ -263,7 +263,7 @@ reimplement setContentFromEditor(), and may
         {
             // create an editor - a combobox in our case
             ( (ComboItem*)this )->cb = new TQComboBox( table()->viewport() );
    -        TQObject::connect( cb, SIGNAL( activated( int ) ), table(), SLOT( doValueChanged() ) );
    +        TQObject::connect( cb, TQ_SIGNAL( activated( int ) ), table(), TQ_SLOT( doValueChanged() ) );
             cb->insertItem( "Yes" );
             cb->insertItem( "No" );
             // and initialize it
    diff --git a/doc/html/qtooltipgroup.html b/doc/html/qtooltipgroup.html
    index 8b83ff63..cde200e2 100644
    --- a/doc/html/qtooltipgroup.html
    +++ b/doc/html/qtooltipgroup.html
    @@ -71,10 +71,10 @@ this status bar.
     argument to TQToolTip's member functions, for example like this:
     

             TQToolTipGroup * grp = new TQToolTipGroup( this, "tool tip relay" );
    -        connect( grp, SIGNAL(showTip(const TQString&)),
    -                 myLabel, SLOT(setText(const TQString&)) );
    -        connect( grp, SIGNAL(removeTip()),
    -                 myLabel, SLOT(clear()) );
    +        connect( grp, TQ_SIGNAL(showTip(const TQString&)),
    +                 myLabel, TQ_SLOT(setText(const TQString&)) );
    +        connect( grp, TQ_SIGNAL(removeTip()),
    +                 myLabel, TQ_SLOT(clear()) );
             TQToolTip::add( giraffeButton, "feed giraffe",
                            grp, "Give the giraffe a meal" );
             TQToolTip::add( gorillaButton, "feed gorilla",
    diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html
    index 5f635085..8ac0112c 100644
    --- a/doc/html/qwerty-example.html
    +++ b/doc/html/qwerty-example.html
    @@ -138,40 +138,40 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
         TQ_CHECK_PTR( file );
         m->insertItem( "&File", file );
     
    -    file->insertItem( "&New",   this, SLOT(newDoc()),   ALT+Key_N );
    -    file->insertItem( "&Open...",  this, SLOT(load()),     ALT+Key_O );
    -    file->insertItem( "&Save...",  this, SLOT(save()),     ALT+Key_S );
    +    file->insertItem( "&New",   this, TQ_SLOT(newDoc()),   ALT+Key_N );
    +    file->insertItem( "&Open...",  this, TQ_SLOT(load()),     ALT+Key_O );
    +    file->insertItem( "&Save...",  this, TQ_SLOT(save()),     ALT+Key_S );
         file->insertSeparator();
         open_as = new TQPopupMenu();
         file->insertItem( "Open &As",  open_as );
         save_as = new TQPopupMenu();
         file->insertItem( "Sa&ve As",  save_as );
    -    file->insertItem( "Add &Encoding", this, SLOT(addEncoding()) );
    +    file->insertItem( "Add &Encoding", this, TQ_SLOT(addEncoding()) );
     #ifndef TQT_NO_PRINTER
         file->insertSeparator();
    -    file->insertItem( "&Print...", this, SLOT(print()),    ALT+Key_P );
    +    file->insertItem( "&Print...", this, TQ_SLOT(print()),    ALT+Key_P );
     #endif
         file->insertSeparator();
    -    file->insertItem( "&Close", this, SLOT(close()),ALT+Key_W );
    -    file->insertItem( "&Quit",  tqApp, SLOT(closeAllWindows()),     ALT+Key_Q );
    +    file->insertItem( "&Close", this, TQ_SLOT(close()),ALT+Key_W );
    +    file->insertItem( "&Quit",  tqApp, TQ_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)) );
    +    connect( save_as, TQ_SIGNAL(activated(int)), this, TQ_SLOT(saveAsEncoding(int)) );
    +    connect( open_as, TQ_SIGNAL(activated(int)), this, TQ_SLOT(openAsEncoding(int)) );
         rebuildCodecList();
     
         TQPopupMenu * edit = new TQPopupMenu();
         TQ_CHECK_PTR( edit );
         m->insertItem( "&Edit", edit );
     
    -    edit->insertItem( "To &Uppercase",   this, SLOT(toUpper()),   ALT+Key_U );
    -    edit->insertItem( "To &Lowercase",   this, SLOT(toLower()),   ALT+Key_L );
    +    edit->insertItem( "To &Uppercase",   this, TQ_SLOT(toUpper()),   ALT+Key_U );
    +    edit->insertItem( "To &Lowercase",   this, TQ_SLOT(toLower()),   ALT+Key_L );
     #ifndef TQT_NO_FONTDIALOG
         edit->insertSeparator();
    -    edit->insertItem( "&Select Font" ,   this, SLOT(font()),     ALT+Key_T );
    +    edit->insertItem( "&Select Font" ,   this, TQ_SLOT(font()),     ALT+Key_T );
     #endif
         changed = FALSE;
         e = new TQMultiLineEdit( this, "editor" );
    -    connect( e, SIGNAL( textChanged() ), this, SLOT( textChanged() ) );
    +    connect( e, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( textChanged() ) );
     
         // We use Unifont - if you have it installed you'll see all
         // Unicode character glyphs.
    @@ -492,7 +492,7 @@ int main( int argc, char **argv )
                 e->show();
             }
         }
    -    a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
    +    a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
         return a.exec();
     }
     
    diff --git a/doc/html/rangecontrols-example.html b/doc/html/rangecontrols-example.html index 22b802f9..5c95c39d 100644 --- a/doc/html/rangecontrols-example.html +++ b/doc/html/rangecontrols-example.html @@ -131,7 +131,7 @@ private: TQLCDNumber *lcd2 = new TQLCDNumber( 2, cell3 ); lcd2->display( 33 ); lcd2->setSegmentStyle( TQLCDNumber::Filled ); - connect( hslider, SIGNAL( valueChanged( int ) ), lcd2, SLOT( display( int ) ) ); + connect( hslider, TQ_SIGNAL( valueChanged( int ) ), lcd2, TQ_SLOT( display( int ) ) ); TQHBox *cell4 = new TQHBox( row2 ); cell4->setFrameStyle( TQFrame::WinPanel | TQFrame::Sunken ); @@ -139,7 +139,7 @@ private: TQSlider *vslider = new TQSlider( 0, 64, 1, 8, TQt::Vertical, cell4 ); TQLCDNumber *lcd3 = new TQLCDNumber( 3, cell4 ); lcd3->display( 8 ); - connect( vslider, SIGNAL( valueChanged( int ) ), lcd3, SLOT( display( int ) ) ); + connect( vslider, TQ_SIGNAL( valueChanged( int ) ), lcd3, TQ_SLOT( display( int ) ) ); }
    diff --git a/doc/html/regexptester-example.html b/doc/html/regexptester-example.html index b12c4065..19bfb811 100644 --- a/doc/html/regexptester-example.html +++ b/doc/html/regexptester-example.html @@ -163,9 +163,9 @@ private: languageChange(); - connect(copyPushButton, SIGNAL(clicked()), this, SLOT(copy())); - connect(executePushButton, SIGNAL(clicked()), this, SLOT(execute())); - connect(quitPushButton, SIGNAL(clicked()), this, SLOT(accept())); + connect(copyPushButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(copy())); + connect(executePushButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(execute())); + connect(quitPushButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); execute(); } @@ -282,7 +282,7 @@ int main(int argc, char **argv) TQApplication app(argc, argv); RegexpTester form; form.show(); - app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit())); + app.connect(&app, TQ_SIGNAL(lastWindowClosed()), &app, TQ_SLOT(quit())); return app.exec(); }
    diff --git a/doc/html/richtext-example.html b/doc/html/richtext-example.html index 19cc4d3e..d4b34646 100644 --- a/doc/html/richtext-example.html +++ b/doc/html/richtext-example.html @@ -182,9 +182,9 @@ static const char* sayings[] = { bPrev->setEnabled( FALSE ); - connect( bClose, SIGNAL( clicked() ), tqApp, SLOT( quit() ) ); - connect( bPrev, SIGNAL( clicked() ), this, SLOT( prev() ) ); - connect( bNext, SIGNAL( clicked() ), this, SLOT( next() ) ); + connect( bClose, TQ_SIGNAL( clicked() ), tqApp, TQ_SLOT( quit() ) ); + connect( bPrev, TQ_SIGNAL( clicked() ), this, TQ_SLOT( prev() ) ); + connect( bNext, TQ_SIGNAL( clicked() ), this, TQ_SLOT( next() ) ); num = 0; } diff --git a/doc/html/rot-example.html b/doc/html/rot-example.html index 955d8f0a..f48686a6 100644 --- a/doc/html/rot-example.html +++ b/doc/html/rot-example.html @@ -100,12 +100,12 @@ private: { left = new TQMultiLineEdit( this, "left" ); right = new TQMultiLineEdit( this, "right" ); - connect( left, SIGNAL(textChanged()), this, SLOT(changeRight()) ); - connect( right, SIGNAL(textChanged()), this, SLOT(changeLeft()) ); + connect( left, TQ_SIGNAL(textChanged()), this, TQ_SLOT(changeRight()) ); + connect( right, TQ_SIGNAL(textChanged()), this, TQ_SLOT(changeLeft()) ); TQPushButton * quit = new TQPushButton( "&Quit", this ); quit->setFocusPolicy( NoFocus ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); TQGridLayout * l = new TQGridLayout( this, 2, 2, 5 ); l->addWidget( left, 0, 0 ); diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html index 5d5066e5..80ea26bb 100644 --- a/doc/html/scribble-example.html +++ b/doc/html/scribble-example.html @@ -255,24 +255,24 @@ void Canvas::clearScreen() TQToolBar *tools = new TQToolBar( this ); - bSave = new TQToolButton( TQPixmap(), "Save", "Save as PNG image", this, SLOT( slotSave() ), tools ); + bSave = new TQToolButton( TQPixmap(), "Save", "Save as PNG image", this, TQ_SLOT( slotSave() ), tools ); bSave->setText( "Save as..." ); tools->addSeparator(); - bPColor = new TQToolButton( TQPixmap(), "Choose Pen Color", "Choose Pen Color", this, SLOT( slotColor() ), tools ); + bPColor = new TQToolButton( TQPixmap(), "Choose Pen Color", "Choose Pen Color", this, TQ_SLOT( slotColor() ), tools ); bPColor->setText( "Choose Pen Color..." ); tools->addSeparator(); bPWidth = new TQSpinBox( 1, 20, 1, tools ); TQToolTip::add( bPWidth, "Choose Pen Width" ); - connect( bPWidth, SIGNAL( valueChanged( int ) ), this, SLOT( slotWidth( int ) ) ); + connect( bPWidth, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( slotWidth( int ) ) ); bPWidth->setValue( 3 ); tools->addSeparator(); - bClear = new TQToolButton( TQPixmap(), "Clear Screen", "Clear Screen", this, SLOT( slotClear() ), tools ); + bClear = new TQToolButton( TQPixmap(), "Clear Screen", "Clear Screen", this, TQ_SLOT( slotClear() ), tools ); bClear->setText( "Clear Screen" ); } diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html index 209d2ace..c100228e 100644 --- a/doc/html/scrollview-example.html +++ b/doc/html/scrollview-example.html @@ -83,7 +83,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()), tqApp, SLOT(quit())); + connect(q, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit())); } else { TQString str; if ( b > 0 ) { @@ -247,14 +247,14 @@ public: TQPopupMenu* file = new TQPopupMenu( menubar ); TQ_CHECK_PTR( file ); menubar->insertItem( "&File", file ); - file->insertItem( "Quit", tqApp, SLOT(quit()) ); + file->insertItem( "Quit", tqApp, TQ_SLOT(quit()) ); vp_options = new TQPopupMenu( menubar ); TQ_CHECK_PTR( vp_options ); vp_options->setCheckable( TRUE ); menubar->insertItem( "&ScrollView", vp_options ); - connect( vp_options, SIGNAL(activated(int)), - this, SLOT(doVPMenuItem(int)) ); + connect( vp_options, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(doVPMenuItem(int)) ); vauto_id = vp_options->insertItem( "Vertical Auto" ); vaoff_id = vp_options->insertItem( "Vertical AlwaysOff" ); @@ -271,8 +271,8 @@ public: BigShrinker *bs = new BigShrinker(0);//(vp->viewport()); vp->addChild(bs); bs->setAcceptDrops(TRUE); - TQObject::connect(bs, SIGNAL(clicked(int,int)), - vp, SLOT(center(int,int))); + TQObject::connect(bs, TQ_SIGNAL(clicked(int,int)), + vp, TQ_SLOT(center(int,int))); } else { vp = new BigMatrix(this); if ( technique == 3 ) @@ -291,8 +291,8 @@ public: TQ_CHECK_PTR( f_options ); f_options->setCheckable( TRUE ); menubar->insertItem( "F&rame", f_options ); - connect( f_options, SIGNAL(activated(int)), - this, SLOT(doFMenuItem(int)) ); + connect( f_options, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(doFMenuItem(int)) ); f_options->insertItem( "No Frame", style_id ); f_options->insertItem( "Box", style_id|TQFrame::Box ); @@ -313,8 +313,8 @@ public: lw_options->insertItem( str, lw_id | lw ); } f_options->insertItem( "Line Width", lw_options ); - connect( lw_options, SIGNAL(activated(int)), - this, SLOT(doFMenuItem(int)) ); + connect( lw_options, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(doFMenuItem(int)) ); mlw_options = new TQPopupMenu( menubar ); TQ_CHECK_PTR( mlw_options ); mlw_options->setCheckable( TRUE ); @@ -324,8 +324,8 @@ public: mlw_options->insertItem( str, mlw_id | mlw ); } f_options->insertItem( "Midline Width", mlw_options ); - connect( mlw_options, SIGNAL(activated(int)), - this, SLOT(doFMenuItem(int)) ); + connect( mlw_options, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(doFMenuItem(int)) ); mw_options = new TQPopupMenu( menubar ); TQ_CHECK_PTR( mw_options ); mw_options->setCheckable( TRUE ); @@ -335,8 +335,8 @@ public: mw_options->insertItem( str, mw_id | mw ); } f_options->insertItem( "Margin Width", mw_options ); - connect( mw_options, SIGNAL(activated(int)), - this, SLOT(doFMenuItem(int)) ); + connect( mw_options, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(doFMenuItem(int)) ); setVPMenuItems(); setFMenuItems(); @@ -473,7 +473,7 @@ int main( int argc, char **argv ) ve3.setCaption("TQt Example - Scrollviews"); ve3.show(); - TQObject::connect(tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit())); + TQObject::connect(tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit())); return a.exec(); } diff --git a/doc/html/showimg-example.html b/doc/html/showimg-example.html index 91a34091..04e1957a 100644 --- a/doc/html/showimg-example.html +++ b/doc/html/showimg-example.html @@ -185,32 +185,32 @@ private slots: saveimage->insertItem( f ); savepixmap->insertItem( f ); } - connect( saveimage, SIGNAL(activated(int)), this, SLOT(saveImage(int)) ); - connect( savepixmap, SIGNAL(activated(int)), this, SLOT(savePixmap(int)) ); + connect( saveimage, TQ_SIGNAL(activated(int)), this, TQ_SLOT(saveImage(int)) ); + connect( savepixmap, TQ_SIGNAL(activated(int)), this, TQ_SLOT(savePixmap(int)) ); file = new TQPopupMenu( menubar ); menubar->insertItem( "&File", file ); - file->insertItem( "&New window", this, SLOT(newWindow()), CTRL+Key_N ); - file->insertItem( "&Open...", this, SLOT(openFile()), CTRL+Key_O ); + file->insertItem( "&New window", this, TQ_SLOT(newWindow()), CTRL+Key_N ); + file->insertItem( "&Open...", this, TQ_SLOT(openFile()), CTRL+Key_O ); si = file->insertItem( "Save image", saveimage ); sp = file->insertItem( "Save pixmap", savepixmap ); file->insertSeparator(); - file->insertItem( "E&xit", tqApp, SLOT(quit()), CTRL+Key_Q ); + file->insertItem( "E&xit", tqApp, TQ_SLOT(quit()), CTRL+Key_Q ); edit = new TQPopupMenu( menubar ); menubar->insertItem( "&Edit", edit ); - edit->insertItem("&Copy", this, SLOT(copy()), CTRL+Key_C); - edit->insertItem("&Paste", this, SLOT(paste()), CTRL+Key_V); + edit->insertItem("&Copy", this, TQ_SLOT(copy()), CTRL+Key_C); + edit->insertItem("&Paste", this, TQ_SLOT(paste()), CTRL+Key_V); edit->insertSeparator(); - edit->insertItem("&Horizontal flip", this, SLOT(hFlip()), ALT+Key_H); - edit->insertItem("&Vertical flip", this, SLOT(vFlip()), ALT+Key_V); - edit->insertItem("&Rotate 180", this, SLOT(rot180()), ALT+Key_R); + edit->insertItem("&Horizontal flip", this, TQ_SLOT(hFlip()), ALT+Key_H); + edit->insertItem("&Vertical flip", this, TQ_SLOT(vFlip()), ALT+Key_V); + edit->insertItem("&Rotate 180", this, TQ_SLOT(rot180()), ALT+Key_R); edit->insertSeparator(); - edit->insertItem("&Text...", this, SLOT(editText())); + edit->insertItem("&Text...", this, TQ_SLOT(editText())); edit->insertSeparator(); - t1 = edit->insertItem( "Convert to &1 bit", this, SLOT(to1Bit()) ); - t8 = edit->insertItem( "Convert to &8 bit", this, SLOT(to8Bit()) ); - t32 = edit->insertItem( "Convert to &32 bit", this, SLOT(to32Bit()) ); + t1 = edit->insertItem( "Convert to &1 bit", this, TQ_SLOT(to1Bit()) ); + t8 = edit->insertItem( "Convert to &8 bit", this, TQ_SLOT(to8Bit()) ); + t32 = edit->insertItem( "Convert to &32 bit", this, TQ_SLOT(to32Bit()) ); options = new TQPopupMenu( menubar ); menubar->insertItem( "&Options", options ); @@ -240,9 +240,9 @@ private slots: TQPopupMenu* help = new TQPopupMenu( menubar ); menubar->insertItem( "&Help", help ); - help->insertItem( "Help!", this, SLOT(giveHelp()), CTRL+Key_H ); + help->insertItem( "Help!", this, TQ_SLOT(giveHelp()), CTRL+Key_H ); - connect( options, SIGNAL(activated(int)), this, SLOT(doOption(int)) ); + connect( options, TQ_SIGNAL(activated(int)), this, TQ_SLOT(doOption(int)) ); status = new TQLabel(this); status->setFrameStyle( TQFrame::WinPanel | TQFrame::Sunken ); @@ -865,7 +865,7 @@ int main( int argc, char **argv ) } } - TQObject::connect(tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit())); + TQObject::connect(tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit())); return a.exec(); } diff --git a/doc/html/signalsandslots.html b/doc/html/signalsandslots.html index 4b4059eb..e8efd185 100644 --- a/doc/html/signalsandslots.html +++ b/doc/html/signalsandslots.html @@ -147,7 +147,7 @@ signal by using emit signal(arguments).

    Here is one way to connect two of these objects together:

         Foo a, b;
    -    connect(&a, SIGNAL(valueChanged(int)), &b, SLOT(setValue(int)));
    +    connect(&a, TQ_SIGNAL(valueChanged(int)), &b, TQ_SLOT(setValue(int)));
         b.setValue( 11 ); // a == undefined  b == 11
         a.setValue( 79 ); // a == 79         b == 79
         b.value();        // returns 79        
    diff --git a/doc/html/simple-application-example.html b/doc/html/simple-application-example.html
    index f7cac665..7b452186 100644
    --- a/doc/html/simple-application-example.html
    +++ b/doc/html/simple-application-example.html
    @@ -139,17 +139,17 @@ private:
         openIcon = TQPixmap( fileopen );
         TQToolButton * fileOpen
             = new TQToolButton( openIcon, "Open File", TQString::null,
    -                           this, SLOT(choose()), fileTools, "open file" );
    +                           this, TQ_SLOT(choose()), fileTools, "open file" );
     
         saveIcon = TQPixmap( filesave );
         TQToolButton * fileSave
             = new TQToolButton( saveIcon, "Save File", TQString::null,
    -                           this, SLOT(save()), fileTools, "save file" );
    +                           this, TQ_SLOT(save()), fileTools, "save file" );
     
         printIcon = TQPixmap( fileprint );
         TQToolButton * filePrint
             = new TQToolButton( printIcon, "Print File", TQString::null,
    -                           this, SLOT(print()), fileTools, "print file" );
    +                           this, TQ_SLOT(print()), fileTools, "print file" );
     
     
         (void)TQWhatsThis::whatsThisButton( fileTools );
    @@ -182,41 +182,41 @@ private:
         menuBar()->insertItem( "&File", file );
     
     
    -    file->insertItem( "&New", this, SLOT(newDoc()), CTRL+Key_N );
    +    file->insertItem( "&New", this, TQ_SLOT(newDoc()), CTRL+Key_N );
     
         int id;
         id = file->insertItem( openIcon, "&Open...",
    -                           this, SLOT(choose()), CTRL+Key_O );
    +                           this, TQ_SLOT(choose()), CTRL+Key_O );
         file->setWhatsThis( id, fileOpenText );
     
         id = file->insertItem( saveIcon, "&Save",
    -                           this, SLOT(save()), CTRL+Key_S );
    +                           this, TQ_SLOT(save()), CTRL+Key_S );
         file->setWhatsThis( id, fileSaveText );
     
    -    id = file->insertItem( "Save &As...", this, SLOT(saveAs()) );
    +    id = file->insertItem( "Save &As...", this, TQ_SLOT(saveAs()) );
         file->setWhatsThis( id, fileSaveText );
     
         file->insertSeparator();
     
         id = file->insertItem( printIcon, "&Print...",
    -                           this, SLOT(print()), CTRL+Key_P );
    +                           this, TQ_SLOT(print()), CTRL+Key_P );
         file->setWhatsThis( id, filePrintText );
     
         file->insertSeparator();
     
    -    file->insertItem( "&Close", this, SLOT(close()), CTRL+Key_W );
    +    file->insertItem( "&Close", this, TQ_SLOT(close()), CTRL+Key_W );
     
    -    file->insertItem( "&Quit", tqApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
    +    file->insertItem( "&Quit", tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q );
     
         menuBar()->insertSeparator();
     
         TQPopupMenu * help = new TQPopupMenu( this );
         menuBar()->insertItem( "&Help", help );
     
    -    help->insertItem( "&About", this, SLOT(about()), Key_F1 );
    -    help->insertItem( "About &TQt", this, SLOT(aboutTQt()) );
    +    help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1 );
    +    help->insertItem( "About &TQt", this, TQ_SLOT(aboutTQt()) );
         help->insertSeparator();
    -    help->insertItem( "What's &This", this, SLOT(whatsThis()), SHIFT+Key_F1 );
    +    help->insertItem( "What's &This", this, TQ_SLOT(whatsThis()), SHIFT+Key_F1 );
     
         e = new TQTextEdit( this, "editor" );
         e->setFocus();
    @@ -408,7 +408,7 @@ int main( int argc, char ** argv ) {
         ApplicationWindow *mw = new ApplicationWindow();
         mw->setCaption( "TQt Example - Application" );
         mw->show();
    -    a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
    +    a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
         return a.exec();
     }
     
    diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html index a6884cb7..0d51ba89 100644 --- a/doc/html/simple-application.html +++ b/doc/html/simple-application.html @@ -118,7 +118,7 @@ int main( int argc, char ** argv ) { ApplicationWindow *mw = new ApplicationWindow(); mw->setCaption( "TQt Example - Application" ); mw->show(); - a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) ); + a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) ); return a.exec(); }
    @@ -141,7 +141,7 @@ behave the way X clients are expected to.

    We create an ApplicationWindow as a top-level widget, set its window system caption to "Document 1", and show() it.

    -

            a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
    +
            a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
     

    When the application's last window is closed, it should quit. Both the signal and the slot are predefined members of TQApplication. @@ -197,7 +197,7 @@ show "File Operations" as caption.

            openIcon = TQPixmap( fileopen );
             TQToolButton * fileOpen
                 = new TQToolButton( openIcon, "Open File", TQString::null,
    -                               this, SLOT(choose()), fileTools, "open file" );
    +                               this, TQ_SLOT(choose()), fileTools, "open file" );
     

    Now we create the first tool button for the fileTools toolbar with the appropriate icon and the tool-tip text "Open File". @@ -207,12 +207,12 @@ We use this icon to illustrate our first tool button.

            saveIcon = TQPixmap( filesave );
             TQToolButton * fileSave
                 = new TQToolButton( saveIcon, "Save File", TQString::null,
    -                               this, SLOT(save()), fileTools, "save file" );
    +                               this, TQ_SLOT(save()), fileTools, "save file" );
     
             printIcon = TQPixmap( fileprint );
             TQToolButton * filePrint
                 = new TQToolButton( printIcon, "Print File", TQString::null,
    -                               this, SLOT(print()), fileTools, "print file" );
    +                               this, TQ_SLOT(print()), fileTools, "print file" );
     

    In a similar way we create two more tool buttons in this toolbar, each with appropriate icons and tool-tip text. All three buttons are connected @@ -260,21 +260,21 @@ this is not necessary.

    Next we create a TQPopupMenu for the File menu and add it to the menu bar. With the ampersand in front of the letter F, we allow the user to use the shortcut Alt+F to pop up this menu. -

            file->insertItem( "&New", this, SLOT(newDoc()), CTRL+Key_N );
    +

            file->insertItem( "&New", this, TQ_SLOT(newDoc()), CTRL+Key_N );
     

    Its first entry is connected to the (yet to be implemented) slot newDoc(). When the user chooses this New entry (e.g. by typing the letter N as marked by the ampersand) or uses the Ctrl+N accelerator, a new editor-window will pop up.

            int id;
             id = file->insertItem( openIcon, "&Open...",
    -                               this, SLOT(choose()), CTRL+Key_O );
    +                               this, TQ_SLOT(choose()), CTRL+Key_O );
             file->setWhatsThis( id, fileOpenText );
     
             id = file->insertItem( saveIcon, "&Save",
    -                               this, SLOT(save()), CTRL+Key_S );
    +                               this, TQ_SLOT(save()), CTRL+Key_S );
             file->setWhatsThis( id, fileSaveText );
     
    -        id = file->insertItem( "Save &As...", this, SLOT(saveAs()) );
    +        id = file->insertItem( "Save &As...", this, TQ_SLOT(saveAs()) );
             file->setWhatsThis( id, fileSaveText );
     

    We populate the File menu with three more commands (Open, Save and @@ -286,13 +286,13 @@ example for a shorter and easier approach.)

    Then we insert a separator, ...

            id = file->insertItem( printIcon, "&Print...",
    -                               this, SLOT(print()), CTRL+Key_P );
    +                               this, TQ_SLOT(print()), CTRL+Key_P );
             file->setWhatsThis( id, filePrintText );
     
             file->insertSeparator();
     
    -        file->insertItem( "&Close", this, SLOT(close()), CTRL+Key_W );
    -        file->insertItem( "&Quit", tqApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
    +        file->insertItem( "&Close", this, TQ_SLOT(close()), CTRL+Key_W );
    +        file->insertItem( "&Quit", tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q );
     

    ... the Print command with "What's This?" help, another separator and two more commands (Close and Quit) without "What's This?" and pixmaps. @@ -311,10 +311,10 @@ will be aligned to the right if the windows system style requires it.

            TQPopupMenu * help = new TQPopupMenu( this );
             menuBar()->insertItem( "&Help", help );
     
    -        help->insertItem( "&About", this, SLOT(about()), Key_F1 );
    -        help->insertItem( "About &TQt", this, SLOT(aboutTQt()) );
    +        help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1 );
    +        help->insertItem( "About &TQt", this, TQ_SLOT(aboutTQt()) );
             help->insertSeparator();
    -        help->insertItem( "What's &This", this, SLOT(whatsThis()), SHIFT+Key_F1 );
    +        help->insertItem( "What's &This", this, TQ_SLOT(whatsThis()), SHIFT+Key_F1 );
     

    We create a Help menu, add it to the menu bar, and insert a few commands. Depending on the style it will appear on the right hand diff --git a/doc/html/simple-font-demo-example.html b/doc/html/simple-font-demo-example.html index f2624e3f..29f41413 100644 --- a/doc/html/simple-font-demo-example.html +++ b/doc/html/simple-font-demo-example.html @@ -110,20 +110,20 @@ private: defaultButton = new TQPushButton( "Default", this, "pushbutton1" ); defaultButton->setFont( TQFont( "times" ) ); - connect( defaultButton, SIGNAL( clicked() ), - this, SLOT( setDefault() ) ); + connect( defaultButton, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( setDefault() ) ); sansSerifButton = new TQPushButton( "Sans Serif", this, "pushbutton2" ); sansSerifButton->setFont( TQFont( "Helvetica", 12 ) ); - connect( sansSerifButton, SIGNAL( clicked() ), - this, SLOT( setSansSerif() ) ); + connect( sansSerifButton, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( setSansSerif() ) ); italicsButton = new TQPushButton( "Italics", this, "pushbutton3" ); italicsButton->setFont( TQFont( "lucida", 12, TQFont::Bold, TRUE ) ); - connect( italicsButton, SIGNAL( clicked() ), - this, SLOT( setItalics() ) ); + connect( italicsButton, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( setItalics() ) ); layout(); } diff --git a/doc/html/simple_dd-example.html b/doc/html/simple_dd-example.html index 50add5a0..289f8692 100644 --- a/doc/html/simple_dd-example.html +++ b/doc/html/simple_dd-example.html @@ -275,8 +275,8 @@ int main( int argc, char *argv[] ) // Set up the connection so that we can drop items into the icon view TQObject::connect( - iv, SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), - iv, SLOT(slotNewItem(TQDropEvent*, const TQValueList<TQIconDragItem>&))); + iv, TQ_SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), + iv, TQ_SLOT(slotNewItem(TQDropEvent*, const TQValueList<TQIconDragItem>&))); // Populate the TQIconView with icons DDIconViewItem *item; diff --git a/doc/html/sound-example.html b/doc/html/sound-example.html index 21cebf2e..12799608 100644 --- a/doc/html/sound-example.html +++ b/doc/html/sound-example.html @@ -120,15 +120,15 @@ private: } TQPopupMenu *file = new TQPopupMenu; - file->insertItem("Play &1", this, SLOT(doPlay1()), CTRL+Key_1); - file->insertItem("Play &2", this, SLOT(doPlay2()), CTRL+Key_2); - file->insertItem("Play from bucket &3", this, SLOT(doPlay3()), CTRL+Key_3); - file->insertItem("Play from bucket &4", this, SLOT(doPlay4()), CTRL+Key_4); + file->insertItem("Play &1", this, TQ_SLOT(doPlay1()), CTRL+Key_1); + file->insertItem("Play &2", this, TQ_SLOT(doPlay2()), CTRL+Key_2); + file->insertItem("Play from bucket &3", this, TQ_SLOT(doPlay3()), CTRL+Key_3); + file->insertItem("Play from bucket &4", this, TQ_SLOT(doPlay4()), CTRL+Key_4); file->insertSeparator(); - file->insertItem("Play 3 and 4 together", this, SLOT(doPlay34())); - file->insertItem("Play all together", this, SLOT(doPlay1234())); + file->insertItem("Play 3 and 4 together", this, TQ_SLOT(doPlay34())); + file->insertItem("Play all together", this, TQ_SLOT(doPlay1234())); file->insertSeparator(); - file->insertItem("E&xit", tqApp, SLOT(quit())); + file->insertItem("E&xit", tqApp, TQ_SLOT(quit())); menuBar()->insertItem("&File", file); } diff --git a/doc/html/sql-overview-custom1-main-cpp.html b/doc/html/sql-overview-custom1-main-cpp.html index 7f4d9a0c..29142df6 100644 --- a/doc/html/sql-overview-custom1-main-cpp.html +++ b/doc/html/sql-overview-custom1-main-cpp.html @@ -48,8 +48,8 @@ body { background: #ffffff; color: black; } CustomEdit::CustomEdit( TQWidget *parent, const char *name ) : TQLineEdit( parent, name ) { - connect( this, SIGNAL(textChanged(const TQString &)), - this, SLOT(changed(const TQString &)) ); + connect( this, TQ_SIGNAL(textChanged(const TQString &)), + this, TQ_SLOT(changed(const TQString &)) ); } @@ -82,7 +82,7 @@ TQString CustomEdit::upperLine() const TQLineEdit *salaryEdit = new TQLineEdit( this ); salaryEdit->setAlignment( TQt::AlignRight ); TQPushButton *saveButton = new TQPushButton( "&Save", this ); - connect( saveButton, SIGNAL(clicked()), this, SLOT(save()) ); + connect( saveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(save()) ); TQGridLayout *grid = new TQGridLayout( this ); grid->addWidget( forenameLabel, 0, 0 ); diff --git a/doc/html/sql.html b/doc/html/sql.html index b61bcba5..f9b1b8d6 100644 --- a/doc/html/sql.html +++ b/doc/html/sql.html @@ -1104,8 +1104,8 @@ addition to TQSqlForm it offers the slot refresh( can easily be linked together with a TQDataTable to display a detailed view of a record:

    -    connect( myDataTable, SIGNAL( currentChanged( TQSqlRecord* ) ), 
    -             myDataView, SLOT( refresh( TQSqlRecord* ) ) );
    +    connect( myDataTable, TQ_SIGNAL( currentChanged( TQSqlRecord* ) ), 
    +             myDataView, TQ_SLOT( refresh( TQSqlRecord* ) ) );
     

    @@ -1146,7 +1146,7 @@ calling TQLineEdit::setAlignment() a

            TQLineEdit   *forenameEdit  = new TQLineEdit( this );
     

            TQPushButton *saveButton    = new TQPushButton( "&Save", this );
    -        connect( saveButton, SIGNAL(clicked()), this, SLOT(save()) );
    +        connect( saveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(save()) );
     

    The FormDialog constructor is similar to the one in the previous example. We have changed the forename and surname widgets to @@ -1240,8 +1240,8 @@ to our FormDialog's private data.

        CustomEdit::CustomEdit( TQWidget *parent, const char *name ) :
             TQLineEdit( parent, name )
         {
    -        connect( this, SIGNAL(textChanged(const TQString &)),
    -                 this, SLOT(changed(const TQString &)) );
    +        connect( this, TQ_SIGNAL(textChanged(const TQString &)),
    +                 this, TQ_SLOT(changed(const TQString &)) );
         }
     

    In the CustomEdit constructor we use the TQLineEdit constructor and add diff --git a/doc/html/statistics-example.html b/doc/html/statistics-example.html index d34279d0..4bd999d5 100644 --- a/doc/html/statistics-example.html +++ b/doc/html/statistics-example.html @@ -135,8 +135,8 @@ const char* dirs[] = { adjustColumn( 0 ); // if the user edited something we might need to recalculate the sum - connect( this, SIGNAL( valueChanged( int, int ) ), - this, SLOT( recalcSum( int, int ) ) ); + connect( this, TQ_SIGNAL( valueChanged( int, int ) ), + this, TQ_SLOT( recalcSum( int, int ) ) ); } void Table::initTable() @@ -236,7 +236,7 @@ void Table::recalcSum( int, int col ) { // create an editor - a combobox in our case ( (ComboItem*)this )->cb = new TQComboBox( table()->viewport() ); - TQObject::connect( cb, SIGNAL( activated( int ) ), table(), SLOT( doValueChanged() ) ); + TQObject::connect( cb, TQ_SIGNAL( activated( int ) ), table(), TQ_SLOT( doValueChanged() ) ); cb->insertItem( "Yes" ); cb->insertItem( "No" ); // and initialize it diff --git a/doc/html/t10-lcdrange-cpp.html b/doc/html/t10-lcdrange-cpp.html index a0ec300e..640d3ca6 100644 --- a/doc/html/t10-lcdrange-cpp.html +++ b/doc/html/t10-lcdrange-cpp.html @@ -50,10 +50,10 @@ body { background: #ffffff; color: black; } slider = new TQSlider( Horizontal, this, "slider" ); slider->setRange( 0, 99 ); slider->setValue( 0 ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + lcd, TQ_SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + TQ_SIGNAL(valueChanged(int)) ); setFocusProxy( slider ); } diff --git a/doc/html/t10-main-cpp.html b/doc/html/t10-main-cpp.html index bd7de6d6..fb256a64 100644 --- a/doc/html/t10-main-cpp.html +++ b/doc/html/t10-main-cpp.html @@ -61,7 +61,7 @@ public: TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); LCDRange *angle = new LCDRange( this, "angle" ); angle->setRange( 5, 70 ); @@ -71,15 +71,15 @@ public: CannonField *cannonField = new CannonField( this, "cannonField" ); - connect( angle, SIGNAL(valueChanged(int)), - cannonField, SLOT(setAngle(int)) ); - connect( cannonField, SIGNAL(angleChanged(int)), - angle, SLOT(setValue(int)) ); + connect( angle, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setAngle(int)) ); + connect( cannonField, TQ_SIGNAL(angleChanged(int)), + angle, TQ_SLOT(setValue(int)) ); - connect( force, SIGNAL(valueChanged(int)), - cannonField, SLOT(setForce(int)) ); - connect( cannonField, SIGNAL(forceChanged(int)), - force, SLOT(setValue(int)) ); + connect( force, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setForce(int)) ); + connect( cannonField, TQ_SIGNAL(forceChanged(int)), + force, TQ_SLOT(setValue(int)) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); grid->addWidget( quit, 0, 0 ); diff --git a/doc/html/t11-cannon-cpp.html b/doc/html/t11-cannon-cpp.html index 88b4a7b1..de38007a 100644 --- a/doc/html/t11-cannon-cpp.html +++ b/doc/html/t11-cannon-cpp.html @@ -53,8 +53,8 @@ body { background: #ffffff; color: black; } f = 0; timerCount = 0; autoShootTimer = new TQTimer( this, "movement handler" ); - connect( autoShootTimer, SIGNAL(timeout()), - this, SLOT(moveShot()) ); + connect( autoShootTimer, TQ_SIGNAL(timeout()), + this, TQ_SLOT(moveShot()) ); shoot_ang = 0; shoot_f = 0; setPalette( TQPalette( TQColor( 250, 250, 200) ) ); diff --git a/doc/html/t11-lcdrange-cpp.html b/doc/html/t11-lcdrange-cpp.html index 53c7bba0..5fef5dfc 100644 --- a/doc/html/t11-lcdrange-cpp.html +++ b/doc/html/t11-lcdrange-cpp.html @@ -50,10 +50,10 @@ body { background: #ffffff; color: black; } slider = new TQSlider( Horizontal, this, "slider" ); slider->setRange( 0, 99 ); slider->setValue( 0 ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + lcd, TQ_SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + TQ_SIGNAL(valueChanged(int)) ); setFocusProxy( slider ); } diff --git a/doc/html/t11-main-cpp.html b/doc/html/t11-main-cpp.html index 58d2d550..b0722f9a 100644 --- a/doc/html/t11-main-cpp.html +++ b/doc/html/t11-main-cpp.html @@ -61,7 +61,7 @@ public: TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); LCDRange *angle = new LCDRange( this, "angle" ); angle->setRange( 5, 70 ); @@ -71,20 +71,20 @@ public: CannonField *cannonField = new CannonField( this, "cannonField" ); - connect( angle, SIGNAL(valueChanged(int)), - cannonField, SLOT(setAngle(int)) ); - connect( cannonField, SIGNAL(angleChanged(int)), - angle, SLOT(setValue(int)) ); + connect( angle, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setAngle(int)) ); + connect( cannonField, TQ_SIGNAL(angleChanged(int)), + angle, TQ_SLOT(setValue(int)) ); - connect( force, SIGNAL(valueChanged(int)), - cannonField, SLOT(setForce(int)) ); - connect( cannonField, SIGNAL(forceChanged(int)), - force, SLOT(setValue(int)) ); + connect( force, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setForce(int)) ); + connect( cannonField, TQ_SIGNAL(forceChanged(int)), + force, TQ_SLOT(setValue(int)) ); TQPushButton *shoot = new TQPushButton( "&Shoot", this, "shoot" ); shoot->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( shoot, SIGNAL(clicked()), cannonField, SLOT(shoot()) ); + connect( shoot, TQ_SIGNAL(clicked()), cannonField, TQ_SLOT(shoot()) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); grid->addWidget( quit, 0, 0 ); diff --git a/doc/html/t12-cannon-cpp.html b/doc/html/t12-cannon-cpp.html index cd9ad667..b43f1c5c 100644 --- a/doc/html/t12-cannon-cpp.html +++ b/doc/html/t12-cannon-cpp.html @@ -55,8 +55,8 @@ body { background: #ffffff; color: black; } f = 0; timerCount = 0; autoShootTimer = new TQTimer( this, "movement handler" ); - connect( autoShootTimer, SIGNAL(timeout()), - this, SLOT(moveShot()) ); + connect( autoShootTimer, TQ_SIGNAL(timeout()), + this, TQ_SLOT(moveShot()) ); shoot_ang = 0; shoot_f = 0; target = TQPoint( 0, 0 ); diff --git a/doc/html/t12-lcdrange-cpp.html b/doc/html/t12-lcdrange-cpp.html index 52cb516c..defbbb8a 100644 --- a/doc/html/t12-lcdrange-cpp.html +++ b/doc/html/t12-lcdrange-cpp.html @@ -71,10 +71,10 @@ void LCDRange::init() label = new TQLabel( " ", this, "label" ); label->setAlignment( AlignCenter ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + lcd, TQ_SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + TQ_SIGNAL(valueChanged(int)) ); setFocusProxy( slider ); } diff --git a/doc/html/t12-main-cpp.html b/doc/html/t12-main-cpp.html index cdfc499d..a779a4a0 100644 --- a/doc/html/t12-main-cpp.html +++ b/doc/html/t12-main-cpp.html @@ -61,7 +61,7 @@ public: TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); LCDRange *angle = new LCDRange( "ANGLE", this, "angle" ); angle->setRange( 5, 70 ); @@ -71,20 +71,20 @@ public: CannonField *cannonField = new CannonField( this, "cannonField" ); - connect( angle, SIGNAL(valueChanged(int)), - cannonField, SLOT(setAngle(int)) ); - connect( cannonField, SIGNAL(angleChanged(int)), - angle, SLOT(setValue(int)) ); + connect( angle, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setAngle(int)) ); + connect( cannonField, TQ_SIGNAL(angleChanged(int)), + angle, TQ_SLOT(setValue(int)) ); - connect( force, SIGNAL(valueChanged(int)), - cannonField, SLOT(setForce(int)) ); - connect( cannonField, SIGNAL(forceChanged(int)), - force, SLOT(setValue(int)) ); + connect( force, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setForce(int)) ); + connect( cannonField, TQ_SIGNAL(forceChanged(int)), + force, TQ_SLOT(setValue(int)) ); TQPushButton *shoot = new TQPushButton( "&Shoot", this, "shoot" ); shoot->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( shoot, SIGNAL(clicked()), cannonField, SLOT(shoot()) ); + connect( shoot, TQ_SIGNAL(clicked()), cannonField, TQ_SLOT(shoot()) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); grid->addWidget( quit, 0, 0 ); diff --git a/doc/html/t13-cannon-cpp.html b/doc/html/t13-cannon-cpp.html index ba28b19f..591ab8b0 100644 --- a/doc/html/t13-cannon-cpp.html +++ b/doc/html/t13-cannon-cpp.html @@ -55,8 +55,8 @@ body { background: #ffffff; color: black; } f = 0; timerCount = 0; autoShootTimer = new TQTimer( this, "movement handler" ); - connect( autoShootTimer, SIGNAL(timeout()), - this, SLOT(moveShot()) ); + connect( autoShootTimer, TQ_SIGNAL(timeout()), + this, TQ_SLOT(moveShot()) ); shoot_ang = 0; shoot_f = 0; target = TQPoint( 0, 0 ); diff --git a/doc/html/t13-gamebrd-cpp.html b/doc/html/t13-gamebrd-cpp.html index abf0072a..fa88bd8c 100644 --- a/doc/html/t13-gamebrd-cpp.html +++ b/doc/html/t13-gamebrd-cpp.html @@ -56,7 +56,7 @@ body { background: #ffffff; color: black; } TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); LCDRange *angle = new LCDRange( "ANGLE", this, "angle" ); angle->setRange( 5, 70 ); @@ -66,33 +66,33 @@ body { background: #ffffff; color: black; } cannonField = new CannonField( this, "cannonField" ); - connect( angle, SIGNAL(valueChanged(int)), - cannonField, SLOT(setAngle(int)) ); - connect( cannonField, SIGNAL(angleChanged(int)), - angle, SLOT(setValue(int)) ); + connect( angle, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setAngle(int)) ); + connect( cannonField, TQ_SIGNAL(angleChanged(int)), + angle, TQ_SLOT(setValue(int)) ); - connect( force, SIGNAL(valueChanged(int)), - cannonField, SLOT(setForce(int)) ); - connect( cannonField, SIGNAL(forceChanged(int)), - force, SLOT(setValue(int)) ); + connect( force, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setForce(int)) ); + connect( cannonField, TQ_SIGNAL(forceChanged(int)), + force, TQ_SLOT(setValue(int)) ); - connect( cannonField, SIGNAL(hit()), - this, SLOT(hit()) ); - connect( cannonField, SIGNAL(missed()), - this, SLOT(missed()) ); + connect( cannonField, TQ_SIGNAL(hit()), + this, TQ_SLOT(hit()) ); + connect( cannonField, TQ_SIGNAL(missed()), + this, TQ_SLOT(missed()) ); TQPushButton *shoot = new TQPushButton( "&Shoot", this, "shoot" ); shoot->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( shoot, SIGNAL(clicked()), SLOT(fire()) ); - connect( cannonField, SIGNAL(canShoot(bool)), - shoot, SLOT(setEnabled(bool)) ); + connect( shoot, TQ_SIGNAL(clicked()), TQ_SLOT(fire()) ); + connect( cannonField, TQ_SIGNAL(canShoot(bool)), + shoot, TQ_SLOT(setEnabled(bool)) ); TQPushButton *restart = new TQPushButton( "&New Game", this, "newgame" ); restart->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( restart, SIGNAL(clicked()), this, SLOT(newGame()) ); + connect( restart, TQ_SIGNAL(clicked()), this, TQ_SLOT(newGame()) ); hits = new TQLCDNumber( 2, this, "hits" ); shotsLeft = new TQLCDNumber( 2, this, "shotsleft" ); diff --git a/doc/html/t13-lcdrange-cpp.html b/doc/html/t13-lcdrange-cpp.html index 8a1e929c..b0def8e3 100644 --- a/doc/html/t13-lcdrange-cpp.html +++ b/doc/html/t13-lcdrange-cpp.html @@ -71,10 +71,10 @@ void LCDRange::init() label = new TQLabel( " ", this, "label" ); label->setAlignment( AlignCenter ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + lcd, TQ_SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + TQ_SIGNAL(valueChanged(int)) ); setFocusProxy( slider ); diff --git a/doc/html/t14-cannon-cpp.html b/doc/html/t14-cannon-cpp.html index 6c3bd3b7..f7d4bc29 100644 --- a/doc/html/t14-cannon-cpp.html +++ b/doc/html/t14-cannon-cpp.html @@ -55,8 +55,8 @@ body { background: #ffffff; color: black; } f = 0; timerCount = 0; autoShootTimer = new TQTimer( this, "movement handler" ); - connect( autoShootTimer, SIGNAL(timeout()), - this, SLOT(moveShot()) ); + connect( autoShootTimer, TQ_SIGNAL(timeout()), + this, TQ_SLOT(moveShot()) ); shoot_ang = 0; shoot_f = 0; target = TQPoint( 0, 0 ); diff --git a/doc/html/t14-gamebrd-cpp.html b/doc/html/t14-gamebrd-cpp.html index 8b3256dc..40a7c5f6 100644 --- a/doc/html/t14-gamebrd-cpp.html +++ b/doc/html/t14-gamebrd-cpp.html @@ -58,7 +58,7 @@ body { background: #ffffff; color: black; } TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); LCDRange *angle = new LCDRange( "ANGLE", this, "angle" ); angle->setRange( 5, 70 ); @@ -71,34 +71,34 @@ body { background: #ffffff; color: black; } cannonField = new CannonField( box, "cannonField" ); - connect( angle, SIGNAL(valueChanged(int)), - cannonField, SLOT(setAngle(int)) ); - connect( cannonField, SIGNAL(angleChanged(int)), - angle, SLOT(setValue(int)) ); + connect( angle, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setAngle(int)) ); + connect( cannonField, TQ_SIGNAL(angleChanged(int)), + angle, TQ_SLOT(setValue(int)) ); - connect( force, SIGNAL(valueChanged(int)), - cannonField, SLOT(setForce(int)) ); - connect( cannonField, SIGNAL(forceChanged(int)), - force, SLOT(setValue(int)) ); + connect( force, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setForce(int)) ); + connect( cannonField, TQ_SIGNAL(forceChanged(int)), + force, TQ_SLOT(setValue(int)) ); - connect( cannonField, SIGNAL(hit()), - this, SLOT(hit()) ); - connect( cannonField, SIGNAL(missed()), - this, SLOT(missed()) ); + connect( cannonField, TQ_SIGNAL(hit()), + this, TQ_SLOT(hit()) ); + connect( cannonField, TQ_SIGNAL(missed()), + this, TQ_SLOT(missed()) ); TQPushButton *shoot = new TQPushButton( "&Shoot", this, "shoot" ); shoot->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( shoot, SIGNAL(clicked()), SLOT(fire()) ); + connect( shoot, TQ_SIGNAL(clicked()), TQ_SLOT(fire()) ); - connect( cannonField, SIGNAL(canShoot(bool)), - shoot, SLOT(setEnabled(bool)) ); + connect( cannonField, TQ_SIGNAL(canShoot(bool)), + shoot, TQ_SLOT(setEnabled(bool)) ); TQPushButton *restart = new TQPushButton( "&New Game", this, "newgame" ); restart->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( restart, SIGNAL(clicked()), this, SLOT(newGame()) ); + connect( restart, TQ_SIGNAL(clicked()), this, TQ_SLOT(newGame()) ); hits = new TQLCDNumber( 2, this, "hits" ); shotsLeft = new TQLCDNumber( 2, this, "shotsleft" ); @@ -108,11 +108,11 @@ body { background: #ffffff; color: black; } TQAccel *accel = new TQAccel( this ); accel->connectItem( accel->insertItem( Key_Enter ), - this, SLOT(fire()) ); + this, TQ_SLOT(fire()) ); accel->connectItem( accel->insertItem( Key_Return ), - this, SLOT(fire()) ); + this, TQ_SLOT(fire()) ); accel->connectItem( accel->insertItem( CTRL+Key_Q ), - tqApp, SLOT(quit()) ); + tqApp, TQ_SLOT(quit()) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); grid->addWidget( quit, 0, 0 ); diff --git a/doc/html/t14-lcdrange-cpp.html b/doc/html/t14-lcdrange-cpp.html index a110f76e..86b86850 100644 --- a/doc/html/t14-lcdrange-cpp.html +++ b/doc/html/t14-lcdrange-cpp.html @@ -71,10 +71,10 @@ void LCDRange::init() label = new TQLabel( " ", this, "label" ); label->setAlignment( AlignCenter ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + lcd, TQ_SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + TQ_SIGNAL(valueChanged(int)) ); setFocusProxy( slider ); diff --git a/doc/html/t7-lcdrange-cpp.html b/doc/html/t7-lcdrange-cpp.html index 4850170b..e38ea6a5 100644 --- a/doc/html/t7-lcdrange-cpp.html +++ b/doc/html/t7-lcdrange-cpp.html @@ -50,10 +50,10 @@ body { background: #ffffff; color: black; } slider = new TQSlider( Horizontal, this, "slider" ); slider->setRange( 0, 99 ); slider->setValue( 0 ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + lcd, TQ_SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + TQ_SIGNAL(valueChanged(int)) ); } int LCDRange::value() const diff --git a/doc/html/t7-main-cpp.html b/doc/html/t7-main-cpp.html index 0e1c4695..8e49a9b6 100644 --- a/doc/html/t7-main-cpp.html +++ b/doc/html/t7-main-cpp.html @@ -61,7 +61,7 @@ public: TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); TQGrid *grid = new TQGrid( 4, this ); @@ -70,8 +70,8 @@ public: for( int c = 0 ; c < 4 ; c++ ) { LCDRange* lr = new LCDRange( grid ); if ( previous ) - connect( lr, SIGNAL(valueChanged(int)), - previous, SLOT(setValue(int)) ); + connect( lr, TQ_SIGNAL(valueChanged(int)), + previous, TQ_SLOT(setValue(int)) ); previous = lr; } } diff --git a/doc/html/t8-lcdrange-cpp.html b/doc/html/t8-lcdrange-cpp.html index cde9d187..665d81ca 100644 --- a/doc/html/t8-lcdrange-cpp.html +++ b/doc/html/t8-lcdrange-cpp.html @@ -50,10 +50,10 @@ body { background: #ffffff; color: black; } slider = new TQSlider( Horizontal, this, "slider" ); slider->setRange( 0, 99 ); slider->setValue( 0 ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + lcd, TQ_SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + TQ_SIGNAL(valueChanged(int)) ); setFocusProxy( slider ); } diff --git a/doc/html/t8-main-cpp.html b/doc/html/t8-main-cpp.html index 2d89e6bd..079cf9ba 100644 --- a/doc/html/t8-main-cpp.html +++ b/doc/html/t8-main-cpp.html @@ -61,7 +61,7 @@ public: TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); LCDRange *angle = new LCDRange( this, "angle" ); angle->setRange( 5, 70 ); @@ -69,10 +69,10 @@ public: CannonField *cannonField = new CannonField( this, "cannonField" ); - connect( angle, SIGNAL(valueChanged(int)), - cannonField, SLOT(setAngle(int)) ); - connect( cannonField, SIGNAL(angleChanged(int)), - angle, SLOT(setValue(int)) ); + connect( angle, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setAngle(int)) ); + connect( cannonField, TQ_SIGNAL(angleChanged(int)), + angle, TQ_SLOT(setValue(int)) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); //2x2, 10 pixel border diff --git a/doc/html/t9-lcdrange-cpp.html b/doc/html/t9-lcdrange-cpp.html index daa34eb7..c33e28e7 100644 --- a/doc/html/t9-lcdrange-cpp.html +++ b/doc/html/t9-lcdrange-cpp.html @@ -50,10 +50,10 @@ body { background: #ffffff; color: black; } slider = new TQSlider( Horizontal, this, "slider" ); slider->setRange( 0, 99 ); slider->setValue( 0 ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + lcd, TQ_SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + TQ_SIGNAL(valueChanged(int)) ); setFocusProxy( slider ); } diff --git a/doc/html/t9-main-cpp.html b/doc/html/t9-main-cpp.html index 12004c19..865cd625 100644 --- a/doc/html/t9-main-cpp.html +++ b/doc/html/t9-main-cpp.html @@ -61,17 +61,17 @@ public: TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); LCDRange *angle = new LCDRange( this, "angle" ); angle->setRange( 5, 70 ); CannonField *cannonField = new CannonField( this, "cannonField" ); - connect( angle, SIGNAL(valueChanged(int)), - cannonField, SLOT(setAngle(int)) ); - connect( cannonField, SIGNAL(angleChanged(int)), - angle, SLOT(setValue(int)) ); + connect( angle, TQ_SIGNAL(valueChanged(int)), + cannonField, TQ_SLOT(setAngle(int)) ); + connect( cannonField, TQ_SIGNAL(angleChanged(int)), + angle, TQ_SLOT(setValue(int)) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); grid->addWidget( quit, 0, 0 ); diff --git a/doc/html/tabdialog-example.html b/doc/html/tabdialog-example.html index 151dc0cc..85a2ced5 100644 --- a/doc/html/tabdialog-example.html +++ b/doc/html/tabdialog-example.html @@ -106,7 +106,7 @@ protected: setupTab2(); setupTab3(); - connect( this, SIGNAL( applyButtonPressed() ), tqApp, SLOT( quit() ) ); + connect( this, TQ_SIGNAL( applyButtonPressed() ), tqApp, TQ_SLOT( quit() ) ); } void TabDialog::setupTab1() diff --git a/doc/html/table-statistics-statistics-cpp.html b/doc/html/table-statistics-statistics-cpp.html index 6702b636..e4a99c1e 100644 --- a/doc/html/table-statistics-statistics-cpp.html +++ b/doc/html/table-statistics-statistics-cpp.html @@ -74,8 +74,8 @@ const char* dirs[] = { adjustColumn( 0 ); // if the user edited something we might need to recalculate the sum - connect( this, SIGNAL( valueChanged( int, int ) ), - this, SLOT( recalcSum( int, int ) ) ); + connect( this, TQ_SIGNAL( valueChanged( int, int ) ), + this, TQ_SLOT( recalcSum( int, int ) ) ); } void Table::initTable() @@ -175,7 +175,7 @@ void Table::recalcSum( int, int col ) { // create an editor - a combobox in our case ( (ComboItem*)this )->cb = new TQComboBox( table()->viewport() ); - TQObject::connect( cb, SIGNAL( activated( int ) ), table(), SLOT( doValueChanged() ) ); + TQObject::connect( cb, TQ_SIGNAL( activated( int ) ), table(), TQ_SLOT( doValueChanged() ) ); cb->insertItem( "Yes" ); cb->insertItem( "No" ); // and initialize it diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html index 08b483a8..9d0f2090 100644 --- a/doc/html/themes-example.html +++ b/doc/html/themes-example.html @@ -2224,7 +2224,7 @@ private: TQActionGroup *ag = new TQActionGroup( this, 0 ); ag->setExclusive( TRUE ); TQSignalMapper *styleMapper = new TQSignalMapper( this ); - connect( styleMapper, SIGNAL( mapped( const TQString& ) ), this, SLOT( makeStyle( const TQString& ) ) ); + connect( styleMapper, TQ_SIGNAL( mapped( const TQString& ) ), this, TQ_SLOT( makeStyle( const TQString& ) ) ); TQStringList list = TQStyleFactory::keys(); list.sort(); #ifndef TQT_NO_STYLE_WINDOWS @@ -2248,18 +2248,18 @@ private: styleAccel = "&"+styleAccel; } TQAction *a = new TQAction( styleStr, TQIconSet(), styleAccel, 0, ag, 0, ag->isExclusive() ); - connect( a, SIGNAL( activated() ), styleMapper, SLOT(map()) ); + connect( a, TQ_SIGNAL( activated() ), styleMapper, TQ_SLOT(map()) ); styleMapper->setMapping( a, a->text() ); } ag->addTo(style); style->insertSeparator(); - style->insertItem("&Quit", tqApp, SLOT( quit() ), CTRL | Key_Q ); + style->insertItem("&Quit", tqApp, TQ_SLOT( quit() ), CTRL | Key_Q ); TQPopupMenu * help = new TQPopupMenu( this ); menuBar()->insertSeparator(); menuBar()->insertItem( "&Help", help ); - help->insertItem( "&About", this, SLOT(about()), Key_F1); - help->insertItem( "About &TQt", this, SLOT(aboutTQt())); + help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1); + help->insertItem( "About &TQt", this, TQ_SLOT(aboutTQt())); #ifndef TQT_NO_STYLE_WINDOWS tqApp->setStyle( new NorwegianWoodStyle ); diff --git a/doc/html/tictac-example.html b/doc/html/tictac-example.html index 7a168937..766da9bf 100644 --- a/doc/html/tictac-example.html +++ b/doc/html/tictac-example.html @@ -228,7 +228,7 @@ private: TicTacButton *ttb = new TicTacButton( this ); ttb->setPalette( p ); ttb->setEnabled( FALSE ); - connect( ttb, SIGNAL(clicked()), SLOT(buttonClicked()) ); + connect( ttb, TQ_SIGNAL(clicked()), TQ_SLOT(buttonClicked()) ); grid->addWidget( ttb, i%nBoard, i/nBoard ); buttons->insert( i, ttb ); btArray->at(i) = TicTacButton::Blank; // initial button type @@ -275,7 +275,7 @@ void TicTacGameBoard::newGame() // -------------------------------------------------------------------------- -// TicTacGameBoard::buttonClicked() - SLOT +// TicTacGameBoard::buttonClicked() - TQ_SLOT // // This slot is activated when a TicTacButton emits the signal "clicked()", // i.e. the user has clicked on a TicTacButton. @@ -456,7 +456,7 @@ void TicTacGameBoard::computerMove() // gameOver() slot board = new TicTacGameBoard( boardSize, this ); - connect( board, SIGNAL(finished()), SLOT(gameOver()) ); + connect( board, TQ_SIGNAL(finished()), TQ_SLOT(gameOver()) ); l->addWidget( board ); // Create a horizontal frame line @@ -477,9 +477,9 @@ void TicTacGameBoard::computerMove() // to this right slots. newGame = new TQPushButton( "Play!", this ); - connect( newGame, SIGNAL(clicked()), SLOT(newGameClicked()) ); + connect( newGame, TQ_SIGNAL(clicked()), TQ_SLOT(newGameClicked()) ); quit = new TQPushButton( "Quit", this ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); TQHBoxLayout * b = new TQHBoxLayout; l->addLayout( b ); b->addWidget( newGame ); @@ -490,7 +490,7 @@ void TicTacGameBoard::computerMove() // -------------------------------------------------------------------------- -// TicTacToe::newGameClicked() - SLOT +// TicTacToe::newGameClicked() - TQ_SLOT // // This slot is activated when the new game button is clicked. // @@ -504,7 +504,7 @@ void TicTacToe::newGameClicked() // -------------------------------------------------------------------------- -// TicTacToe::gameOver() - SLOT +// TicTacToe::gameOver() - TQ_SLOT // // This slot is activated when the TicTacGameBoard emits the signal // "finished()", i.e. when a player has won or when it is a draw. diff --git a/doc/html/timers.html b/doc/html/timers.html index 5494efbf..65e772d7 100644 --- a/doc/html/timers.html +++ b/doc/html/timers.html @@ -57,8 +57,8 @@ inherits TQObject so that it fits well into the own of most GUI programs. The normal way of using it is like this:

         TQTimer * counter = new TQTimer( this );
    -    connect( counter, SIGNAL(timeout()),
    -             this, SLOT(updateCaption()) );
    +    connect( counter, TQ_SIGNAL(timeout()),
    +             this, TQ_SLOT(updateCaption()) );
         counter->start( 1000 );
     
    @@ -70,7 +70,7 @@ it's started. to show the button being pressed down and then (0.1 seconds later) be released when the keyboard is used to "press" a button, for example:

    -    TQTimer::singleShot( 100, this, SLOT(animateTimeout()) );
    +    TQTimer::singleShot( 100, this, TQ_SLOT(animateTimeout()) );
     

    0.1 seconds after this line of code is executed, the same button's @@ -111,7 +111,7 @@ single-threaded application without blocking the user interface. Mandelbrot::Mandelbrot( TQObject *parent=0, const char *name ) : TQObject( parent, name ) { - connect( &timer, SIGNAL(timeout()), SLOT(calculate()) ); + connect( &timer, TQ_SIGNAL(timeout()), TQ_SLOT(calculate()) ); ... } diff --git a/doc/html/toggleaction-example.html b/doc/html/toggleaction-example.html index 2065fc1a..1c043c61 100644 --- a/doc/html/toggleaction-example.html +++ b/doc/html/toggleaction-example.html @@ -58,8 +58,8 @@ int main( int argc, char **argv ) labelonoffaction->setAccel( TQt::ALT+TQt::Key_L ); labelonoffaction->setIconSet( (TQPixmap) labelonoff_xpm ); - TQObject::connect( labelonoffaction, SIGNAL( toggled( bool ) ), - window, SLOT( setUsesTextLabel( bool ) ) ); + TQObject::connect( labelonoffaction, TQ_SIGNAL( toggled( bool ) ), + window, TQ_SLOT( setUsesTextLabel( bool ) ) ); labelonoffaction->addTo( toolbar ); diff --git a/doc/html/toplevel-example.html b/doc/html/toplevel-example.html index 9822093b..0e568224 100644 --- a/doc/html/toplevel-example.html +++ b/doc/html/toplevel-example.html @@ -188,7 +188,7 @@ modeless dialogs. label->setTextFormat(RichText); label->setAlignment(WordBreak); TQPushButton *okButton = new TQPushButton( "Close", widget ); - connect( okButton, SIGNAL(clicked()), widget, SLOT(close()) ); + connect( okButton, TQ_SIGNAL(clicked()), widget, TQ_SLOT(close()) ); widget->move( pos() );

    The widget is created if it has not been created yet, or if it was closed (since we use the WDestructiveClose flag). Note that the diff --git a/doc/html/tutorial1-02.html b/doc/html/tutorial1-02.html index 0d6ce108..32972c01 100644 --- a/doc/html/tutorial1-02.html +++ b/doc/html/tutorial1-02.html @@ -55,7 +55,7 @@ int main( int argc, char **argv ) quit.resize( 75, 30 ); quit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); - TQObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) ); + TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) ); a.setMainWidget( &quit ); quit.show(); @@ -87,7 +87,7 @@ to set right size.

    Here we choose a new font for the button, an 18-point bold font from the Times family. Note that we create the font on the spot.

    It is also possible to change the default font (using TQApplication::setFont()) for the whole application. -

            TQObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) );
    +

            TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) );
     

    connect() is perhaps the most central feature of TQt. Note that connect() is a static function in TQObject. Do not confuse it diff --git a/doc/html/tutorial1-03.html b/doc/html/tutorial1-03.html index f7f46a23..109974ef 100644 --- a/doc/html/tutorial1-03.html +++ b/doc/html/tutorial1-03.html @@ -56,7 +56,7 @@ int main( int argc, char **argv ) TQPushButton quit( "Quit", &box ); quit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); - TQObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) ); + TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) ); a.setMainWidget( &box ); box.show(); diff --git a/doc/html/tutorial1-04.html b/doc/html/tutorial1-04.html index 4830ac14..afe97744 100644 --- a/doc/html/tutorial1-04.html +++ b/doc/html/tutorial1-04.html @@ -63,7 +63,7 @@ public: quit->setGeometry( 62, 40, 75, 30 ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); } @@ -132,7 +132,7 @@ when you choose to, the child will automatically tell TQt about its imminent death.)

    The setGeometry() call does the same as move() and resize() did in the previous chapters. -

            connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
    +

            connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
         }
     

    Because the MyWidget class doesn't know about the application object, it diff --git a/doc/html/tutorial1-05.html b/doc/html/tutorial1-05.html index b7db3f3b..8de8fa42 100644 --- a/doc/html/tutorial1-05.html +++ b/doc/html/tutorial1-05.html @@ -62,7 +62,7 @@ public: TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); TQLCDNumber *lcd = new TQLCDNumber( 2, this, "lcd" ); @@ -70,7 +70,7 @@ public: slider->setRange( 0, 99 ); slider->setValue( 0 ); - connect( slider, SIGNAL(valueChanged(int)), lcd, SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), lcd, TQ_SLOT(display(int)) ); } int main( int argc, char **argv ) @@ -126,7 +126,7 @@ fashion. This instance is set up to display two digits and to be a child of

    TQSlider is a classical slider; the user can use the widget to drag something to adjust an integer value in a range. Here we create a horizontal one, set its range to 0-99 (inclusive, see the TQSlider::setRange() documentation) and its initial value to 0. -

            connect( slider, SIGNAL(valueChanged(int)), lcd, SLOT(display(int)) );
    +

            connect( slider, TQ_SIGNAL(valueChanged(int)), lcd, TQ_SLOT(display(int)) );
     

    Here we use the signal/slot mechanism to connect the slider's valueChanged() signal to the LCD number's diff --git a/doc/html/tutorial1-06.html b/doc/html/tutorial1-06.html index fb8da088..a920c557 100644 --- a/doc/html/tutorial1-06.html +++ b/doc/html/tutorial1-06.html @@ -64,7 +64,7 @@ public: TQSlider * slider = new TQSlider( Horizontal, this, "slider" ); slider->setRange( 0, 99 ); slider->setValue( 0 ); - connect( slider, SIGNAL(valueChanged(int)), lcd, SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), lcd, TQ_SLOT(display(int)) ); } class MyWidget : public TQVBox @@ -80,7 +80,7 @@ public: TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); TQGrid *grid = new TQGrid( 4, this ); @@ -119,7 +119,7 @@ constructor. This sort of widget is not very useful, so we'll add some API later TQSlider * slider = new TQSlider( Horizontal, this, "slider" ); slider->setRange( 0, 99 ); slider->setValue( 0 ); - connect( slider, SIGNAL(valueChanged(int)), lcd, SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), lcd, TQ_SLOT(display(int)) ); }

    This is lifted straight from the @@ -139,7 +139,7 @@ is renamed. TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );

    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-07.html b/doc/html/tutorial1-07.html index 8af0bd97..0a5ee023 100644 --- a/doc/html/tutorial1-07.html +++ b/doc/html/tutorial1-07.html @@ -110,10 +110,10 @@ signal you'll see called somethingChanged().

    This file is mainly lifted from t6/main.cpp, and only the changes are noted here. -

            connect( slider, SIGNAL(valueChanged(int)),
    -                 lcd, SLOT(display(int)) );
    -        connect( slider, SIGNAL(valueChanged(int)),
    -                 SIGNAL(valueChanged(int)) );
    +

            connect( slider, TQ_SIGNAL(valueChanged(int)),
    +                 lcd, TQ_SLOT(display(int)) );
    +        connect( slider, TQ_SIGNAL(valueChanged(int)),
    +                 TQ_SIGNAL(valueChanged(int)) );
     

    This code is from the LCDRange constructor.

    The first connect is the same that you have seen in the previous chapter. @@ -158,8 +158,8 @@ outside its legal range. for( int c = 0 ; c < 4 ; c++ ) { LCDRange* lr = new LCDRange( grid ); if ( previous ) - connect( lr, SIGNAL(valueChanged(int)), - previous, SLOT(setValue(int)) ); + connect( lr, TQ_SIGNAL(valueChanged(int)), + previous, TQ_SLOT(setValue(int)) ); previous = lr; } } diff --git a/doc/html/tutorial1-08.html b/doc/html/tutorial1-08.html index bb72603e..b2b1611b 100644 --- a/doc/html/tutorial1-08.html +++ b/doc/html/tutorial1-08.html @@ -192,10 +192,10 @@ widget. = new CannonField( this, "cannonField" );

    We create our CannonField. -

            connect( angle, SIGNAL(valueChanged(int)),
    -                 cannonField, SLOT(setAngle(int)) );
    -        connect( cannonField, SIGNAL(angleChanged(int)),
    -                 angle, SLOT(setValue(int)) );
    +

            connect( angle, TQ_SIGNAL(valueChanged(int)),
    +                 cannonField, TQ_SLOT(setAngle(int)) );
    +        connect( cannonField, TQ_SIGNAL(angleChanged(int)),
    +                 angle, TQ_SLOT(setValue(int)) );
     

    Here we connect the valueChanged() signal of the LCDRange to the setAngle() slot of the CannonField. This will update CannonField's angle diff --git a/doc/html/tutorial1-10.html b/doc/html/tutorial1-10.html index cb4d0ed7..8a8da0f2 100644 --- a/doc/html/tutorial1-10.html +++ b/doc/html/tutorial1-10.html @@ -189,10 +189,10 @@ is 0, 0). force->setRange( 10, 50 );

    We add a second LCDRange, which will be used to set the force. -

            connect( force, SIGNAL(valueChanged(int)),
    -                 cannonField, SLOT(setForce(int)) );
    -        connect( cannonField, SIGNAL(forceChanged(int)),
    -                 force, SLOT(setValue(int)) );
    +

            connect( force, TQ_SIGNAL(valueChanged(int)),
    +                 cannonField, TQ_SLOT(setForce(int)) );
    +        connect( cannonField, TQ_SIGNAL(forceChanged(int)),
    +                 force, TQ_SLOT(setValue(int)) );
     

    We connect the force widget and the cannonField widget, just like we did for the angle widget. diff --git a/doc/html/tutorial1-11.html b/doc/html/tutorial1-11.html index 0c2da3bf..8f7decd9 100644 --- a/doc/html/tutorial1-11.html +++ b/doc/html/tutorial1-11.html @@ -92,8 +92,8 @@ when the shot was fired. f = 0; timerCount = 0; autoShootTimer = new TQTimer( this, "movement handler" ); - connect( autoShootTimer, SIGNAL(timeout()), - this, SLOT(moveShot()) ); + connect( autoShootTimer, TQ_SIGNAL(timeout()), + this, TQ_SLOT(moveShot()) ); shoot_ang = 0; shoot_f = 0; setPalette( TQPalette( TQColor( 250, 250, 200) ) ); @@ -221,7 +221,7 @@ integer.

    In the constructor we create and set up the Shoot button exactly like we did with the Quit button. Note that the first argument to the constructor is the button text, and the third is the widget's name. -

            connect( shoot, SIGNAL(clicked()), cannonField, SLOT(shoot()) );
    +

            connect( shoot, TQ_SIGNAL(clicked()), cannonField, TQ_SLOT(shoot()) );
     

    Connects the clicked() signal of the Shoot button to the shoot() slot of the CannonField. diff --git a/doc/html/tutorial1-12.html b/doc/html/tutorial1-12.html index 9c73cd14..387e594d 100644 --- a/doc/html/tutorial1-12.html +++ b/doc/html/tutorial1-12.html @@ -117,10 +117,10 @@ initialization code. label = new TQLabel( " ", this, "label" ); label->setAlignment( AlignCenter ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + lcd, TQ_SLOT(display(int)) ); + connect( slider, TQ_SIGNAL(valueChanged(int)), + TQ_SIGNAL(valueChanged(int)) ); setFocusProxy( slider ); } diff --git a/doc/html/tutorial1-13.html b/doc/html/tutorial1-13.html index 102d237b..4e92f464 100644 --- a/doc/html/tutorial1-13.html +++ b/doc/html/tutorial1-13.html @@ -256,15 +256,15 @@ class, which was last seen as MyWidget. constructor to use it. (The good programmers at Trolltech never forget this, but I do. Caveat programmor - if "programmor" is Latin, at least. Anyway, back to the code.) -

            connect( cannonField, SIGNAL(hit()),
    -                 this, SLOT(hit()) );
    -        connect( cannonField, SIGNAL(missed()),
    -                 this, SLOT(missed()) );
    +

            connect( cannonField, TQ_SIGNAL(hit()),
    +                 this, TQ_SLOT(hit()) );
    +        connect( cannonField, TQ_SIGNAL(missed()),
    +                 this, TQ_SLOT(missed()) );
     

    This time we want to do something when the shot has hit or missed the target. Thus we connect the hit() and missed() signals of the CannonField to two protected slots with the same names in this class. -

            connect( shoot, SIGNAL(clicked()), SLOT(fire()) );
    +

            connect( shoot, TQ_SIGNAL(clicked()), TQ_SLOT(fire()) );
     

    Previously we connected the Shoot button's clicked() signal directly to the CannonField's shoot() slot. This time we want to keep track of @@ -272,8 +272,8 @@ the number of shots fired, so we connect it to a protected slot in this class instead.

    Notice how easy it is to change the behavior of a program when you are working with self-contained components. -

            connect( cannonField, SIGNAL(canShoot(bool)),
    -                 shoot, SLOT(setEnabled(bool)) );
    +

            connect( cannonField, TQ_SIGNAL(canShoot(bool)),
    +                 shoot, TQ_SLOT(setEnabled(bool)) );
     

    We also use the cannonField's canShoot() signal to enable or disable the Shoot button appropriately. @@ -281,7 +281,7 @@ the Shoot button appropriately. = new TQPushButton( "&New Game", this, "newgame" ); restart->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( restart, SIGNAL(clicked()), this, SLOT(newGame()) ); + connect( restart, TQ_SIGNAL(clicked()), this, TQ_SLOT(newGame()) );

    We create, set up, and connect the New Game button as we have done with the other buttons. Clicking this button will activate the diff --git a/doc/html/tutorial1-14.html b/doc/html/tutorial1-14.html index c5a94dbc..094c8081 100644 --- a/doc/html/tutorial1-14.html +++ b/doc/html/tutorial1-14.html @@ -210,9 +210,9 @@ box, the effect is that the TQVBox will put a frame a CannonField.

            TQAccel *accel = new TQAccel( this );
             accel->connectItem( accel->insertItem( Key_Enter ),
    -                            this, SLOT(fire()) );
    +                            this, TQ_SLOT(fire()) );
             accel->connectItem( accel->insertItem( Key_Return ),
    -                            this, SLOT(fire()) );
    +                            this, TQ_SLOT(fire()) );
     

    Here we create and set up an accelerator. An accelerator is an object that intercepts keyboard events to an application and calls slots if @@ -226,7 +226,7 @@ key Ctrl+Q is pressed. Because Enter is sometimes Return and there are even keyboards with both keys, we make both Enter and Return invoke fire().

            accel->connectItem( accel->insertItem( CTRL+Key_Q ),
    -                            tqApp, SLOT(quit()) );
    +                            tqApp, TQ_SLOT(quit()) );
     

    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 35a797c4..ade4d257 100644 --- a/doc/html/tutorial2-05.html +++ b/doc/html/tutorial2-05.html @@ -163,7 +163,7 @@ toolbar buttons stay in sync and saves duplicating code.

            fileNewAction = new TQAction(
                     "New Chart", TQPixmap( file_new ),
                     "&New", CTRL+Key_N, this, "new" );
    -        connect( fileNewAction, SIGNAL( activated() ), this, SLOT( fileNew() ) );
    +        connect( fileNewAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileNew() ) );
     

    When we construct an action we give it a name, an optional icon, a menu text, and an accelerator short-cut key (or 0 if no accelerator is @@ -257,8 +257,8 @@ the settings. We attempt to read each possible file entry ("File1" to "File9"), and add each non-empty entry to the list of recently used files. If there are one or more recently used files we update the File menu by calling updateRecentFilesMenu(); (we'll review this later on). -

            connect( chartGroup, SIGNAL( selected(TQAction*) ),
    -                 this, SLOT( updateChartType(TQAction*) ) );
    +

            connect( chartGroup, TQ_SIGNAL( selected(TQAction*) ),
    +                 this, TQ_SLOT( updateChartType(TQAction*) ) );
     

    Now that we have set the chart type (when we read it in as a user setting) it is safe to connect the chart group to our @@ -442,7 +442,7 @@ opened files list and call fileSave() (covered in Fi if ( i < int(m_recentFiles.count()) ) fileMenu->insertItem( TQString( "&%1 %2" ). arg( i + 1 ).arg( m_recentFiles[i] ), - this, SLOT( fileOpenRecent(int) ), + this, TQ_SLOT( fileOpenRecent(int) ), 0, i ); } } diff --git a/doc/html/tutorial2-08.html b/doc/html/tutorial2-08.html index 1e30c2c5..315b025c 100644 --- a/doc/html/tutorial2-08.html +++ b/doc/html/tutorial2-08.html @@ -170,15 +170,15 @@ key an accelerator for the Cancel button.

    We add the buttonBox layout to the tableButtonBox and the layout is complete. -

            connect( table, SIGNAL( clicked(int,int,int,const TQPoint&) ),
    -                 this, SLOT( setColor(int,int) ) );
    -        connect( table, SIGNAL( currentChanged(int,int) ),
    -                 this, SLOT( currentChanged(int,int) ) );
    -        connect( table, SIGNAL( valueChanged(int,int) ),
    -                 this, SLOT( valueChanged(int,int) ) );
    -        connect( colorPushButton, SIGNAL( clicked() ), this, SLOT( setColor() ) );
    -        connect( okPushButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
    -        connect( cancelPushButton, SIGNAL( clicked() ), this, SLOT( reject() ) );
    +

            connect( table, TQ_SIGNAL( clicked(int,int,int,const TQPoint&) ),
    +                 this, TQ_SLOT( setColor(int,int) ) );
    +        connect( table, TQ_SIGNAL( currentChanged(int,int) ),
    +                 this, TQ_SLOT( currentChanged(int,int) ) );
    +        connect( table, TQ_SIGNAL( valueChanged(int,int) ),
    +                 this, TQ_SLOT( valueChanged(int,int) ) );
    +        connect( colorPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( setColor() ) );
    +        connect( okPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    +        connect( cancelPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
     

    We now "wire up" the form.

      diff --git a/doc/html/tutorial2-09.html b/doc/html/tutorial2-09.html index 4833b690..8b454dab 100644 --- a/doc/html/tutorial2-09.html +++ b/doc/html/tutorial2-09.html @@ -185,9 +185,9 @@ create the radio buttons, making "No" the default.

      The decimal places label and spin box are laid out just like the other horizontal layouts, and the buttons are laid out in a very similar way to the buttons in the set data form. -

              connect( fontPushButton, SIGNAL( clicked() ), this, SLOT( chooseFont() ) );
      -        connect( okPushButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
      -        connect( cancelPushButton, SIGNAL( clicked() ), this, SLOT( reject() ) );
      +

              connect( fontPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( chooseFont() ) );
      +        connect( okPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
      +        connect( cancelPushButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
       

      We only need three connections:

        diff --git a/doc/html/wizard-example.html b/doc/html/wizard-example.html index c7b7b7b7..32369a35 100644 --- a/doc/html/wizard-example.html +++ b/doc/html/wizard-example.html @@ -141,8 +141,8 @@ void Wizard::setupPage1() key->setMaxLength( 4 ); key->setValidator( new TQIntValidator( 1000, 9999, key ) ); - connect( key, SIGNAL( textChanged( const TQString & ) ), - this, SLOT( keyChanged( const TQString & ) ) ); + connect( key, TQ_SIGNAL( textChanged( const TQString & ) ), + this, TQ_SLOT( keyChanged( const TQString & ) ) ); addPage( page1, "Personal Key" ); @@ -197,12 +197,12 @@ void Wizard::setupPage2() phone = new TQLineEdit( row4 ); email = new TQLineEdit( row5 ); - connect( firstName, SIGNAL( textChanged( const TQString & ) ), - this, SLOT( dataChanged( const TQString & ) ) ); - connect( lastName, SIGNAL( textChanged( const TQString & ) ), - this, SLOT( dataChanged( const TQString & ) ) ); - connect( email, SIGNAL( textChanged( const TQString & ) ), - this, SLOT( dataChanged( const TQString & ) ) ); + connect( firstName, TQ_SIGNAL( textChanged( const TQString & ) ), + this, TQ_SLOT( dataChanged( const TQString & ) ) ); + connect( lastName, TQ_SIGNAL( textChanged( const TQString & ) ), + this, TQ_SLOT( dataChanged( const TQString & ) ) ); + connect( email, TQ_SIGNAL( textChanged( const TQString & ) ), + this, TQ_SLOT( dataChanged( const TQString & ) ) ); addPage( page2, "Personal Data" ); diff --git a/doc/html/wizard-wizard-cpp.html b/doc/html/wizard-wizard-cpp.html index a18e3521..42d6c737 100644 --- a/doc/html/wizard-wizard-cpp.html +++ b/doc/html/wizard-wizard-cpp.html @@ -87,8 +87,8 @@ void Wizard::setupPage1() key->setMaxLength( 4 ); key->setValidator( new TQIntValidator( 1000, 9999, key ) ); - connect( key, SIGNAL( textChanged( const TQString & ) ), - this, SLOT( keyChanged( const TQString & ) ) ); + connect( key, TQ_SIGNAL( textChanged( const TQString & ) ), + this, TQ_SLOT( keyChanged( const TQString & ) ) ); addPage( page1, "Personal Key" ); @@ -143,12 +143,12 @@ void Wizard::setupPage2() phone = new TQLineEdit( row4 ); email = new TQLineEdit( row5 ); - connect( firstName, SIGNAL( textChanged( const TQString & ) ), - this, SLOT( dataChanged( const TQString & ) ) ); - connect( lastName, SIGNAL( textChanged( const TQString & ) ), - this, SLOT( dataChanged( const TQString & ) ) ); - connect( email, SIGNAL( textChanged( const TQString & ) ), - this, SLOT( dataChanged( const TQString & ) ) ); + connect( firstName, TQ_SIGNAL( textChanged( const TQString & ) ), + this, TQ_SLOT( dataChanged( const TQString & ) ) ); + connect( lastName, TQ_SIGNAL( textChanged( const TQString & ) ), + this, TQ_SLOT( dataChanged( const TQString & ) ) ); + connect( email, TQ_SIGNAL( textChanged( const TQString & ) ), + this, TQ_SLOT( dataChanged( const TQString & ) ) ); addPage( page2, "Personal Data" ); diff --git a/doc/html/xform-example.html b/doc/html/xform-example.html index d6f88907..306d8547 100644 --- a/doc/html/xform-example.html +++ b/doc/html/xform-example.html @@ -184,16 +184,16 @@ private: rotS->setRange( -180, 180 ); rotS->setValue( 0 ); - connect( rotS, SIGNAL(valueChanged(int)), SLOT(newMtx()) ); + connect( rotS, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(newMtx()) ); shearLCD->display( "0.00" ); shearS->setRange( -25, 25 ); shearS->setValue( 0 ); - connect( shearS, SIGNAL(valueChanged(int)), SLOT(newMtx()) ); + connect( shearS, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(newMtx()) ); mirror->setText( tr("Mirror") ); - connect( mirror, SIGNAL(clicked()), SLOT(newMtx()) ); + connect( mirror, TQ_SIGNAL(clicked()), TQ_SLOT(newMtx()) ); TQButtonGroup *bg = new TQButtonGroup(this); bg->hide(); @@ -204,23 +204,23 @@ private: rb_img->setText( tr("Image") ); rb_img->setChecked(TRUE); rb_pic->setText( tr("Picture") ); - connect( bg, SIGNAL(clicked(int)), SLOT(changeMode(int)) ); + connect( bg, TQ_SIGNAL(clicked(int)), TQ_SLOT(changeMode(int)) ); fpb->setText( tr("Select font...") ); - connect( fpb, SIGNAL(clicked()), SLOT(selectFont()) ); + connect( fpb, TQ_SIGNAL(clicked()), TQ_SLOT(selectFont()) ); textEd->setText( "Troll" ); - connect( textEd, SIGNAL(textChanged(const TQString&)), - SLOT(newTxt(const TQString&)) ); + connect( textEd, TQ_SIGNAL(textChanged(const TQString&)), + TQ_SLOT(newTxt(const TQString&)) ); magLCD = new TQLCDNumber( 4,optionals_other, "magLCD" ); magLCD->display( "100" ); magS = new TQSlider( TQSlider::Horizontal, optionals_other, "magnifySlider" ); magS->setRange( 0, 800 ); - connect( magS, SIGNAL(valueChanged(int)), SLOT(newMtx()) ); + connect( magS, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(newMtx()) ); magS->setValue( 0 ); - connect( magS, SIGNAL(valueChanged(int)), magLCD, SLOT(display(int))); + connect( magS, TQ_SIGNAL(valueChanged(int)), magLCD, TQ_SLOT(display(int))); optionals_text->adjustSize(); optionals_other->adjustSize(); @@ -519,13 +519,13 @@ void XFormCenter::newMode( int m ) setStretchFactor(sx,1); xc->setFrameStyle( TQFrame::Panel | TQFrame::Raised ); xc->setLineWidth( 2 ); - connect( xc, SIGNAL(newText(const TQString&)), sx, - SLOT(setText(const TQString&)) ); - connect( xc, SIGNAL(newMatrix(TQWMatrix)), - sx, SLOT(setMatrix(TQWMatrix)) ); - connect( xc, SIGNAL(newFont(const TQFont&)), sx, - SLOT(setFont(const TQFont&)) ); - connect( xc, SIGNAL(newMode(int)), SLOT(newMode(int)) ); + connect( xc, TQ_SIGNAL(newText(const TQString&)), sx, + TQ_SLOT(setText(const TQString&)) ); + connect( xc, TQ_SIGNAL(newMatrix(TQWMatrix)), + sx, TQ_SLOT(setMatrix(TQWMatrix)) ); + connect( xc, TQ_SIGNAL(newFont(const TQFont&)), sx, + TQ_SLOT(setFont(const TQFont&)) ); + connect( xc, TQ_SIGNAL(newMode(int)), TQ_SLOT(newMode(int)) ); sx->setText( "Troll" ); newMode( Image ); sx->setMatrix(xc->matrix()); diff --git a/doc/i18n.doc b/doc/i18n.doc index 7af9251b..6ff7ce4a 100644 --- a/doc/i18n.doc +++ b/doc/i18n.doc @@ -271,7 +271,7 @@ it. The correct idiom is \code QPopupMenu *file = new QPopupMenu( this ); - file->insertItem( tr("&Quit"), this, SLOT(quit()), + file->insertItem( tr("&Quit"), this, TQ_SLOT(quit()), QKeySequence(tr("Ctrl+Q", "File|Quit")) ); \endcode diff --git a/doc/man/man3/tqaccel.3qt b/doc/man/man3/tqaccel.3qt index 3b06cbbf..423ecd6d 100644 --- a/doc/man/man3/tqaccel.3qt +++ b/doc/man/man3/tqaccel.3qt @@ -110,7 +110,7 @@ In most cases, you will not need to use this class directly. Use the QAction cla .br QPopupMenu *fileMenu = new fileMenu( parent ); .br - fileMenu->insertItem( "Undo", parent, SLOT(undo()), CTRL+Key_Z ); + fileMenu->insertItem( "Undo", parent, TQ_SLOT(undo()), CTRL+Key_Z ); .br .fi .PP @@ -147,7 +147,7 @@ Example: .br myWindow, // connected to myWindow's .br - SLOT(printDoc()) ); // printDoc() slot + TQ_SLOT(printDoc()) ); // printDoc() slot .br .fi .PP @@ -176,7 +176,7 @@ Connects the accelerator item \fIid\fR to the slot \fImember\fR of \fIreceiver\f .PP .nf .br - a->connectItem( 201, mainView, SLOT(quit()) ); + a->connectItem( 201, mainView, TQ_SLOT(quit()) ); .br .fi .PP @@ -280,7 +280,7 @@ This function is typically used with tr(), so that accelerator keys can be repla .br QPopupMenu *file = new QPopupMenu( this ); .br - file->insertItem( p1, tr("&Open..."), this, SLOT(open()), + file->insertItem( p1, tr("&Open..."), this, TQ_SLOT(open()), .br QAccel::stringToKey(tr("Ctrl+O", "File|Open")) ); .br diff --git a/doc/man/man3/tqaction.3qt b/doc/man/man3/tqaction.3qt index abdbe40a..7ccc0982 100644 --- a/doc/man/man3/tqaction.3qt +++ b/doc/man/man3/tqaction.3qt @@ -196,7 +196,7 @@ Once a QAction has been created it should be added to the relevant menu and tool .br CTRL+Key_O, this, "open" ); .br - connect( fileOpenAction, SIGNAL( activated() ) , this, SLOT( choose() ) ); + connect( fileOpenAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( choose() ) ); .fi .PP We create a "File Save" action with a menu text of "&Save" and \fICtrl+S\fR as the keyboard accelerator. We connect the fileSaveAction's activated() signal to our own save() slot. Note that at this point there is no menu or toolbar action, we'll add them next: @@ -400,9 +400,9 @@ To trigger a user command depending on whether a toggle action has been switched .PP .nf .br - TQObject::connect( labelonoffaction, SIGNAL( toggled( bool ) ), + TQObject::connect( labelonoffaction, TQ_SIGNAL( toggled( bool ) ), .br - window, SLOT( setUsesTextLabel( bool ) ) ); + window, TQ_SLOT( setUsesTextLabel( bool ) ) ); .fi .PP See also activated(), toggleAction, and on. diff --git a/doc/man/man3/tqactiongroup.3qt b/doc/man/man3/tqactiongroup.3qt index f6ba0909..7ef50bdc 100644 --- a/doc/man/man3/tqactiongroup.3qt +++ b/doc/man/man3/tqactiongroup.3qt @@ -77,7 +77,7 @@ Here's an example from examples/textedit: .br QActionGroup *grp = new QActionGroup( this ); .br - connect( grp, SIGNAL( selected( QAction* ) ), this, SLOT( textAlign( QAction* ) ) ); + connect( grp, TQ_SIGNAL( selected( QAction* ) ), this, TQ_SLOT( textAlign( QAction* ) ) ); .fi .PP Here we create a new action group. Since the action group is exclusive by default, only one of the actions in the group is ever active at any one time. We then connect the group's selected() signal to our textAlign() slot. diff --git a/doc/man/man3/tqapplication.3qt b/doc/man/man3/tqapplication.3qt index 56a54638..e2efca12 100644 --- a/doc/man/man3/tqapplication.3qt +++ b/doc/man/man3/tqapplication.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", tqApp, SLOT(closeAllWindows()), CTRL+Key_Q ); + file->insertItem( "&Quit", tqApp, TQ_SLOT(closeAllWindows()), CTRL+Key_Q ); .br .br // when the last window is closed, the application should quit .br - connect( tqApp, SIGNAL( lastWindowClosed() ), tqApp, SLOT( quit() ) ); + connect( tqApp, TQ_SIGNAL( lastWindowClosed() ), tqApp, TQ_SLOT( quit() ) ); .br .fi .PP @@ -1131,7 +1131,7 @@ Example: .br QPushButton *quitButton = new QPushButton( "Quit" ); .br - connect( quitButton, SIGNAL(clicked()), tqApp, SLOT(quit()) ); + connect( quitButton, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); .br .fi .PP diff --git a/doc/man/man3/tqaxbase.3qt b/doc/man/man3/tqaxbase.3qt index 8b365f36..7d8a68b7 100644 --- a/doc/man/man3/tqaxbase.3qt +++ b/doc/man/man3/tqaxbase.3qt @@ -120,7 +120,7 @@ QAxBase is an abstract class that cannot be used directly, and is instantiated t .PP .nf .br - connect( buttonBack, SIGNAL(clicked()), webBrowser, SLOT(GoBack()) ); + connect( buttonBack, TQ_SIGNAL(clicked()), webBrowser, TQ_SLOT(GoBack()) ); .br .fi .PP @@ -146,9 +146,9 @@ Outgoing events supported by the COM object are emitted as standard TQt signals. .PP .nf .br - connect( webBrowser, SIGNAL(TitleChanged(const TQString&)), + connect( webBrowser, TQ_SIGNAL(TitleChanged(const TQString&)), .br - this, SLOT(setCaption(const TQString&)) ); + this, TQ_SLOT(setCaption(const TQString&)) ); .br .fi .PP @@ -203,7 +203,7 @@ use the QAxBase API like this: object.setProperty( "font", QFont( "Times New Roman", 12 ) ); .br .br - connect( this, SIGNAL(clicked(int)), &object, SLOT(showColumn(int)) ); + connect( this, TQ_SIGNAL(clicked(int)), &object, TQ_SLOT(showColumn(int)) ); .br bool ok = object.dynamicCall( "addColumn(const TQString&)", "Column 1" ).toBool(); .br diff --git a/doc/man/man3/tqkeysequence.3qt b/doc/man/man3/tqkeysequence.3qt index 5e975930..37dd4ac1 100644 --- a/doc/man/man3/tqkeysequence.3qt +++ b/doc/man/man3/tqkeysequence.3qt @@ -92,7 +92,7 @@ This contructor is typically used with tr(), so that accelerator keys can be rep .br QPopupMenu *file = new QPopupMenu( this ); .br - file->insertItem( tr("&Open..."), this, SLOT(open()), + file->insertItem( tr("&Open..."), this, TQ_SLOT(open()), .br QKeySequence( tr("Ctrl+O", "File|Open") ) ); .br diff --git a/doc/man/man3/tqmainwindow.3qt b/doc/man/man3/tqmainwindow.3qt index 050367e3..0d5dda86 100644 --- a/doc/man/man3/tqmainwindow.3qt +++ b/doc/man/man3/tqmainwindow.3qt @@ -287,7 +287,7 @@ When subclassing we add the menu items and toolbars in the subclass's constructo menuBar()->insertItem( "&Help", help ); .br .br - help->insertItem( "&About", this, SLOT(about()), Key_F1 ); + help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1 ); .fi .PP Here we've added a new menu with one menu item. The menu has been inserted into the menu bar that QMainWindow provides by default and which is accessible through the menuBar() function. The slot will be called when the menu item is clicked. @@ -305,7 +305,7 @@ Here we've added a new menu with one menu item. The menu has been inserted into .br = new QToolButton( openIcon, "Open File", TQString::null, .br - this, SLOT(choose()), fileTools, "open file" ); + this, TQ_SLOT(choose()), fileTools, "open file" ); .fi .PP This extract shows the creation of a toolbar with one toolbar button. QMainWindow supplies four dock areas for toolbars. When a toolbar is created as a child of a QMainWindow (or derived class) instance it will be placed in a dock area (the Top dock area by default). The slot will be called when the toolbar button is clicked. Any dock window can be added to a dock area either using addDockWindow(), or by creating a dock window with the QMainWindow as the parent. @@ -336,7 +336,7 @@ Often we want to synchronize a toolbar button with a menu item. For example, if .br CTRL+Key_O, this, "open" ); .br - connect( fileOpenAction, SIGNAL( activated() ) , this, SLOT( choose() ) ); + connect( fileOpenAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( choose() ) ); .fi .PP Here we create an action with an icon which will be used in any menu and toolbar that the action is added to. We've also given the action a menu name, '&Open', and a keyboard shortcut. The connection that we have made will be used when the user clicks either the menu item \fIor\fR the toolbar button. @@ -751,7 +751,7 @@ This is the same as QWhatsThis::enterWhatsThisMode(), but implemented as a main .br QPopupMenu * help = new QPopupMenu( this ); .br - help->insertItem( "What's &This", this , SLOT(whatsThis()), SHIFT+Key_F1); + help->insertItem( "What's &This", this , TQ_SLOT(whatsThis()), SHIFT+Key_F1); .br .fi .PP diff --git a/doc/man/man3/tqmenubar.3qt b/doc/man/man3/tqmenubar.3qt index 22d7106f..42289d79 100644 --- a/doc/man/man3/tqmenubar.3qt +++ b/doc/man/man3/tqmenubar.3qt @@ -170,9 +170,9 @@ Example of creating a menu bar with menu items (from menu/menu.cpp): .PP .nf .br - file->insertItem( p1, "&Open", this, SLOT(open()), CTRL+Key_O ); + file->insertItem( p1, "&Open", this, TQ_SLOT(open()), CTRL+Key_O ); .br - file->insertItem( p2, "&New", this, SLOT(news()), CTRL+Key_N ); + file->insertItem( p2, "&New", this, TQ_SLOT(news()), CTRL+Key_N ); .fi .PP .nf @@ -294,9 +294,9 @@ Example: .br QPopupMenu *fileMenu = new QPopupMenu; .br - fileMenu->insertItem( "New", myView, SLOT(newFile()), CTRL+Key_N ); + fileMenu->insertItem( "New", myView, TQ_SLOT(newFile()), CTRL+Key_N ); .br - fileMenu->insertItem( "Open", myView, SLOT(open()), CTRL+Key_O ); + fileMenu->insertItem( "Open", myView, TQ_SLOT(open()), CTRL+Key_O ); .br mainMenu->insertItem( "File", fileMenu ); .br @@ -308,7 +308,7 @@ If you need to translate accelerators, use tr() with the text and accelerator. ( .PP .nf .br - fileMenu->insertItem( tr("Open"), myView, SLOT(open()), + fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()), .br tr("Ctrl+O") ); .br diff --git a/doc/man/man3/tqmenudata.3qt b/doc/man/man3/tqmenudata.3qt index 60115fc3..cbc1f527 100644 --- a/doc/man/man3/tqmenudata.3qt +++ b/doc/man/man3/tqmenudata.3qt @@ -334,9 +334,9 @@ Example: .br QPopupMenu *fileMenu = new QPopupMenu; .br - fileMenu->insertItem( "New", myView, SLOT(newFile()), CTRL+Key_N ); + fileMenu->insertItem( "New", myView, TQ_SLOT(newFile()), CTRL+Key_N ); .br - fileMenu->insertItem( "Open", myView, SLOT(open()), CTRL+Key_O ); + fileMenu->insertItem( "Open", myView, TQ_SLOT(open()), CTRL+Key_O ); .br mainMenu->insertItem( "File", fileMenu ); .br @@ -348,7 +348,7 @@ If you need to translate accelerators, use tr() with the text and accelerator. ( .PP .nf .br - fileMenu->insertItem( tr("Open"), myView, SLOT(open()), + fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()), .br tr("Ctrl+O") ); .br diff --git a/doc/man/man3/tqobject.3qt b/doc/man/man3/tqobject.3qt index 0d64d9bc..1ed6f43e 100644 --- a/doc/man/man3/tqobject.3qt +++ b/doc/man/man3/tqobject.3qt @@ -298,7 +298,7 @@ Example: sql/overview/custom1/main.cpp. .SH "bool TQObject::connect ( const TQObject * sender, const char * signal, const TQObject * receiver, const char * member )\fC [static]\fR" Connects \fIsignal\fR from the \fIsender\fR object to \fImember\fR in object \fIreceiver\fR, and returns TRUE if the connection succeeds; otherwise returns FALSE. .PP -You must use the SIGNAL() and SLOT() macros when specifying the \fIsignal\fR and the \fImember\fR, for example: +You must use the TQ_SIGNAL() and TQ_SLOT() macros when specifying the \fIsignal\fR and the \fImember\fR, for example: .PP .nf .br @@ -306,13 +306,13 @@ You must use the SIGNAL() and SLOT() macros when specifying the \fIsignal\fR and .br QScrollBar *scroll = new QScrollBar; .br - TQObject::connect( scroll, SIGNAL(valueChanged(int)), + TQObject::connect( scroll, TQ_SIGNAL(valueChanged(int)), .br - label, SLOT(setNum(int)) ); + label, TQ_SLOT(setNum(int)) ); .br .fi .PP -This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return FALSE: TQObject::connect( scroll, SIGNAL(valueChanged(int v)), label, SLOT(setNum(int v)) ); +This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return FALSE: TQObject::connect( scroll, TQ_SIGNAL(valueChanged(int v)), label, TQ_SLOT(setNum(int v)) ); .PP A signal can also be connected to another signal: .PP @@ -347,7 +347,7 @@ A signal can also be connected to another signal: .br aButton = new QPushButton( this ); .br - connect( aButton, SIGNAL(clicked()), SIGNAL(myUsefulSignal()) ); + connect( aButton, TQ_SIGNAL(clicked()), TQ_SIGNAL(myUsefulSignal()) ); .br } .br @@ -429,14 +429,14 @@ Disconnect everything connected to a specific signal: .IP .nf .br - disconnect( myObject, SIGNAL(mySignal()), 0, 0 ); + disconnect( myObject, TQ_SIGNAL(mySignal()), 0, 0 ); .br .fi equivalent to the non-static overloaded function .IP .nf .br - myObject->disconnect( SIGNAL(mySignal()) ); + myObject->disconnect( TQ_SIGNAL(mySignal()) ); .br .fi .IP 3 diff --git a/doc/man/man3/tqpopupmenu.3qt b/doc/man/man3/tqpopupmenu.3qt index d8dfa0b3..05df9122 100644 --- a/doc/man/man3/tqpopupmenu.3qt +++ b/doc/man/man3/tqpopupmenu.3qt @@ -422,9 +422,9 @@ Example: .br QPopupMenu *fileMenu = new QPopupMenu; .br - fileMenu->insertItem( "New", myView, SLOT(newFile()), CTRL+Key_N ); + fileMenu->insertItem( "New", myView, TQ_SLOT(newFile()), CTRL+Key_N ); .br - fileMenu->insertItem( "Open", myView, SLOT(open()), CTRL+Key_O ); + fileMenu->insertItem( "Open", myView, TQ_SLOT(open()), CTRL+Key_O ); .br mainMenu->insertItem( "File", fileMenu ); .br @@ -436,7 +436,7 @@ If you need to translate accelerators, use tr() with the text and accelerator. ( .PP .nf .br - fileMenu->insertItem( tr("Open"), myView, SLOT(open()), + fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()), .br tr("Ctrl+O") ); .br diff --git a/doc/man/man3/tqprocess.3qt b/doc/man/man3/tqprocess.3qt index 11572e37..24eb27ca 100644 --- a/doc/man/man3/tqprocess.3qt +++ b/doc/man/man3/tqprocess.3qt @@ -178,9 +178,9 @@ A code snippet for this with the QProcess class might look like this: proc->addArgument( "small_dialog.ui" ); .br .br - connect( proc, SIGNAL(readyReadStdout()), + connect( proc, TQ_SIGNAL(readyReadStdout()), .br - this, SLOT(readFromStdout()) ); + this, TQ_SLOT(readFromStdout()) ); .fi .PP .nf @@ -339,7 +339,7 @@ The nice way to end a process and to be sure that it is finished, is to do somet .br process->tryTerminate(); .br - QTimer::singleShot( 5000, process, SLOT( kill() ) ); + QTimer::singleShot( 5000, process, TQ_SLOT( kill() ) ); .br .fi .PP diff --git a/doc/man/man3/tqprogressdialog.3qt b/doc/man/man3/tqprogressdialog.3qt index 3bfd25ac..0b8e9f2e 100644 --- a/doc/man/man3/tqprogressdialog.3qt +++ b/doc/man/man3/tqprogressdialog.3qt @@ -189,11 +189,11 @@ Operation::Operation( TQObject *parent = 0 ) .br pd = new QProgressDialog( "Operation in progress.", "Cancel", 100 ); .br - connect( pd, SIGNAL(canceled()), this, SLOT(cancel()) ); + connect( pd, TQ_SIGNAL(canceled()), this, TQ_SLOT(cancel()) ); .br t = new QTimer( this ); .br - connect( t, SIGNAL(timeout()), this, SLOT(perform()) ); + connect( t, TQ_SIGNAL(timeout()), this, TQ_SLOT(perform()) ); .br t->start( 0 ); .br diff --git a/doc/man/man3/tqstatusbar.3qt b/doc/man/man3/tqstatusbar.3qt index e24daa92..1e0cc38c 100644 --- a/doc/man/man3/tqstatusbar.3qt +++ b/doc/man/man3/tqstatusbar.3qt @@ -87,9 +87,9 @@ To display a \fItemporary\fR message, call message() (perhaps by connecting a su .PP .nf .br - connect( loader, SIGNAL(progressMessage(const TQString&)), + connect( loader, TQ_SIGNAL(progressMessage(const TQString&)), .br - statusBar(), SLOT(message(const TQString&)) ); + statusBar(), TQ_SLOT(message(const TQString&)) ); .br .br statusBar()->message("Loading..."); // Initial message diff --git a/doc/man/man3/tqtableitem.3qt b/doc/man/man3/tqtableitem.3qt index adc77079..c6d85cbd 100644 --- a/doc/man/man3/tqtableitem.3qt +++ b/doc/man/man3/tqtableitem.3qt @@ -258,7 +258,7 @@ If you reimplement this function you'll almost certainly need to reimplement set .br ( (ComboItem*)this )->cb = new QComboBox( table()->viewport() ); .br - TQObject::connect( cb, SIGNAL( activated( int ) ), table(), SLOT( doValueChanged() ) ); + TQObject::connect( cb, TQ_SIGNAL( activated( int ) ), table(), TQ_SLOT( doValueChanged() ) ); .br cb->insertItem( "Yes" ); .br diff --git a/doc/man/man3/tqtimer.3qt b/doc/man/man3/tqtimer.3qt index c690bbed..14a67dc7 100644 --- a/doc/man/man3/tqtimer.3qt +++ b/doc/man/man3/tqtimer.3qt @@ -62,7 +62,7 @@ Example: .br QTimer *timer = new QTimer( myObject ); .br - connect( timer, SIGNAL(timeout()), myObject, SLOT(timerDone()) ); + connect( timer, TQ_SIGNAL(timeout()), myObject, TQ_SLOT(timerDone()) ); .br timer->start( 2000, TRUE ); // 2 seconds single-shot timer .br @@ -78,7 +78,7 @@ This can be used to do heavy work while providing a snappy user interface: .br QTimer *t = new QTimer( myObject ); .br - connect( t, SIGNAL(timeout()), SLOT(processOneThing()) ); + connect( t, TQ_SIGNAL(timeout()), TQ_SLOT(processOneThing()) ); .br t->start( 0, FALSE ); .br @@ -130,7 +130,7 @@ Example: .br QApplication a( argc, argv ); .br - QTimer::singleShot( 10*60*1000, &a, SLOT(quit()) ); + QTimer::singleShot( 10*60*1000, &a, TQ_SLOT(quit()) ); .br ... // create and show your widgets .br diff --git a/doc/man/man3/tqtooltipgroup.3qt b/doc/man/man3/tqtooltipgroup.3qt index 5f54a0b3..64f9d45b 100644 --- a/doc/man/man3/tqtooltipgroup.3qt +++ b/doc/man/man3/tqtooltipgroup.3qt @@ -66,13 +66,13 @@ QToolTipGroup has practically no API; it is only used as an argument to QToolTip .br QToolTipGroup * grp = new QToolTipGroup( this, "tool tip relay" ); .br - connect( grp, SIGNAL(showTip(const TQString&)), + connect( grp, TQ_SIGNAL(showTip(const TQString&)), .br - myLabel, SLOT(setText(const TQString&)) ); + myLabel, TQ_SLOT(setText(const TQString&)) ); .br - connect( grp, SIGNAL(removeTip()), + connect( grp, TQ_SIGNAL(removeTip()), .br - myLabel, SLOT(clear()) ); + myLabel, TQ_SLOT(clear()) ); .br QToolTip::add( giraffeButton, "feed giraffe", .br diff --git a/doc/network.doc b/doc/network.doc index e542afe5..f37a911d 100644 --- a/doc/network.doc +++ b/doc/network.doc @@ -166,12 +166,12 @@ QUrlOperator op; MyClass::MyClass() : TQObject(), op( "ftp://ftp.trolltech.com" ) { - connect( &op, SIGNAL( newChildren( const QValueList &, QNetworkOperation * ) ), - this, SLOT( slotInsertEntries( const QValueList &, QNetworkOperation * ) ) ); - connect( &op, SIGNAL( start( QNetworkOperation * ) ), - this, SLOT( slotStart( QNetworkOperation *) ) ); - connect( &op, SIGNAL( finished( QNetworkOperation * ) ), - this, SLOT( slotFinished( QNetworkOperation *) ) ); + connect( &op, TQ_SIGNAL( newChildren( const QValueList &, QNetworkOperation * ) ), + this, TQ_SLOT( slotInsertEntries( const QValueList &, QNetworkOperation * ) ) ); + connect( &op, TQ_SIGNAL( start( QNetworkOperation * ) ), + this, TQ_SLOT( slotStart( QNetworkOperation *) ) ); + connect( &op, TQ_SIGNAL( finished( QNetworkOperation * ) ), + this, TQ_SLOT( slotFinished( QNetworkOperation *) ) ); } void MyClass::slotInsertEntries( const QValueList &info, QNetworkOperation * ) diff --git a/doc/object.doc b/doc/object.doc index f38389d0..e28036f6 100644 --- a/doc/object.doc +++ b/doc/object.doc @@ -118,8 +118,8 @@ inherits \l TQObject so that it fits well into the ownership structure of most GUI programs. The normal way of using it is like this: \code QTimer * counter = new QTimer( this ); - connect( counter, SIGNAL(timeout()), - this, SLOT(updateCaption()) ); + connect( counter, TQ_SIGNAL(timeout()), + this, TQ_SLOT(updateCaption()) ); counter->start( 1000 ); \endcode @@ -133,7 +133,7 @@ to show the button being pressed down and then (0.1 seconds later) be released when the keyboard is used to "press" a button, for example: \code - QTimer::singleShot( 100, this, SLOT(animateTimeout()) ); + QTimer::singleShot( 100, this, TQ_SLOT(animateTimeout()) ); \endcode 0.1 seconds after this line of code is executed, the same button's @@ -176,7 +176,7 @@ single-threaded application without blocking the user interface. Mandelbrot::Mandelbrot( TQObject *parent=0, const char *name ) : TQObject( parent, name ) { - connect( &timer, SIGNAL(timeout()), SLOT(calculate()) ); + connect( &timer, TQ_SIGNAL(timeout()), TQ_SLOT(calculate()) ); ... } diff --git a/doc/signalsandslots.doc b/doc/signalsandslots.doc index d3c5c7c2..f3fc2425 100644 --- a/doc/signalsandslots.doc +++ b/doc/signalsandslots.doc @@ -173,7 +173,7 @@ Here is one way to connect two of these objects together: \code Foo a, b; - connect(&a, SIGNAL(valueChanged(int)), &b, SLOT(setValue(int))); + connect(&a, TQ_SIGNAL(valueChanged(int)), &b, TQ_SLOT(setValue(int))); b.setValue( 11 ); // a == undefined b == 11 a.setValue( 79 ); // a == 79 b == 79 b.value(); // returns 79 diff --git a/doc/sql.doc b/doc/sql.doc index d39d4829..9754cf17 100644 --- a/doc/sql.doc +++ b/doc/sql.doc @@ -893,8 +893,8 @@ can easily be linked together with a \l QDataTable to display a detailed view of a record: \code - connect( myDataTable, SIGNAL( currentChanged( QSqlRecord* ) ), - myDataView, SLOT( refresh( QSqlRecord* ) ) ); + connect( myDataTable, TQ_SIGNAL( currentChanged( QSqlRecord* ) ), + myDataView, TQ_SLOT( refresh( QSqlRecord* ) ) ); \endcode \target Editing_a_Record diff --git a/doc/tutorial2.doc b/doc/tutorial2.doc index c8ab9855..efe2b1d8 100644 --- a/doc/tutorial2.doc +++ b/doc/tutorial2.doc @@ -628,7 +628,7 @@ We hold the list of recently opened files in a string list. \quotefile chart/chartform.cpp \skipto ::updateRecentFilesMenu() -\printuntil SLOT +\printuntil TQ_SLOT \printline \printline \printline -- cgit v1.2.3