diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
commit | fb401a891f1b426e9419c0cb16403df407138611 (patch) | |
tree | 045b51949b3140039e37d898d8b0513016a86bea /src/widgets/qmainwindow.cpp | |
parent | a9d178f1000475ba1727ffe123a2c54585488c01 (diff) | |
download | tqt3-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 'src/widgets/qmainwindow.cpp')
-rw-r--r-- | src/widgets/qmainwindow.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/widgets/qmainwindow.cpp b/src/widgets/qmainwindow.cpp index f196a1d36..ab9beba9e 100644 --- a/src/widgets/qmainwindow.cpp +++ b/src/widgets/qmainwindow.cpp @@ -995,10 +995,10 @@ void TQMainWindow::setStatusBar( TQStatusBar * newStatusBar ) d->sb = newStatusBar; #ifndef TQT_NO_TOOLTIP // ### this code can cause unnecessary creation of a tool tip group - connect( toolTipGroup(), SIGNAL(showTip(const TQString&)), - d->sb, SLOT(message(const TQString&)) ); - connect( toolTipGroup(), SIGNAL(removeTip()), - d->sb, SLOT(clear()) ); + connect( toolTipGroup(), TQ_SIGNAL(showTip(const TQString&)), + d->sb, TQ_SLOT(message(const TQString&)) ); + connect( toolTipGroup(), TQ_SIGNAL(removeTip()), + d->sb, TQ_SLOT(clear()) ); #endif d->sb->installEventFilter( this ); triggerLayout(); @@ -1054,10 +1054,10 @@ void TQMainWindow::setToolTipGroup( TQToolTipGroup * newToolTipGroup ) delete d->ttg; d->ttg = newToolTipGroup; - connect( toolTipGroup(), SIGNAL(showTip(const TQString&)), - statusBar(), SLOT(message(const TQString&)) ); - connect( toolTipGroup(), SIGNAL(removeTip()), - statusBar(), SLOT(clear()) ); + connect( toolTipGroup(), TQ_SIGNAL(showTip(const TQString&)), + statusBar(), TQ_SLOT(message(const TQString&)) ); + connect( toolTipGroup(), TQ_SIGNAL(removeTip()), + statusBar(), TQ_SLOT(clear()) ); } @@ -1148,8 +1148,8 @@ void TQMainWindow::setDockEnabled( TQDockWindow *dw, Dock dock, bool enable ) { if ( d->dockWindows.find( dw ) == -1 ) { d->dockWindows.append( dw ); - connect( dw, SIGNAL( placeChanged(TQDockWindow::Place) ), - this, SLOT( slotPlaceChanged() ) ); + connect( dw, TQ_SIGNAL( placeChanged(TQDockWindow::Place) ), + this, TQ_SLOT( slotPlaceChanged() ) ); } TQString s; s.sprintf( "%p_%d", (void*)dw, (int)dock ); @@ -1247,8 +1247,8 @@ void TQMainWindow::addDockWindow( TQDockWindow *dockWindow, dockWindow->setNewLine( newLine ); if ( d->dockWindows.find( dockWindow ) == -1 ) { d->dockWindows.append( dockWindow ); - connect( dockWindow, SIGNAL( placeChanged(TQDockWindow::Place) ), - this, SLOT( slotPlaceChanged() ) ); + connect( dockWindow, TQ_SIGNAL( placeChanged(TQDockWindow::Place) ), + this, TQ_SLOT( slotPlaceChanged() ) ); dockWindow->installEventFilter( this ); } dockWindow->setOpaqueMoving( d->opaque ); @@ -1414,8 +1414,8 @@ void TQMainWindow::removeDockWindow( TQDockWindow * dockWindow ) dockWindow->hide(); d->dockWindows.removeRef( dockWindow ); - disconnect( dockWindow, SIGNAL( placeChanged(TQDockWindow::Place) ), - this, SLOT( slotPlaceChanged() ) ); + disconnect( dockWindow, TQ_SIGNAL( placeChanged(TQDockWindow::Place) ), + this, TQ_SLOT( slotPlaceChanged() ) ); dockWindow->removeEventFilter( this ); } @@ -1844,7 +1844,7 @@ void TQMainWindow::triggerLayout( bool deleteLayout ) \code 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); \endcode \sa TQWhatsThis::enterWhatsThisMode() @@ -2164,7 +2164,7 @@ TQPopupMenu *TQMainWindow::createDockWindowMenu( DockWindows dockWindows ) const TQPopupMenu *menu = new TQPopupMenu( (TQMainWindow*)this, "qt_customize_menu" ); menu->setCheckable( TRUE ); d->dockWindowModes.replace( menu, dockWindows ); - connect( menu, SIGNAL( aboutToShow() ), this, SLOT( menuAboutToShow() ) ); + connect( menu, TQ_SIGNAL( aboutToShow() ), this, TQ_SLOT( menuAboutToShow() ) ); return menu; } @@ -2203,7 +2203,7 @@ void TQMainWindow::menuAboutToShow() continue; TQString label = dw->caption(); if ( !label.isEmpty() ) { - int id = menu->insertItem( label, dw, SLOT( toggleVisible() ) ); + int id = menu->insertItem( label, dw, TQ_SLOT( toggleVisible() ) ); menu->setItemChecked( id, dw->isVisible() ); empty = FALSE; } @@ -2222,7 +2222,7 @@ void TQMainWindow::menuAboutToShow() continue; TQString label = tb->label(); if ( !label.isEmpty() ) { - int id = menu->insertItem( label, tb, SLOT( toggleVisible() ) ); + int id = menu->insertItem( label, tb, TQ_SLOT( toggleVisible() ) ); menu->setItemChecked( id, tb->isVisible() ); empty = FALSE; } @@ -2238,9 +2238,9 @@ void TQMainWindow::menuAboutToShow() menu->insertSeparator(); if ( dockWindowsMovable() ) - menu->insertItem( tr( "Line up" ), this, SLOT( doLineUp() ) ); + menu->insertItem( tr( "Line up" ), this, TQ_SLOT( doLineUp() ) ); if ( isCustomizable() ) - menu->insertItem( tr( "Customize..." ), this, SLOT( customize() ) ); + menu->insertItem( tr( "Customize..." ), this, TQ_SLOT( customize() ) ); } /*! |