summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoDocument.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-04 10:30:32 +0900
committerMichele Calgaro <[email protected]>2024-01-04 12:36:03 +0900
commitc0332621bc998c9786f4841e86a62b7711fe4abf (patch)
tree38b3ab6688de7a9396a1c5993a8ec265f5f33b64 /lib/kofficecore/KoDocument.cpp
parent6c81ff8d61ec679e735d3fbd875583b12f0ef0a5 (diff)
downloadkoffice-c0332621bc998c9786f4841e86a62b7711fe4abf.tar.gz
koffice-c0332621bc998c9786f4841e86a62b7711fe4abf.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'lib/kofficecore/KoDocument.cpp')
-rw-r--r--lib/kofficecore/KoDocument.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/kofficecore/KoDocument.cpp b/lib/kofficecore/KoDocument.cpp
index 6a6331de..85397acc 100644
--- a/lib/kofficecore/KoDocument.cpp
+++ b/lib/kofficecore/KoDocument.cpp
@@ -231,7 +231,7 @@ KoDocument::KoDocument( TQWidget * parentWidget, const char *widgetName, TQObjec
d = new Private;
m_bEmpty = TRUE;
- connect( &d->m_autoSaveTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotAutoSave() ) );
+ connect( &d->m_autoSaveTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotAutoSave() ) );
setAutoSave( s_defaultAutoSave );
d->m_bSingleViewMode = singleViewMode;
@@ -264,7 +264,7 @@ KoDocument::KoDocument( TQWidget * parentWidget, const char *widgetName, TQObjec
// A way to 'fix' the job's window, since we have no widget known to KParts
if ( !singleViewMode )
- connect( this, TQT_SIGNAL( started( TDEIO::Job* ) ), TQT_SLOT( slotStarted( TDEIO::Job* ) ) );
+ connect( this, TQ_SIGNAL( started( TDEIO::Job* ) ), TQ_SLOT( slotStarted( TDEIO::Job* ) ) );
}
KoDocument::~KoDocument()
@@ -277,8 +277,8 @@ KoDocument::~KoDocument()
TQPtrListIterator<KoDocumentChild> childIt( d->m_children );
for (; childIt.current(); ++childIt )
- disconnect( childIt.current(), TQT_SIGNAL( destroyed() ),
- this, TQT_SLOT( slotChildDestroyed() ) );
+ disconnect( childIt.current(), TQ_SIGNAL( destroyed() ),
+ this, TQ_SLOT( slotChildDestroyed() ) );
// Tell our views that the document is already destroyed and
// that they shouldn't try to access it.
@@ -544,7 +544,7 @@ void KoDocument::slotAutoSave()
{
if ( isModified() && d->modifiedAfterAutosave && !d->m_bLoading )
{
- connect( this, TQT_SIGNAL( sigProgress( int ) ), shells().current(), TQT_SLOT( slotProgress( int ) ) );
+ connect( this, TQ_SIGNAL( sigProgress( int ) ), shells().current(), TQ_SLOT( slotProgress( int ) ) );
emit sigStatusBarMessage( i18n("Autosaving...") );
d->m_autosaving = true;
bool ret = saveNativeFormat( autoSaveFile( m_file ) );
@@ -555,7 +555,7 @@ void KoDocument::slotAutoSave()
}
d->m_autosaving = false;
emit sigClearStatusBarMessage();
- disconnect( this, TQT_SIGNAL( sigProgress( int ) ), shells().current(), TQT_SLOT( slotProgress( int ) ) );
+ disconnect( this, TQ_SIGNAL( sigProgress( int ) ), shells().current(), TQ_SLOT( slotProgress( int ) ) );
if ( !ret )
emit sigStatusBarMessage( i18n("Error during autosave! Partition full?") );
}
@@ -657,10 +657,10 @@ void KoDocument::insertChild( KoDocumentChild *child )
d->m_children.append( child );
- connect( child, TQT_SIGNAL( changed( KoChild * ) ),
- this, TQT_SLOT( slotChildChanged( KoChild * ) ) );
- connect( child, TQT_SIGNAL( destroyed() ),
- this, TQT_SLOT( slotChildDestroyed() ) );
+ connect( child, TQ_SIGNAL( changed( KoChild * ) ),
+ this, TQ_SLOT( slotChildChanged( KoChild * ) ) );
+ connect( child, TQ_SIGNAL( destroyed() ),
+ this, TQ_SLOT( slotChildDestroyed() ) );
// It may be that insertChild is called without the KoDocumentChild
// having a KoDocument attached, yet. This happens for example
@@ -2576,7 +2576,7 @@ void KoDocument::openExistingFile( const TQString& file )
setModified( false );
if( ok )
- TQTimer::singleShot( 0, this, TQT_SLOT( deleteOpenPane() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( deleteOpenPane() ) );
}
void KoDocument::openTemplate( const TQString& file )
@@ -2611,14 +2611,14 @@ KoOpenPane* KoDocument::createOpenPane( TQWidget* parent, TDEInstance* instance,
TQWidget *customDoc = createCustomDocumentWidget(openPane);
if(customDoc) {
openPane->setCustomDocumentWidget( customDoc );
- connect( customDoc, TQT_SIGNAL( documentSelected() ), this, TQT_SLOT( startCustomDocument() ) );
+ connect( customDoc, TQ_SIGNAL( documentSelected() ), this, TQ_SLOT( startCustomDocument() ) );
}
openPane->show();
- connect( openPane, TQT_SIGNAL( openExistingFile( const TQString& ) ),
- this, TQT_SLOT( openExistingFile( const TQString& ) ) );
- connect( openPane, TQT_SIGNAL( openTemplate( const TQString& ) ),
- this, TQT_SLOT( openTemplate( const TQString& ) ) );
+ connect( openPane, TQ_SIGNAL( openExistingFile( const TQString& ) ),
+ this, TQ_SLOT( openExistingFile( const TQString& ) ) );
+ connect( openPane, TQ_SIGNAL( openTemplate( const TQString& ) ),
+ this, TQ_SLOT( openTemplate( const TQString& ) ) );
return openPane;
}
@@ -2637,7 +2637,7 @@ void KoDocument::deleteOpenPane()
{
if( d->m_startUpWidget ) {
d->m_startUpWidget->hide();
- TQTimer::singleShot(1000, this, TQT_SLOT(deleteOpenPaneDelayed()));
+ TQTimer::singleShot(1000, this, TQ_SLOT(deleteOpenPaneDelayed()));
shells().getFirst()->factory()->container("mainToolBar", shells().getFirst())->show();
shells().getFirst()->setRootDocument( this );
@@ -2663,7 +2663,7 @@ bool KoDocument::showEmbedInitDialog(TQWidget* parent)
pane->layout()->setMargin(0);
dlg.setMainWidget(pane);
dlg.setInitialSize(dlg.configDialogSize("EmbedInitDialog"));
- connect(this, TQT_SIGNAL(closeEmbedInitDialog()), &dlg, TQT_SLOT(slotOk()));
+ connect(this, TQ_SIGNAL(closeEmbedInitDialog()), &dlg, TQ_SLOT(slotOk()));
bool ok = dlg.exec() == TQDialog::Accepted;