summaryrefslogtreecommitdiffstats
path: root/tdeui/ktip.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-01-13 23:01:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-01-15 16:22:14 +0900
commitb71912fbcb90d5504aad9f17530c94169a661fed (patch)
treee9039e4a956fb8af5ba2878db5320236eb0f93b1 /tdeui/ktip.cpp
parent8ee06ec529e375693eaefa6fb68dc496d36fd367 (diff)
downloadtdelibs-rename/kapp-tdeapp.tar.gz
tdelibs-rename/kapp-tdeapp.zip
Rename TDEApplication::kApplication() to TDEApplication::tdeApplication() and kapp to tdeApp.rename/kapp-tdeapp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeui/ktip.cpp')
-rw-r--r--tdeui/ktip.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tdeui/ktip.cpp b/tdeui/ktip.cpp
index 2c8a8ef08..f9202bd30 100644
--- a/tdeui/ktip.cpp
+++ b/tdeui/ktip.cpp
@@ -64,7 +64,7 @@ KTipDatabase::KTipDatabase(const TQString &_tipFile)
loadTips(tipFile);
if (!mTips.isEmpty())
- mCurrent = kapp->random() % mTips.count();
+ mCurrent = tdeApp->random() % mTips.count();
}
@@ -80,7 +80,7 @@ KTipDatabase::KTipDatabase( const TQStringList& tipsFiles )
addTips( *it );
}
if (!mTips.isEmpty())
- mCurrent = kapp->random() % mTips.count();
+ mCurrent = tdeApp->random() % mTips.count();
}
@@ -301,7 +301,7 @@ KTipDialog::KTipDialog(KTipDatabase *db, TQWidget *parent, const char *name)
ok->setDefault(true);
hbox2->addWidget(ok);
- TDEConfigGroup config(kapp->config(), "TipOfDay");
+ TDEConfigGroup config(tdeApp->config(), "TipOfDay");
mTipOnStart->setChecked(config.readBoolEntry("RunOnStart", true));
connect(next, TQ_SIGNAL(clicked()), this, TQ_SLOT(nextTip()));
@@ -322,7 +322,7 @@ KTipDialog::~KTipDialog()
void KTipDialog::showTip(const TQString &tipFile, bool force)
{
- showTip(kapp->mainWidget(), tipFile, force);
+ showTip(tdeApp->mainWidget(), tipFile, force);
}
void KTipDialog::showTip(TQWidget *parent, const TQString &tipFile, bool force)
@@ -332,7 +332,7 @@ void KTipDialog::showTip(TQWidget *parent, const TQString &tipFile, bool force)
void KTipDialog::showMultiTip(TQWidget *parent, const TQStringList &tipFiles, bool force)
{
- TDEConfigGroup configGroup(kapp->config(), "TipOfDay");
+ TDEConfigGroup configGroup(tdeApp->config(), "TipOfDay");
const bool runOnStart = configGroup.readBoolEntry("RunOnStart", true);
@@ -347,11 +347,11 @@ void KTipDialog::showMultiTip(TQWidget *parent, const TQStringList &tipFiles, bo
const int oneDay = 24*60*60;
TQDateTime lastShown = configGroup.readDateTimeEntry("TipLastShown");
// Show tip roughly once a week
- if (lastShown.secsTo(TQDateTime::currentDateTime()) < (oneDay + (kapp->random() % (10*oneDay))))
+ if (lastShown.secsTo(TQDateTime::currentDateTime()) < (oneDay + (tdeApp->random() % (10*oneDay))))
return;
}
configGroup.writeEntry("TipLastShown", TQDateTime::currentDateTime());
- kapp->config()->sync();
+ tdeApp->config()->sync();
if (!hasLastShown)
return; // Don't show tip on first start
}
@@ -418,7 +418,7 @@ static TQString fixTip(TQString tip)
void KTipDialog::setShowOnStart(bool on)
{
- TDEConfigGroup config(kapp->config(), "TipOfDay");
+ TDEConfigGroup config(tdeApp->config(), "TipOfDay");
config.writeEntry("RunOnStart", on);
config.sync();
}