summaryrefslogtreecommitdiffstats
path: root/korganizer
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-21 11:50:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-21 18:43:57 +0900
commit762dc98fa6b143629c75b3bbe277228fb04e8324 (patch)
treedb3a5fb61d0c372eac307dcc69b1fccb413dbad2 /korganizer
parent6ab7f162f49900770424dba529cba4a8a8a4a242 (diff)
downloadtdepim-762dc98fa6b143629c75b3bbe277228fb04e8324.tar.gz
tdepim-762dc98fa6b143629c75b3bbe277228fb04e8324.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'korganizer')
-rw-r--r--korganizer/actionmanager.cpp140
-rw-r--r--korganizer/calendarview.cpp6
-rw-r--r--korganizer/interfaces/korganizer/part.h2
-rw-r--r--korganizer/koagenda.cpp2
-rw-r--r--korganizer/koeditorattachments.cpp16
-rw-r--r--korganizer/koeditorgeneral.cpp2
-rw-r--r--korganizer/koeditorgeneraljournal.cpp2
-rw-r--r--korganizer/koeventeditor.cpp2
-rw-r--r--korganizer/korganizer.cpp8
-rw-r--r--korganizer/kotodoeditor.cpp2
10 files changed, 91 insertions, 91 deletions
diff --git a/korganizer/actionmanager.cpp b/korganizer/actionmanager.cpp
index 128ebd687..a47c25efd 100644
--- a/korganizer/actionmanager.cpp
+++ b/korganizer/actionmanager.cpp
@@ -127,7 +127,7 @@ void ActionManager::init()
mWindowList = new KOWindowList;
// Show tip of the day, when the first calendar is shown.
if ( !mIsPart )
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( showTipOnStart() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( showTipOnStart() ) );
}
// Note: We need this ActionManager to be fully constructed, and
// parent() to have a valid reference to it before the following
@@ -156,9 +156,9 @@ void ActionManager::init()
connect( mCalendarView, TQT_SIGNAL( configChanged() ), TQT_SLOT( updateConfig() ) );
connect( mCalendarView, TQT_SIGNAL( incidenceSelected( Incidence *,const TQDate & ) ),
- TQT_TQOBJECT(this), TQT_SLOT( processIncidenceSelection( Incidence *,const TQDate & ) ) );
+ this, TQT_SLOT( processIncidenceSelection( Incidence *,const TQDate & ) ) );
connect( mCalendarView, TQT_SIGNAL( exportHTML( HTMLExportSettings * ) ),
- TQT_TQOBJECT(this), TQT_SLOT( exportHTML( HTMLExportSettings * ) ) );
+ this, TQT_SLOT( exportHTML( HTMLExportSettings * ) ) );
processIncidenceSelection( 0, TQDate() );
@@ -227,58 +227,58 @@ void ActionManager::initActions()
//~~~~~~~~~~~~~~~~~~~~~~~ LOADING / SAVING ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if ( mIsPart ) {
if ( mMainWindow->hasDocument() ) {
- KStdAction::openNew( TQT_TQOBJECT(this), TQT_SLOT(file_new()), mACollection, "korganizer_openNew" );
- KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT( file_open() ), mACollection, "korganizer_open" );
- mRecent = KStdAction::openRecent( TQT_TQOBJECT(this), TQT_SLOT( file_open( const KURL& ) ),
+ KStdAction::openNew( this, TQT_SLOT(file_new()), mACollection, "korganizer_openNew" );
+ KStdAction::open( this, TQT_SLOT( file_open() ), mACollection, "korganizer_open" );
+ mRecent = KStdAction::openRecent( this, TQT_SLOT( file_open( const KURL& ) ),
mACollection, "korganizer_openRecent" );
KStdAction::revert( this,TQT_SLOT( file_revert() ), mACollection, "korganizer_revert" );
- KStdAction::saveAs( TQT_TQOBJECT(this), TQT_SLOT( file_saveas() ), mACollection,
+ KStdAction::saveAs( this, TQT_SLOT( file_saveas() ), mACollection,
"korganizer_saveAs" );
- KStdAction::save( TQT_TQOBJECT(this), TQT_SLOT( file_save() ), mACollection, "korganizer_save" );
+ KStdAction::save( this, TQT_SLOT( file_save() ), mACollection, "korganizer_save" );
}
- KStdAction::print( TQT_TQOBJECT(mCalendarView), TQT_SLOT( print() ), mACollection, "korganizer_print" );
+ KStdAction::print( mCalendarView, TQT_SLOT( print() ), mACollection, "korganizer_print" );
} else {
- KStdAction::openNew( TQT_TQOBJECT(this), TQT_SLOT( file_new() ), mACollection );
- KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT( file_open() ), mACollection );
- mRecent = KStdAction::openRecent( TQT_TQOBJECT(this), TQT_SLOT( file_open( const KURL& ) ),
+ KStdAction::openNew( this, TQT_SLOT( file_new() ), mACollection );
+ KStdAction::open( this, TQT_SLOT( file_open() ), mACollection );
+ mRecent = KStdAction::openRecent( this, TQT_SLOT( file_open( const KURL& ) ),
mACollection );
if ( mMainWindow->hasDocument() ) {
KStdAction::revert( this,TQT_SLOT( file_revert() ), mACollection );
- KStdAction::save( TQT_TQOBJECT(this), TQT_SLOT( file_save() ), mACollection );
- KStdAction::saveAs( TQT_TQOBJECT(this), TQT_SLOT( file_saveas() ), mACollection );
+ KStdAction::save( this, TQT_SLOT( file_save() ), mACollection );
+ KStdAction::saveAs( this, TQT_SLOT( file_saveas() ), mACollection );
}
- KStdAction::print( TQT_TQOBJECT(mCalendarView), TQT_SLOT( print() ), mACollection );
+ KStdAction::print( mCalendarView, TQT_SLOT( print() ), mACollection );
}
//~~~~~~~~~~~~~~~~~~~~~~~~ IMPORT / EXPORT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- new TDEAction( i18n("Import &Event/Calendar (ICS-/VCS-File)..."), 0, TQT_TQOBJECT(this), TQT_SLOT( file_merge() ),
+ new TDEAction( i18n("Import &Event/Calendar (ICS-/VCS-File)..."), 0, this, TQT_SLOT( file_merge() ),
mACollection, "import_icalendar" );
- new TDEAction( i18n("&Import From UNIX Ical tool (.calendar-File)"), 0, TQT_TQOBJECT(this), TQT_SLOT( file_icalimport() ),
+ new TDEAction( i18n("&Import From UNIX Ical tool (.calendar-File)"), 0, this, TQT_SLOT( file_icalimport() ),
mACollection, "import_ical" );
new TDEAction( i18n("Get &Hot New Stuff..."), 0, this,
TQT_SLOT( downloadNewStuff() ), mACollection,
"downloadnewstuff" );
new TDEAction( i18n("Export &Web Page..."), "webexport", 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( exportWeb() ),
+ mCalendarView, TQT_SLOT( exportWeb() ),
mACollection, "export_web" );
new TDEAction( i18n("&iCalendar..."), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( exportICalendar() ),
+ mCalendarView, TQT_SLOT( exportICalendar() ),
mACollection, "export_icalendar" );
new TDEAction( i18n("&vCalendar..."), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( exportVCalendar() ),
+ mCalendarView, TQT_SLOT( exportVCalendar() ),
mACollection, "export_vcalendar" );
- new TDEAction( i18n("Upload &Hot New Stuff..."), 0, TQT_TQOBJECT(this),
+ new TDEAction( i18n("Upload &Hot New Stuff..."), 0, this,
TQT_SLOT( uploadNewStuff() ), mACollection,
"uploadnewstuff" );
- new TDEAction( i18n("Archive O&ld Entries..."), 0, TQT_TQOBJECT(this), TQT_SLOT( file_archive() ),
+ new TDEAction( i18n("Archive O&ld Entries..."), 0, this, TQT_SLOT( file_archive() ),
mACollection, "file_archive" );
new TDEAction( i18n("delete completed to-dos", "Pur&ge Completed To-dos"), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( purgeCompleted() ), mACollection,
+ mCalendarView, TQT_SLOT( purgeCompleted() ), mACollection,
"purge_completed" );
@@ -289,28 +289,28 @@ void ActionManager::initActions()
KOrg::History *h = mCalendarView->history();
if ( mIsPart ) {
// edit menu
- mCutAction = KStdAction::cut( TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_cut() ),
+ mCutAction = KStdAction::cut( mCalendarView, TQT_SLOT( edit_cut() ),
mACollection, "korganizer_cut" );
- mCopyAction = KStdAction::copy( TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_copy() ),
+ mCopyAction = KStdAction::copy( mCalendarView, TQT_SLOT( edit_copy() ),
mACollection, "korganizer_copy" );
- pasteAction = KStdAction::paste( TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_paste() ),
+ pasteAction = KStdAction::paste( mCalendarView, TQT_SLOT( edit_paste() ),
mACollection, "korganizer_paste" );
mUndoAction = KStdAction::undo( h, TQT_SLOT( undo() ),
mACollection, "korganizer_undo" );
mRedoAction = KStdAction::redo( h, TQT_SLOT( redo() ),
mACollection, "korganizer_redo" );
} else {
- mCutAction = KStdAction::cut( TQT_TQOBJECT(mCalendarView),TQT_SLOT( edit_cut() ),
+ mCutAction = KStdAction::cut( mCalendarView,TQT_SLOT( edit_cut() ),
mACollection );
- mCopyAction = KStdAction::copy( TQT_TQOBJECT(mCalendarView),TQT_SLOT( edit_copy() ),
+ mCopyAction = KStdAction::copy( mCalendarView,TQT_SLOT( edit_copy() ),
mACollection );
- pasteAction = KStdAction::paste( TQT_TQOBJECT(mCalendarView),TQT_SLOT( edit_paste() ),
+ pasteAction = KStdAction::paste( mCalendarView,TQT_SLOT( edit_paste() ),
mACollection );
- mUndoAction = KStdAction::undo( TQT_TQOBJECT(h), TQT_SLOT( undo() ), mACollection );
- mRedoAction = KStdAction::redo( TQT_TQOBJECT(h), TQT_SLOT( redo() ), mACollection );
+ mUndoAction = KStdAction::undo( h, TQT_SLOT( undo() ), mACollection );
+ mRedoAction = KStdAction::redo( h, TQT_SLOT( redo() ), mACollection );
}
mDeleteAction = new TDEAction( i18n("&Delete"), "edit-delete", 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( appointment_delete() ),
+ mCalendarView, TQT_SLOT( appointment_delete() ),
mACollection, "edit_delete" );
if ( mIsPart ) {
KStdAction::find( mCalendarView->dialogManager(), TQT_SLOT( showSearchDialog() ),
@@ -381,7 +381,7 @@ void ActionManager::initActions()
//~~~~~~~~~~~~~~~~~~~~~~~~~~~ FILTERS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
new TDEAction( i18n("&Refresh"), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( updateView() ),
+ mCalendarView, TQT_SLOT( updateView() ),
mACollection, "update" );
// TODO:
// new TDEAction( i18n("Hide &Completed To-dos"), 0,
@@ -398,7 +398,7 @@ void ActionManager::initActions()
connect( mCalendarView, TQT_SIGNAL( selectFilterSignal( int ) ),
mFilterAction, TQT_SLOT( setCurrentItem( int ) ) );
connect( mCalendarView, TQT_SIGNAL( filterChanged() ),
- TQT_TQOBJECT(this), TQT_SLOT( setTitle() ) );
+ this, TQT_SLOT( setTitle() ) );
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ZOOM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -422,11 +422,11 @@ void ActionManager::initActions()
//************************** Actions MENU *********************************
new TDEAction( i18n("Go to &Today"), "today", 0,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT( goToday() ),
+ mCalendarView,TQT_SLOT( goToday() ),
mACollection, "go_today" );
bool isRTL = TQApplication::reverseLayout();
action = new TDEAction( i18n("Go &Backward"), isRTL ? "forward" : "back", 0,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT( goPrevious() ),
+ mCalendarView,TQT_SLOT( goPrevious() ),
mACollection, "go_previous" );
// Changing the action text by setText makes the toolbar button disappear.
@@ -435,10 +435,10 @@ void ActionManager::initActions()
connect( mCalendarView, TQT_SIGNAL( changeNavStringPrev( const TQString & ) ),
action, TQT_SLOT( setText( const TQString & ) ) );
connect( mCalendarView, TQT_SIGNAL( changeNavStringPrev( const TQString & ) ),
- TQT_TQOBJECT(this), TQT_SLOT( dumpText( const TQString & ) ) );*/
+ this, TQT_SLOT( dumpText( const TQString & ) ) );*/
action = new TDEAction( i18n("Go &Forward"), isRTL ? "back" : "forward", 0,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT( goNext() ),
+ mCalendarView,TQT_SLOT( goNext() ),
mACollection, "go_next" );
/*
connect( mCalendarView,TQT_SIGNAL( changeNavStringNext( const TQString & ) ),
@@ -449,35 +449,35 @@ void ActionManager::initActions()
//************************** Actions MENU *********************************
new TDEAction( i18n("New E&vent..."),
KOGlobals::self()->smallIcon( "newappointment" ), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT(newEvent()),
+ mCalendarView, TQT_SLOT(newEvent()),
mACollection, "new_event" );
new TDEAction( i18n("New &To-do..."),
KOGlobals::self()->smallIcon( "newtodo" ), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT(newTodo()),
+ mCalendarView, TQT_SLOT(newTodo()),
mACollection, "new_todo" );
action = new TDEAction( i18n("New Su&b-to-do..."), 0,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT( newSubTodo() ),
+ mCalendarView,TQT_SLOT( newSubTodo() ),
mACollection, "new_subtodo" );
action->setEnabled( false );
connect( mCalendarView,TQT_SIGNAL( todoSelected( bool ) ),
action,TQT_SLOT( setEnabled( bool ) ) );
new TDEAction( i18n("New &Journal..."),
KOGlobals::self()->smallIcon( "newjournal" ), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT(newJournal()),
+ mCalendarView, TQT_SLOT(newJournal()),
mACollection, "new_journal" );
mShowIncidenceAction = new TDEAction( i18n("&Show"), 0,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT( showIncidence() ),
+ mCalendarView,TQT_SLOT( showIncidence() ),
mACollection, "show_incidence" );
mEditIncidenceAction = new TDEAction( i18n("&Edit..."), 0,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT( editIncidence() ),
+ mCalendarView,TQT_SLOT( editIncidence() ),
mACollection, "edit_incidence" );
mDeleteIncidenceAction = new TDEAction( i18n("&Delete"), Key_Delete,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT( deleteIncidence()),
+ mCalendarView,TQT_SLOT( deleteIncidence()),
mACollection, "delete_incidence" );
action = new TDEAction( i18n("&Make Sub-to-do Independent"), 0,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT( todo_unsub() ),
+ mCalendarView,TQT_SLOT( todo_unsub() ),
mACollection, "unsub_todo" );
action->setEnabled( false );
connect( mCalendarView,TQT_SIGNAL( subtodoSelected( bool ) ),
@@ -496,27 +496,27 @@ void ActionManager::initActions()
//************************** SCHEDULE MENU ********************************
mPublishEvent = new TDEAction( i18n("&Publish Item Information..."), "mail-send", 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( schedule_publish() ),
+ mCalendarView, TQT_SLOT( schedule_publish() ),
mACollection, "schedule_publish" );
mPublishEvent->setEnabled( false );
mSendInvitation = new TDEAction( i18n( "Send &Invitation to Attendees" ),
"mail_generic", 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_request()),
+ mCalendarView, TQT_SLOT(schedule_request()),
mACollection, "schedule_request" );
mSendInvitation->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(organizerEventsSelected(bool)),
mSendInvitation, TQT_SLOT(setEnabled(bool)) );
mRequestUpdate = new TDEAction( i18n( "Re&quest Update" ), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_refresh()),
+ mCalendarView, TQT_SLOT(schedule_refresh()),
mACollection, "schedule_refresh" );
mRequestUpdate->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(groupEventsSelected(bool)),
mRequestUpdate, TQT_SLOT(setEnabled(bool)) );
mSendCancel = new TDEAction( i18n( "Send &Cancelation to Attendees" ), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_cancel()),
+ mCalendarView, TQT_SLOT(schedule_cancel()),
mACollection, "schedule_cancel" );
mSendCancel->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(organizerEventsSelected(bool)),
@@ -524,37 +524,37 @@ void ActionManager::initActions()
mSendStatusUpdate = new TDEAction( i18n( "Send Status &Update" ),
"mail-reply-sender", 0,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT(schedule_reply()),
+ mCalendarView,TQT_SLOT(schedule_reply()),
mACollection, "schedule_reply" );
mSendStatusUpdate->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(groupEventsSelected(bool)),
mSendStatusUpdate, TQT_SLOT(setEnabled(bool)) );
mRequestChange = new TDEAction( i18n( "counter proposal", "Request Chan&ge" ), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_counter()),
+ mCalendarView, TQT_SLOT(schedule_counter()),
mACollection, "schedule_counter" );
mRequestChange->setEnabled( false );
connect( mCalendarView, TQT_SIGNAL(groupEventsSelected(bool)),
mRequestChange, TQT_SLOT(setEnabled(bool)) );
mForwardEvent = new TDEAction( i18n("&Send as iCalendar..."), "mail-forward", 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT(schedule_forward()),
+ mCalendarView, TQT_SLOT(schedule_forward()),
mACollection, "schedule_forward" );
mForwardEvent->setEnabled( false );
action = new TDEAction( i18n("&Mail Free Busy Information..."), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( mailFreeBusy() ),
+ mCalendarView, TQT_SLOT( mailFreeBusy() ),
mACollection, "mail_freebusy" );
action->setEnabled( true );
action = new TDEAction( i18n("&Upload Free Busy Information"), 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( uploadFreeBusy() ),
+ mCalendarView, TQT_SLOT( uploadFreeBusy() ),
mACollection, "upload_freebusy" );
action->setEnabled( true );
if ( !mIsPart ) {
action = new TDEAction( i18n("&Addressbook"),"contents",0,
- TQT_TQOBJECT(mCalendarView),TQT_SLOT( openAddressbook() ),
+ mCalendarView,TQT_SLOT( openAddressbook() ),
mACollection,"addressbook" );
}
@@ -565,13 +565,13 @@ void ActionManager::initActions()
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SIDEBAR ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mDateNavigatorShowAction = new TDEToggleAction( i18n("Show Date Navigator"), 0,
- TQT_TQOBJECT(this), TQT_SLOT( toggleDateNavigator() ),
+ this, TQT_SLOT( toggleDateNavigator() ),
mACollection, "show_datenavigator" );
mTodoViewShowAction = new TDEToggleAction ( i18n("Show To-do View"), 0,
- TQT_TQOBJECT(this), TQT_SLOT( toggleTodoView() ),
+ this, TQT_SLOT( toggleTodoView() ),
mACollection, "show_todoview" );
mEventViewerShowAction = new TDEToggleAction ( i18n("Show Item Viewer"), 0,
- TQT_TQOBJECT(this), TQT_SLOT( toggleEventViewer() ),
+ this, TQT_SLOT( toggleEventViewer() ),
mACollection, "show_eventviewer" );
TDEConfig *config = KOGlobals::self()->config();
config->setGroup( "Settings" );
@@ -590,10 +590,10 @@ void ActionManager::initActions()
if ( !mMainWindow->hasDocument() ) {
mResourceViewShowAction = new TDEToggleAction ( i18n("Show Resource View"), 0,
- TQT_TQOBJECT(this), TQT_SLOT( toggleResourceView() ),
+ this, TQT_SLOT( toggleResourceView() ),
mACollection, "show_resourceview" );
mResourceButtonsAction = new TDEToggleAction( i18n("Show &Resource Buttons"), 0,
- TQT_TQOBJECT(this), TQT_SLOT( toggleResourceButtons() ),
+ this, TQT_SLOT( toggleResourceButtons() ),
mACollection, "show_resourcebuttons" );
mResourceViewShowAction->setChecked(
config->readBoolEntry( "ResourceViewVisible", true ) );
@@ -608,35 +608,35 @@ void ActionManager::initActions()
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SIDEBAR ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
new TDEAction( i18n("Configure &Date && Time..."), 0,
- TQT_TQOBJECT(this), TQT_SLOT( configureDateTime() ),
+ this, TQT_SLOT( configureDateTime() ),
mACollection, "conf_datetime" );
// TODO: Add an item to show the resource management dlg
// new TDEAction( i18n("Manage &Resources..."), 0,
-// TQT_TQOBJECT(this), TQT_SLOT( manageResources() ),
+// this, TQT_SLOT( manageResources() ),
// mACollection, "conf_resources" );
new TDEAction( i18n("Manage View &Filters..."), "configure", 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( editFilters() ),
+ mCalendarView, TQT_SLOT( editFilters() ),
mACollection, "edit_filters" );
new TDEAction( i18n("Manage C&ategories..."), 0,
- TQT_TQOBJECT(mCalendarView->dialogManager()), TQT_SLOT( showCategoryEditDialog() ),
+ mCalendarView->dialogManager(), TQT_SLOT( showCategoryEditDialog() ),
mACollection, "edit_categories" );
if ( mIsPart ) {
new TDEAction( i18n("&Configure Calendar..."), "configure", 0,
- TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_options() ),
+ mCalendarView, TQT_SLOT( edit_options() ),
mACollection, "korganizer_configure" );
- KStdAction::keyBindings( TQT_TQOBJECT(this), TQT_SLOT( keyBindings() ),
+ KStdAction::keyBindings( this, TQT_SLOT( keyBindings() ),
mACollection, "korganizer_configure_shortcuts" );
} else {
- KStdAction::preferences( TQT_TQOBJECT(mCalendarView), TQT_SLOT( edit_options() ),
+ KStdAction::preferences( mCalendarView, TQT_SLOT( edit_options() ),
mACollection );
- KStdAction::keyBindings( TQT_TQOBJECT(this), TQT_SLOT( keyBindings() ), mACollection );
+ KStdAction::keyBindings( this, TQT_SLOT( keyBindings() ), mACollection );
}
//**************************** HELP MENU **********************************
- KStdAction::tipOfDay( TQT_TQOBJECT(this), TQT_SLOT( showTip() ), mACollection,
+ KStdAction::tipOfDay( this, TQT_SLOT( showTip() ), mACollection,
"help_tipofday" );
// new TDEAction( i18n("Show Intro Page"), 0,
// mCalendarView,TQT_SLOT( showIntro() ),
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 8e2e1b705..bffd525ee 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -131,8 +131,8 @@ CalendarView::CalendarView( TQWidget *parent, const char *name )
mExtensions.setAutoDelete( true );
- mDateNavigator = new DateNavigator( TQT_TQOBJECT(this) );
- mDateChecker = new DateChecker( TQT_TQOBJECT(this) );
+ mDateNavigator = new DateNavigator( this );
+ mDateChecker = new DateChecker( this );
TQBoxLayout *topLayout = new TQVBoxLayout( this );
@@ -311,7 +311,7 @@ void CalendarView::setCalendar( Calendar *cal )
connect( mHistory, TQT_SIGNAL( redone() ), TQT_SLOT( updateView() ) );
if ( mChanger ) delete mChanger;
- setIncidenceChanger( new IncidenceChanger( mCalendar, TQT_TQOBJECT(this) ) );
+ setIncidenceChanger( new IncidenceChanger( mCalendar, this ) );
mCalendar->registerObserver( this );
diff --git a/korganizer/interfaces/korganizer/part.h b/korganizer/interfaces/korganizer/part.h
index 0e7230482..cb0b68844 100644
--- a/korganizer/interfaces/korganizer/part.h
+++ b/korganizer/interfaces/korganizer/part.h
@@ -39,7 +39,7 @@ class Part : public KParts::Part
typedef TQPtrList<Part> List;
Part( MainWindow *parent, const char *name )
- : KParts::Part( parent?(TQT_TQOBJECT(parent->topLevelWidget())):0, name ), mMainWindow( parent ) {}
+ : KParts::Part( parent?(parent->topLevelWidget()):0, name ), mMainWindow( parent ) {}
virtual ~Part() {}
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp
index 1405f2054..0ed158580 100644
--- a/korganizer/koagenda.cpp
+++ b/korganizer/koagenda.cpp
@@ -423,7 +423,7 @@ bool KOAgenda::eventFilter_drag( TQObject *object, TQDropEvent *de )
#ifndef KORG_NODND
TQPoint viewportPos;
if ( object != viewport() && object != this ) {
- viewportPos = TQT_TQWIDGET( object )->mapToParent( de->pos() );
+ viewportPos = static_cast<TQWidget*>( object )->mapToParent( de->pos() );
} else {
viewportPos = de->pos();
}
diff --git a/korganizer/koeditorattachments.cpp b/korganizer/koeditorattachments.cpp
index 6f46ac5f1..70cf8c79e 100644
--- a/korganizer/koeditorattachments.cpp
+++ b/korganizer/koeditorattachments.cpp
@@ -490,29 +490,29 @@ KOEditorAttachments::KOEditorAttachments( int spacing, TQWidget *parent,
mContextMenu = new TDEPopupMenu( this );
- TDEActionCollection* ac = new TDEActionCollection( TQT_TQWIDGET(this), TQT_TQOBJECT(this) );
+ TDEActionCollection* ac = new TDEActionCollection( this, this );
- mOpenAction = new TDEAction( i18n("Open"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotShow()), ac );
+ mOpenAction = new TDEAction( i18n("Open"), 0, this, TQT_SLOT(slotShow()), ac );
mOpenAction->plug( mContextMenu );
- mSaveAsAction = new TDEAction( i18n( "Save As..." ), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSaveAs()), ac );
+ mSaveAsAction = new TDEAction( i18n( "Save As..." ), 0, this, TQT_SLOT(slotSaveAs()), ac );
mSaveAsAction->plug( mContextMenu );
mContextMenu->insertSeparator();
- mCopyAction = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotCopy()), ac );
+ mCopyAction = KStdAction::copy(this, TQT_SLOT(slotCopy()), ac );
mCopyAction->plug( mContextMenu );
- mCutAction = KStdAction::cut(TQT_TQOBJECT(this), TQT_SLOT(slotCut()), ac );
+ mCutAction = KStdAction::cut(this, TQT_SLOT(slotCut()), ac );
mCutAction->plug( mContextMenu );
- TDEAction *action = KStdAction::paste(TQT_TQOBJECT(this), TQT_SLOT(slotPaste()), ac );
+ TDEAction *action = KStdAction::paste(this, TQT_SLOT(slotPaste()), ac );
action->plug( mContextMenu );
mContextMenu->insertSeparator();
- mDeleteAction = new TDEAction( i18n( "&Remove" ), 0, TQT_TQOBJECT(this), TQT_SLOT(slotRemove()), ac );
+ mDeleteAction = new TDEAction( i18n( "&Remove" ), 0, this, TQT_SLOT(slotRemove()), ac );
mDeleteAction->plug( mContextMenu );
mDeleteAction->setShortcut( Key_Delete );
mContextMenu->insertSeparator();
- mEditAction = new TDEAction( i18n( "&Properties..." ), 0, TQT_TQOBJECT(this), TQT_SLOT(slotEdit()), ac );
+ mEditAction = new TDEAction( i18n( "&Properties..." ), 0, this, TQT_SLOT(slotEdit()), ac );
mEditAction->plug( mContextMenu );
selectionChanged();
diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp
index 304fea93f..3c961ebf7 100644
--- a/korganizer/koeditorgeneral.cpp
+++ b/korganizer/koeditorgeneral.cpp
@@ -573,7 +573,7 @@ void KOEditorGeneral::setDescription( const TQString &text )
TQObject *KOEditorGeneral::typeAheadReceiver() const
{
- return TQT_TQOBJECT(mSummaryEdit);
+ return mSummaryEdit;
}
void KOEditorGeneral::updateAttendeeSummary(int count)
diff --git a/korganizer/koeditorgeneraljournal.cpp b/korganizer/koeditorgeneraljournal.cpp
index 9b27c0638..e1134a02f 100644
--- a/korganizer/koeditorgeneraljournal.cpp
+++ b/korganizer/koeditorgeneraljournal.cpp
@@ -47,7 +47,7 @@
KOEditorGeneralJournal::KOEditorGeneralJournal( TQWidget *parent,
const char *name )
- : KOEditorGeneral( TQT_TQOBJECT(parent), name )
+ : KOEditorGeneral( parent, name )
{
setType( "Journal" );
}
diff --git a/korganizer/koeventeditor.cpp b/korganizer/koeventeditor.cpp
index ef2dc5df9..5fd3a21d1 100644
--- a/korganizer/koeventeditor.cpp
+++ b/korganizer/koeventeditor.cpp
@@ -116,7 +116,7 @@ void KOEventEditor::reload()
void KOEventEditor::setupGeneral()
{
- mGeneral = new KOEditorGeneralEvent( TQT_TQOBJECT(this) );
+ mGeneral = new KOEditorGeneralEvent( this );
if( KOPrefs::instance()->mCompactDialogs ) {
TQFrame *topFrame = addPage(i18n("General"));
diff --git a/korganizer/korganizer.cpp b/korganizer/korganizer.cpp
index 5646d709e..d9f7933ae 100644
--- a/korganizer/korganizer.cpp
+++ b/korganizer/korganizer.cpp
@@ -101,8 +101,8 @@ KOrganizer::KOrganizer( const char *name )
mCalendarView = new CalendarView( this, "KOrganizer::CalendarView" );
setCentralWidget(mCalendarView);
- mActionManager = new ActionManager( this, mCalendarView, TQT_TQOBJECT(this), this, false );
- (void)new KOrganizerIfaceImpl( mActionManager, TQT_TQOBJECT(this), "IfaceImpl" );
+ mActionManager = new ActionManager( this, mCalendarView, this, this, false );
+ (void)new KOrganizerIfaceImpl( mActionManager, this, "IfaceImpl" );
}
KOrganizer::~KOrganizer()
@@ -209,8 +209,8 @@ void KOrganizer::initActions()
createStandardStatusBarAction();
KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()), actionCollection());
- KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolbars() ), actionCollection());
- KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() );
+ KStdAction::configureToolbars(this, TQT_SLOT(configureToolbars() ), actionCollection());
+ KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() );
setAutoSaveSettings();
createGUI( 0 );
diff --git a/korganizer/kotodoeditor.cpp b/korganizer/kotodoeditor.cpp
index 9da336594..a17e0d99d 100644
--- a/korganizer/kotodoeditor.cpp
+++ b/korganizer/kotodoeditor.cpp
@@ -94,7 +94,7 @@ void KOTodoEditor::reload()
void KOTodoEditor::setupGeneral()
{
- mGeneral = new KOEditorGeneralTodo(TQT_TQOBJECT(this));
+ mGeneral = new KOEditorGeneralTodo(this);
if (KOPrefs::instance()->mCompactDialogs) {
TQFrame *topFrame = addPage(i18n("General"));