From f4fae92b6768541e2952173c3d4b09040f95bf7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/actionmanager.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'korganizer/actionmanager.cpp') diff --git a/korganizer/actionmanager.cpp b/korganizer/actionmanager.cpp index b9df9e869..8b938986a 100644 --- a/korganizer/actionmanager.cpp +++ b/korganizer/actionmanager.cpp @@ -723,7 +723,7 @@ void ActionManager::file_open( const KURL &url ) // is that URL already opened somewhere else? Activate that window KOrg::MainWindow *korg=ActionManager::findInstance( url ); if ( ( 0 != korg )&&( korg != mMainWindow ) ) { - KWin::activateWindow( korg->topLevelWidget()->winId() ); + KWin::activateWindow( korg->tqtopLevelWidget()->winId() ); return; } @@ -745,7 +745,7 @@ void ActionManager::file_icalimport() TQString progPath; KTempFile tmpfn; - TQString homeDir = TQDir::homeDirPath() + TQString::fromLatin1( "/.calendar" ); + TQString homeDir = TQDir::homeDirPath() + TQString::tqfromLatin1( "/.calendar" ); if ( !TQFile::exists( homeDir ) ) { KMessageBox::error( dialogParent(), @@ -998,7 +998,7 @@ bool ActionManager::saveURL() if ( result != KMessageBox::Continue ) return false; TQString filename = mURL.fileName(); - filename.replace( filename.length() - 4, 4, ".ics" ); + filename.tqreplace( filename.length() - 4, 4, ".ics" ); mURL.setFileName( filename ); if ( mURL.isLocalFile() ) { mFile = mURL.path(); @@ -1043,9 +1043,9 @@ void ActionManager::exportHTML() settings.readConfig(); TQDate qd1; - qd1 = TQDate::currentDate(); + qd1 = TQDate::tqcurrentDate(); TQDate qd2; - qd2 = TQDate::currentDate(); + qd2 = TQDate::tqcurrentDate(); if ( settings.monthView() ) qd2.addMonths( 1 ); else @@ -1702,7 +1702,7 @@ void ActionManager::openEventEditor( const TQString & summary, attData = file; } else { if ( KMessageBox::warningContinueCancel( 0, - i18n("Removing attachments from an email might invalidate its signature."), + i18n("Removing attachments from an email might tqinvalidate its signature."), i18n("Remove Attachments"), KStdGuiItem::cont(), "BodyOnlyInlineAttachment" ) != KMessageBox::Continue ) return; @@ -1916,7 +1916,7 @@ bool ActionManager::queryClose() if ( mCalendar && mCalendar->isModified() ) { int res = KMessageBox::questionYesNoCancel( dialogParent(), - i18n("The calendar contains unsaved changes. Do you want to save them before exiting?"), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard() ); + i18n("The calendar tqcontains unsaved changes. Do you want to save them before exiting?"), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard() ); // Exit on yes and no, don't exit on cancel. If saving fails, ask for exiting. if ( res == KMessageBox::Yes ) { close = saveModifiedURL(); @@ -2011,7 +2011,7 @@ void ActionManager::importCalendar( const KURL &url ) } PreviewDialog *dialog; - dialog = new PreviewDialog( url, mMainWindow->topLevelWidget() ); + dialog = new PreviewDialog( url, mMainWindow->tqtopLevelWidget() ); connect( dialog, TQT_SIGNAL( dialogFinished( PreviewDialog * ) ), TQT_SLOT( slotPreviewDialogFinished( PreviewDialog * ) ) ); connect( dialog, TQT_SIGNAL( openURL( const KURL &, bool ) ), @@ -2104,10 +2104,10 @@ bool ActionManager::handleCommandLine() ret = false; } else if ( args->count() <= 0 ) { // No filenames given => all other args are meaningless, show main Window - mainWindow->topLevelWidget()->show(); + mainWindow->tqtopLevelWidget()->show(); } else if ( !args->isSet( "open" ) ) { // Import, merge, or ask => we need the resource calendar window anyway. - mainWindow->topLevelWidget()->show(); + mainWindow->tqtopLevelWidget()->show(); // Check for import, merge or ask if ( args->isSet( "import" ) ) { @@ -2130,7 +2130,7 @@ bool ActionManager::handleCommandLine() TQWidget *ActionManager::dialogParent() { - return mCalendarView->topLevelWidget(); + return mCalendarView->tqtopLevelWidget(); } #include "actionmanager.moc" -- cgit v1.2.1