diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-20 18:26:41 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-20 18:26:41 +0900 |
commit | aae5ebe5008a41fe4a4767092d7e17600abf6725 (patch) | |
tree | 97002e11e1564bceeda4fb4b3b04164bb9e72286 /kontact/src/mainwindow.cpp | |
parent | 69779eb81c20b80b56ab698f44a944efd6107a74 (diff) | |
download | tdepim-aae5ebe5008a41fe4a4767092d7e17600abf6725.tar.gz tdepim-aae5ebe5008a41fe4a4767092d7e17600abf6725.zip |
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kontact/src/mainwindow.cpp')
-rw-r--r-- | kontact/src/mainwindow.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kontact/src/mainwindow.cpp b/kontact/src/mainwindow.cpp index a354fa41..3fb4714b 100644 --- a/kontact/src/mainwindow.cpp +++ b/kontact/src/mainwindow.cpp @@ -193,12 +193,12 @@ void MainWindow::initObject() // launch commandline specified module if any activatePluginModule(); - if ( Prefs::lastVersionSeen() == kapp->aboutData()->version() ) { + if ( Prefs::lastVersionSeen() == tdeApp->aboutData()->version() ) { selectPlugin( mCurrentPlugin ); } paintAboutScreen( introductionString() ); - Prefs::setLastVersionSeen( kapp->aboutData()->version() ); + Prefs::setLastVersionSeen( tdeApp->aboutData()->version() ); } MainWindow::~MainWindow() @@ -291,7 +291,7 @@ void MainWindow::paintAboutScreen( const TQString& msg ) TQString location = locate( "data", "kontact/about/main.html" ); TQString content = KPIM::kFileToString( location ); content = content.arg( locate( "data", "libtdepim/about/kde_infopage.css" ) ); - if ( kapp->reverseLayout() ) + if ( tdeApp->reverseLayout() ) content = content.arg( "@import \"%1\";" ).arg( locate( "data", "libtdepim/about/kde_infopage_rtl.css" ) ); else content = content.arg( "" ); @@ -802,7 +802,7 @@ void MainWindow::selectPlugin( Kontact::Plugin *plugin ) } // store old focus widget - TQWidget *focusWidget = kapp->focusWidget(); + TQWidget *focusWidget = tdeApp->focusWidget(); if ( mCurrentPlugin && focusWidget ) { // save the focus widget only when it belongs to the activated part TQWidget *parent = focusWidget->parentWidget(); @@ -1084,7 +1084,7 @@ void MainWindow::slotOpenUrl( const KURL &url ) if ( !url.query().isEmpty() ) { app = url.query().mid( 1 ); } - kapp->invokeHelp( TQString(), app ); + tdeApp->invokeHelp( TQString(), app ); } } else { new KRun( url, this ); @@ -1133,8 +1133,8 @@ void MainWindow::saveProperties( TDEConfig *config ) bool MainWindow::queryClose() { - //if ( kapp->sessionSaving() || mReallyClose ) - if ( kapp->sessionSaving() ) + //if ( tdeApp->sessionSaving() || mReallyClose ) + if ( tdeApp->sessionSaving() ) return true; bool localClose = true; @@ -1178,7 +1178,7 @@ TQString MainWindow::introductionString() "<td><a href=\"%1\">%1</a><br><span id=\"subtext\"><nobr>%1</td></tr>" "</table>" "<p style=\"margin-bottom: 0px\"> <a href=\"%1\">Skip this introduction</a></p>" ) - .arg( kapp->aboutData()->version() ) + .arg( tdeApp->aboutData()->version() ) .arg( i18n( "Kontact handles your e-mail, addressbook, calendar, to-do list and more." ) ) .arg( "exec:/help?kontact" ) .arg( iconSize ) |