From 08645eef994eb8761df76e1529318262e241eac7 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 21 Jan 2025 13:36:16 +0900 Subject: Use tdeApp Signed-off-by: Michele Calgaro --- doc/en/index.docbook | 8 ++++---- kdirstat/kactivitytracker.cpp | 8 ++++---- kdirstat/kcleanup.cpp | 4 ++-- kdirstat/kdirstatapp.cpp | 16 ++++++++-------- kdirstat/kdirstatsettings.cpp | 10 +++++----- kdirstat/kdirtree.cpp | 2 +- kdirstat/kdirtreeview.cpp | 10 +++++----- kdirstat/kfeedback.cpp | 4 ++-- kdirstat/ktreemapview.cpp | 2 +- 9 files changed, 32 insertions(+), 32 deletions(-) diff --git a/doc/en/index.docbook b/doc/en/index.docbook index 6722f91..ce9e022 100644 --- a/doc/en/index.docbook +++ b/doc/en/index.docbook @@ -1,7 +1,7 @@ KDirStat'> - + @@ -120,7 +120,7 @@ problems. Basically a long version of the abstract. Don't include a revision history. (see installation appendix comment) --> -&kapp; is a graphical disk usage utility. It shows you where all your disk +&tdeApp; is a graphical disk usage utility. It shows you where all your disk space has gone and tries to help clean it up. @@ -131,7 +131,7 @@ space has gone and tries to help clean it up. -The &kapp; main window +The &tdeApp; main window @@ -1857,7 +1857,7 @@ distribution. --> Credits and License -&kapp; +&tdeApp; Program copyright 1999-2002 Stefan Hundhammer sh@suse.de diff --git a/kdirstat/kactivitytracker.cpp b/kdirstat/kactivitytracker.cpp index 60f0cf1..68c8267 100644 --- a/kdirstat/kactivitytracker.cpp +++ b/kdirstat/kactivitytracker.cpp @@ -22,7 +22,7 @@ KActivityTracker::KActivityTracker( TQObject * parent, { _id = id; - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( _id ); _sum = config->readNumEntry( "activityPoints", 0 ); _lastSignal = config->readNumEntry( "lastSignal" , 0 ); @@ -41,7 +41,7 @@ KActivityTracker::setThreshold( long threshold ) { _threshold = threshold; - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( _id ); config->writeEntry( "threshold", _threshold ); @@ -63,7 +63,7 @@ KActivityTracker::trackActivity( int points ) << endl; #endif - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( _id ); config->writeEntry( "activityPoints", _sum ); @@ -79,7 +79,7 @@ KActivityTracker::checkThreshold() // kdDebug() << "Activity threshold reached for " << _id << endl; _lastSignal = _sum; - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( _id ); config->writeEntry( "lastSignal", _lastSignal ); diff --git a/kdirstat/kcleanup.cpp b/kdirstat/kcleanup.cpp index c99f2ca..d2e97f7 100644 --- a/kdirstat/kcleanup.cpp +++ b/kdirstat/kcleanup.cpp @@ -380,7 +380,7 @@ KCleanup::runCommand ( const KFileInfo * item, void KCleanup::readConfig() { - TDEConfig *config = kapp->config(); + TDEConfig *config = tdeApp->config(); TDEConfigGroupSaver saver( config, _id ); bool valid = config->readBoolEntry( "valid", false ); @@ -411,7 +411,7 @@ KCleanup::readConfig() void KCleanup::saveConfig() const { - TDEConfig *config = kapp->config(); + TDEConfig *config = tdeApp->config(); TDEConfigGroupSaver saver( config, _id ); config->writeEntry( "valid", true ); diff --git a/kdirstat/kdirstatapp.cpp b/kdirstat/kdirstatapp.cpp index d8fd54d..0fc9e66 100644 --- a/kdirstat/kdirstatapp.cpp +++ b/kdirstat/kdirstatapp.cpp @@ -166,7 +166,7 @@ KDirStatApp::initActions() this, TQ_SLOT( stopReading() ), actionCollection(), "file_stop_reading" ); - _fileQuit = KStdAction::quit ( kapp, TQ_SLOT( quit() ), actionCollection() ); + _fileQuit = KStdAction::quit ( tdeApp, TQ_SLOT( quit() ), actionCollection() ); _editCopy = KStdAction::copy ( this, TQ_SLOT( editCopy() ), actionCollection() ); _showToolBar = KStdAction::showToolbar ( this, TQ_SLOT( toggleToolBar() ), actionCollection() ); _showStatusBar = KStdAction::showStatusbar ( this, TQ_SLOT( toggleStatusBar() ), actionCollection() ); @@ -345,7 +345,7 @@ KDirStatApp::openURL( const KURL& url ) void KDirStatApp::readMainWinConfig() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "General Options" ); // Status settings of the various bars and views @@ -385,7 +385,7 @@ void KDirStatApp::readMainWinConfig() void KDirStatApp::saveMainWinConfig() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "General Options" ); @@ -524,7 +524,7 @@ void KDirStatApp::editCopy() { if ( _treeView->selection() ) - kapp->clipboard()->setText(_treeView->selection()->orig()->url()); + tdeApp->clipboard()->setText(_treeView->selection()->orig()->url()); #if 0 #warning debug @@ -646,7 +646,7 @@ KDirStatApp::treemapRebuild() void KDirStatApp::treemapHelp() { - kapp->invokeHelp( "treemap_intro" ); + tdeApp->invokeHelp( "treemap_intro" ); } @@ -702,7 +702,7 @@ KDirStatApp::askForFeedback() if ( ! doFeedbackReminder() ) return; - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); switch ( KMessageBox::warningYesNoCancel( this, i18n( "Now that you know this program for some time,\n" @@ -745,7 +745,7 @@ KDirStatApp::askForFeedback() void KDirStatApp::feedbackMailSent() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "Feedback" ); config->writeEntry( "mailSent", true ); config->sync(); @@ -755,7 +755,7 @@ KDirStatApp::feedbackMailSent() bool KDirStatApp::doFeedbackReminder() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "Feedback" ); bool mailSent = config->readBoolEntry( "mailSent", false ); diff --git a/kdirstat/kdirstatsettings.cpp b/kdirstat/kdirstatsettings.cpp index de05e13..80853f1 100644 --- a/kdirstat/kdirstatsettings.cpp +++ b/kdirstat/kdirstatsettings.cpp @@ -124,7 +124,7 @@ KSettingsDialog::slotHelp() else if ( activePageIndex() == _generalSettingsPageIndex) helpTopic = "general_settings"; // kdDebug() << "Help topic: " << helpTopic << endl; - kapp->invokeHelp( helpTopic ); + tdeApp->invokeHelp( helpTopic ); } @@ -740,7 +740,7 @@ KGeneralSettingsPage::~KGeneralSettingsPage() void KGeneralSettingsPage::apply() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "Directory Reading" ); config->writeEntry( "CrossFileSystems", _crossFileSystems->isChecked() ); @@ -769,7 +769,7 @@ KGeneralSettingsPage::revertToDefaults() void KGeneralSettingsPage::setup() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "Directory Reading" ); _crossFileSystems->setChecked ( config->readBoolEntry( "CrossFileSystems" , false) ); @@ -932,7 +932,7 @@ KTreemapPage::~KTreemapPage() void KTreemapPage::apply() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "Treemaps" ); @@ -982,7 +982,7 @@ KTreemapPage::revertToDefaults() void KTreemapPage::setup() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "Treemaps" ); _squarify->setChecked ( config->readBoolEntry( "Squarify" , true ) ); diff --git a/kdirstat/kdirtree.cpp b/kdirstat/kdirtree.cpp index b1bea11..6f48507 100644 --- a/kdirstat/kdirtree.cpp +++ b/kdirstat/kdirtree.cpp @@ -1181,7 +1181,7 @@ KDirTree::~KDirTree() void KDirTree::readConfig() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "Directory Reading" ); _crossFileSystems = config->readBoolEntry( "CrossFileSystems", false ); diff --git a/kdirstat/kdirtreeview.cpp b/kdirstat/kdirtreeview.cpp index 4d3c168..e3ab3f6 100644 --- a/kdirstat/kdirtreeview.cpp +++ b/kdirstat/kdirtreeview.cpp @@ -111,7 +111,7 @@ KDirTreeView::KDirTreeView( TQWidget * parent ) ensureContrast(); - connect( kapp, TQ_SIGNAL( tdedisplayPaletteChanged() ), + connect( tdeApp, TQ_SIGNAL( tdedisplayPaletteChanged() ), this, TQ_SLOT ( paletteChanged() ) ); connect( this, TQ_SIGNAL( selectionChanged ( TQListViewItem * ) ), @@ -710,7 +710,7 @@ KDirTreeView::setTreeBackground( const TQColor &color ) _treeBackground = color; _percentageBarBackground = _treeBackground.dark( 115 ); - TQPalette pal = kapp->palette(); + TQPalette pal = tdeApp->palette(); pal.setBrush( TQColorGroup::Base, _treeBackground ); setPalette( pal ); } @@ -852,7 +852,7 @@ KDirTreeView::popupContextInfo( const TQPoint & pos, void KDirTreeView::readConfig() { - TDEConfig *config = kapp->config(); + TDEConfig *config = tdeApp->config(); TDEConfigGroupSaver saver( config, "Tree Colors" ); _usedFillColors = config->readNumEntry( "usedFillColors", -1 ); @@ -887,7 +887,7 @@ KDirTreeView::readConfig() void KDirTreeView::saveConfig() const { - TDEConfig *config = kapp->config(); + TDEConfig *config = tdeApp->config(); TDEConfigGroupSaver saver( config, "Tree Colors" ); config->writeEntry( "usedFillColors", _usedFillColors ); @@ -961,7 +961,7 @@ KDirTreeView::sendMailToOwner() // stuff into 'config.h' or some other include file without hardcoding // anything - this is too system dependent. - kapp->invokeMailer( mail ); + tdeApp->invokeMailer( mail ); logActivity( 10 ); } diff --git a/kdirstat/kfeedback.cpp b/kdirstat/kfeedback.cpp index f9a87bd..ea9bd5d 100644 --- a/kdirstat/kfeedback.cpp +++ b/kdirstat/kfeedback.cpp @@ -159,7 +159,7 @@ KFeedbackForm::sendMail() if ( aboutData ) subject = aboutData->programName() + "-" + aboutData->version(); else - subject = kapp->name(); + subject = tdeApp->name(); subject = "[kde-feedback] " + subject + " user feedback"; @@ -194,7 +194,7 @@ KFeedbackForm::sendMail() // Actually send mail // - kapp->invokeMailer( mail ); + tdeApp->invokeMailer( mail ); emit mailSent(); } diff --git a/kdirstat/ktreemapview.cpp b/kdirstat/ktreemapview.cpp index 50efbe7..d905e6a 100644 --- a/kdirstat/ktreemapview.cpp +++ b/kdirstat/ktreemapview.cpp @@ -115,7 +115,7 @@ KTreemapView::deleteAllItems( TQCanvas * canvas ) void KTreemapView::readConfig() { - TDEConfig * config = kapp->config(); + TDEConfig * config = tdeApp->config(); config->setGroup( "Treemaps" ); _ambientLight = config->readNumEntry( "AmbientLight" , DefaultAmbientLight ); -- cgit v1.2.1