summaryrefslogtreecommitdiffstats
path: root/examples/helpviewer
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
commitfb401a891f1b426e9419c0cb16403df407138611 (patch)
tree045b51949b3140039e37d898d8b0513016a86bea /examples/helpviewer
parenta9d178f1000475ba1727ffe123a2c54585488c01 (diff)
downloadtqt3-fb401a891f1b426e9419c0cb16403df407138611.tar.gz
tqt3-fb401a891f1b426e9419c0cb16403df407138611.zip
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/helpviewer')
-rw-r--r--examples/helpviewer/helpwindow.cpp60
-rw-r--r--examples/helpviewer/main.cpp4
2 files changed, 32 insertions, 32 deletions
diff --git a/examples/helpviewer/helpwindow.cpp b/examples/helpviewer/helpwindow.cpp
index 7bdbad8af..140a9333f 100644
--- a/examples/helpviewer/helpwindow.cpp
+++ b/examples/helpviewer/helpwindow.cpp
@@ -47,26 +47,26 @@ HelpWindow::HelpWindow( const TQString& home_, const TQString& _path,
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") );
@@ -75,33 +75,33 @@ HelpWindow::HelpWindow( const TQString& home_, const TQString& _path,
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 );
@@ -112,29 +112,29 @@ HelpWindow::HelpWindow( const TQString& home_, const TQString& _path,
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 );
diff --git a/examples/helpviewer/main.cpp b/examples/helpviewer/main.cpp
index d09840c2b..7a8738524 100644
--- a/examples/helpviewer/main.cpp
+++ b/examples/helpviewer/main.cpp
@@ -34,8 +34,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();
}