diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-07 19:47:33 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-07 19:47:33 +0900 |
commit | 183355477fb2d6bd6429da51d7abd74f7950f207 (patch) | |
tree | 0562dc18c6dc80cc128cdbea07c067f14f27b7bf /src/komposetaskwidget.cpp | |
parent | 3f0b743b945d7f09d6bf935c447f4917ce791c27 (diff) | |
download | kompose-183355477fb2d6bd6429da51d7abd74f7950f207.tar.gz kompose-183355477fb2d6bd6429da51d7abd74f7950f207.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/komposetaskwidget.cpp')
-rw-r--r-- | src/komposetaskwidget.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/komposetaskwidget.cpp b/src/komposetaskwidget.cpp index d8f92f4..1dd2557 100644 --- a/src/komposetaskwidget.cpp +++ b/src/komposetaskwidget.cpp @@ -70,15 +70,15 @@ KomposeTaskWidget::KomposeTaskWidget(KomposeTask *t, TQWidget *parent, KomposeLa prefWidget->hide(); setActionIcons(); - //connect( t, SIGNAL( destroyed() ), this, SLOT( slotTaskDestroyed() ) ); - connect( t, SIGNAL( closed() ), this, SLOT( slotTaskDestroyed() ) ); - connect( t, SIGNAL( stateChanged() ), this, SLOT( drawWidgetAndRepaint() ) ); - connect( t, SIGNAL( stateChanged() ), this, SLOT( reInitMenu() ) ); + //connect( t, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotTaskDestroyed() ) ); + connect( t, TQ_SIGNAL( closed() ), this, TQ_SLOT( slotTaskDestroyed() ) ); + connect( t, TQ_SIGNAL( stateChanged() ), this, TQ_SLOT( drawWidgetAndRepaint() ) ); + connect( t, TQ_SIGNAL( stateChanged() ), this, TQ_SLOT( reInitMenu() ) ); #ifdef COMPOSITE if ( KomposeGlobal::instance()->hasXcomposite() && KomposeSettings::instance()->getUseComposite() ) { - connect( t, SIGNAL( x11DamageNotify() ), this, SLOT( drawWidgetAndRepaint() ) ); + connect( t, TQ_SIGNAL( x11DamageNotify() ), this, TQ_SLOT( drawWidgetAndRepaint() ) ); } #endif //setFocusPolicy(TQWidget::ClickFocus); @@ -111,8 +111,8 @@ void KomposeTaskWidget::initFonts() void KomposeTaskWidget::slotTaskDestroyed() { - disconnect( task, SIGNAL( closed() ), this, SLOT( slotTaskDestroyed() ) ); - disconnect( task, SIGNAL( stateChanged() ), this, SLOT( drawWidgetAndRepaint() ) ); + disconnect( task, TQ_SIGNAL( closed() ), this, TQ_SLOT( slotTaskDestroyed() ) ); + disconnect( task, TQ_SIGNAL( stateChanged() ), this, TQ_SLOT( drawWidgetAndRepaint() ) ); //if (KomposeViewManager::instance()->hasActiveView()) emit requestRemoval(this); @@ -355,10 +355,10 @@ void KomposeTaskWidget::initActions() taskActionCollection = new TDEActionCollection( this ); actCloseTask = new TDEAction( i18n("Close"), "window-close", Key_Delete , task, - SLOT( close() ), taskActionCollection, "closeTask" ); + TQ_SLOT( close() ), taskActionCollection, "closeTask" ); actCloseTask->setToolTip(i18n("Close")); actMinimizeRestoreTask = new TDEAction( i18n("Minimize/Restore"), "", TDEShortcut() , this, - SLOT( slotMinimizeRestoreToggled() ), taskActionCollection, "minimizeRestoreTask" ); + TQ_SLOT( slotMinimizeRestoreToggled() ), taskActionCollection, "minimizeRestoreTask" ); } void KomposeTaskWidget::initMenu() @@ -371,7 +371,7 @@ void KomposeTaskWidget::initMenu() TQPopupMenu* m = new TQPopupMenu( this ); m->setCheckable( true ); - int id = m->insertItem( i18n("&All Desktops"), task, SLOT( toDesktop(int) ) ); + int id = m->insertItem( i18n("&All Desktops"), task, TQ_SLOT( toDesktop(int) ) ); m->setItemParameter( id, 0 ); // 0 means all desktops m->setItemChecked( id, task->isOnAllDesktops() ); @@ -380,7 +380,7 @@ void KomposeTaskWidget::initMenu() for( int i = 1; i <= KomposeTaskManager::instance()->getNumDesktops(); i++ ) { TQString name = TQString( "&%1 %2" ).arg( i ).arg( KomposeTaskManager::instance()->getDesktopName( i ).replace( '&', "&&" ) ); - id = m->insertItem( name, task, SLOT( toDesktop(int) ) ); + id = m->insertItem( name, task, TQ_SLOT( toDesktop(int) ) ); m->setItemParameter( id, i ); m->setItemChecked( id, !task->isOnAllDesktops() && task->onDesktop() == i ); } |