summaryrefslogtreecommitdiffstats
path: root/src/komposetaskwidget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-07 19:47:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-09 10:54:51 +0900
commit43e0ea16d738b24b6c9078bc126735753c2b5393 (patch)
tree31598f2adb646629549aae33c495e4328f903e8a /src/komposetaskwidget.cpp
parentcb45523131a2a7c0770bf2698f441aa601a9ed91 (diff)
downloadkompose-43e0ea16d738b24b6c9078bc126735753c2b5393.tar.gz
kompose-43e0ea16d738b24b6c9078bc126735753c2b5393.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 183355477fb2d6bd6429da51d7abd74f7950f207)
Diffstat (limited to 'src/komposetaskwidget.cpp')
-rw-r--r--src/komposetaskwidget.cpp22
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 );
}