summaryrefslogtreecommitdiffstats
path: root/korganizer/kodialogmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/kodialogmanager.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/kodialogmanager.cpp')
-rw-r--r--korganizer/kodialogmanager.cpp106
1 files changed, 53 insertions, 53 deletions
diff --git a/korganizer/kodialogmanager.cpp b/korganizer/kodialogmanager.cpp
index 908b7491..e17f0340 100644
--- a/korganizer/kodialogmanager.cpp
+++ b/korganizer/kodialogmanager.cpp
@@ -82,7 +82,7 @@ class KODialogManager::EditorDialogVisitor :
KODialogManager::KODialogManager( CalendarView *mainView ) :
- QObject(), mMainView( mainView )
+ TQObject(), mMainView( mainView )
{
mOptionsDialog = 0;
mSearchDialog = 0;
@@ -93,8 +93,8 @@ KODialogManager::KODialogManager( CalendarView *mainView ) :
// don't set any specific parent for the dialog, as its kept around and reused
// in different cases where it should have different parents
KWin::setMainWindow( mCategoryEditDialog, 0 );
- connect( mainView, SIGNAL( categoriesChanged() ),
- mCategoryEditDialog, SLOT( reload() ) );
+ connect( mainView, TQT_SIGNAL( categoriesChanged() ),
+ mCategoryEditDialog, TQT_SLOT( reload() ) );
KOGlobals::fitDialogToScreen( mCategoryEditDialog );
}
@@ -108,7 +108,7 @@ KODialogManager::~KODialogManager()
delete mFilterEditDialog;
}
-void KODialogManager::errorSaveIncidence( QWidget *parent, Incidence *incidence )
+void KODialogManager::errorSaveIncidence( TQWidget *parent, Incidence *incidence )
{
KMessageBox::sorry( parent, i18n("Unable to save %1 \"%2\".")
.arg( i18n( incidence->type() ) )
@@ -123,23 +123,23 @@ void KODialogManager::showOptionsDialog()
// mOptionsDialog = new KConfigureDialog( KConfigureDialog::Configurable );
// mOptionsDialog = new KConfigureDialog( mMainView );
connect( mOptionsDialog->dialog(),
- SIGNAL( configCommitted( const QCString & ) ),
- mMainView, SLOT( updateConfig() ) );
+ TQT_SIGNAL( configCommitted( const TQCString & ) ),
+ mMainView, TQT_SLOT( updateConfig() ) );
#else
mOptionsDialog = new KCMultiDialog( mMainView, "KorganizerPreferences" );
- connect( mOptionsDialog, SIGNAL( configCommitted( const QCString & ) ),
- mMainView, SLOT( updateConfig( const QCString& ) ) );
+ connect( mOptionsDialog, TQT_SIGNAL( configCommitted( const TQCString & ) ),
+ mMainView, TQT_SLOT( updateConfig( const TQCString& ) ) );
#if 0
- connect( mOptionsDialog, SIGNAL( applyClicked() ),
- mMainView, SLOT( updateConfig() ) );
- connect( mOptionsDialog, SIGNAL( okClicked() ),
- mMainView, SLOT( updateConfig() ) );
+ connect( mOptionsDialog, TQT_SIGNAL( applyClicked() ),
+ mMainView, TQT_SLOT( updateConfig() ) );
+ connect( mOptionsDialog, TQT_SIGNAL( okClicked() ),
+ mMainView, TQT_SLOT( updateConfig() ) );
// @TODO Find a way to do this with KCMultiDialog
- connect(mCategoryEditDialog,SIGNAL(categoryConfigChanged()),
- mOptionsDialog,SLOT(updateCategories()));
+ connect(mCategoryEditDialog,TQT_SIGNAL(categoryConfigChanged()),
+ mOptionsDialog,TQT_SLOT(updateCategories()));
#endif
- QStringList modules;
+ TQStringList modules;
modules.append( "korganizer_configmain.desktop" );
modules.append( "korganizer_configtime.desktop" );
@@ -153,7 +153,7 @@ void KODialogManager::showOptionsDialog()
modules.append( "korganizer_configdesignerfields.desktop" );
// add them all
- QStringList::iterator mit;
+ TQStringList::iterator mit;
for ( mit = modules.begin(); mit != modules.end(); ++mit )
mOptionsDialog->addModule( *mit );
#endif
@@ -172,13 +172,13 @@ void KODialogManager::showSearchDialog()
{
if (!mSearchDialog) {
mSearchDialog = new SearchDialog(mMainView->calendar(),mMainView);
- connect(mSearchDialog,SIGNAL(showIncidenceSignal(Incidence *)),
- mMainView,SLOT(showIncidence(Incidence *)));
- connect(mSearchDialog,SIGNAL(editIncidenceSignal(Incidence *)),
- mMainView,SLOT(editIncidence(Incidence *)));
- connect(mSearchDialog,SIGNAL(deleteIncidenceSignal(Incidence *)),
- mMainView, SLOT(deleteIncidence(Incidence *)));
- connect(mMainView,SIGNAL(closingDown()),mSearchDialog,SLOT(reject()));
+ connect(mSearchDialog,TQT_SIGNAL(showIncidenceSignal(Incidence *)),
+ mMainView,TQT_SLOT(showIncidence(Incidence *)));
+ connect(mSearchDialog,TQT_SIGNAL(editIncidenceSignal(Incidence *)),
+ mMainView,TQT_SLOT(editIncidence(Incidence *)));
+ connect(mSearchDialog,TQT_SIGNAL(deleteIncidenceSignal(Incidence *)),
+ mMainView, TQT_SLOT(deleteIncidence(Incidence *)));
+ connect(mMainView,TQT_SIGNAL(closingDown()),mSearchDialog,TQT_SLOT(reject()));
}
// make sure the widget is on top again
mSearchDialog->show();
@@ -190,29 +190,29 @@ void KODialogManager::showArchiveDialog()
#ifndef KORG_NOARCHIVE
if (!mArchiveDialog) {
mArchiveDialog = new ArchiveDialog(mMainView->calendar(),mMainView);
- connect(mArchiveDialog,SIGNAL(eventsDeleted()),
- mMainView,SLOT(updateView()));
- connect(mArchiveDialog,SIGNAL(autoArchivingSettingsModified()),
- mMainView,SLOT(slotAutoArchivingSettingsModified()));
+ connect(mArchiveDialog,TQT_SIGNAL(eventsDeleted()),
+ mMainView,TQT_SLOT(updateView()));
+ connect(mArchiveDialog,TQT_SIGNAL(autoArchivingSettingsModified()),
+ mMainView,TQT_SLOT(slotAutoArchivingSettingsModified()));
}
mArchiveDialog->show();
mArchiveDialog->raise();
// Workaround.
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
#endif
}
-void KODialogManager::showFilterEditDialog( QPtrList<CalFilter> *filters )
+void KODialogManager::showFilterEditDialog( TQPtrList<CalFilter> *filters )
{
if ( !mFilterEditDialog ) {
mFilterEditDialog = new FilterEditDialog( filters, mMainView );
- connect( mFilterEditDialog, SIGNAL( filterChanged() ),
- mMainView, SLOT( updateFilter() ) );
- connect( mFilterEditDialog, SIGNAL( editCategories() ),
- mCategoryEditDialog, SLOT( show() ) );
- connect( mCategoryEditDialog, SIGNAL( categoryConfigChanged() ),
- mFilterEditDialog, SLOT( updateCategoryConfig() ) );
+ connect( mFilterEditDialog, TQT_SIGNAL( filterChanged() ),
+ mMainView, TQT_SLOT( updateFilter() ) );
+ connect( mFilterEditDialog, TQT_SIGNAL( editCategories() ),
+ mCategoryEditDialog, TQT_SLOT( show() ) );
+ connect( mCategoryEditDialog, TQT_SIGNAL( categoryConfigChanged() ),
+ mFilterEditDialog, TQT_SLOT( updateCategoryConfig() ) );
}
mFilterEditDialog->show();
mFilterEditDialog->raise();
@@ -241,29 +241,29 @@ void KODialogManager::connectTypeAhead( KOEventEditor *editor,
{
if ( editor && agenda ) {
agenda->setTypeAheadReceiver( editor->typeAheadReceiver() );
- connect( editor, SIGNAL( focusReceivedSignal() ),
- agenda, SLOT( finishTypeAhead() ) );
+ connect( editor, TQT_SIGNAL( focusReceivedSignal() ),
+ agenda, TQT_SLOT( finishTypeAhead() ) );
}
}
void KODialogManager::connectEditor( KOIncidenceEditor*editor )
{
- connect( editor, SIGNAL( deleteIncidenceSignal( Incidence * ) ),
- mMainView, SLOT( deleteIncidence( Incidence * ) ) );
-
- connect( mCategoryEditDialog, SIGNAL( categoryConfigChanged() ),
- editor, SIGNAL( updateCategoryConfig() ) );
- connect( editor, SIGNAL( editCategories() ),
- mCategoryEditDialog, SLOT( show() ) );
-
- connect( editor, SIGNAL( dialogClose( Incidence * ) ),
- mMainView, SLOT( dialogClosing( Incidence * ) ) );
- connect( editor, SIGNAL( editCanceled( Incidence * ) ),
- mMainView, SLOT( editCanceled( Incidence * ) ) );
- connect( mMainView, SIGNAL( closingDown() ), editor, SLOT( reject() ) );
-
- connect( editor, SIGNAL( deleteAttendee( Incidence * ) ),
- mMainView, SIGNAL( cancelAttendees( Incidence * ) ) );
+ connect( editor, TQT_SIGNAL( deleteIncidenceSignal( Incidence * ) ),
+ mMainView, TQT_SLOT( deleteIncidence( Incidence * ) ) );
+
+ connect( mCategoryEditDialog, TQT_SIGNAL( categoryConfigChanged() ),
+ editor, TQT_SIGNAL( updateCategoryConfig() ) );
+ connect( editor, TQT_SIGNAL( editCategories() ),
+ mCategoryEditDialog, TQT_SLOT( show() ) );
+
+ connect( editor, TQT_SIGNAL( dialogClose( Incidence * ) ),
+ mMainView, TQT_SLOT( dialogClosing( Incidence * ) ) );
+ connect( editor, TQT_SIGNAL( editCanceled( Incidence * ) ),
+ mMainView, TQT_SLOT( editCanceled( Incidence * ) ) );
+ connect( mMainView, TQT_SIGNAL( closingDown() ), editor, TQT_SLOT( reject() ) );
+
+ connect( editor, TQT_SIGNAL( deleteAttendee( Incidence * ) ),
+ mMainView, TQT_SIGNAL( cancelAttendees( Incidence * ) ) );
}
KOTodoEditor *KODialogManager::getTodoEditor()