diff options
author | Michele Calgaro <[email protected]> | 2025-01-20 18:26:52 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-01-20 18:26:52 +0900 |
commit | dde6781e00e5f0191eb2b36064b429f52c07a6b1 (patch) | |
tree | 594c33a32692cb322e550e49752b9c9888fa3883 /amor/amor.cpp | |
parent | e465c872a5f5ec43a5f6ec85df207fa13b71c44a (diff) | |
download | tdetoys-dde6781e00e5f0191eb2b36064b429f52c07a6b1.tar.gz tdetoys-dde6781e00e5f0191eb2b36064b429f52c07a6b1.zip |
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'amor/amor.cpp')
-rw-r--r-- | amor/amor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/amor/amor.cpp b/amor/amor.cpp index c6de8af..79e7612 100644 --- a/amor/amor.cpp +++ b/amor/amor.cpp @@ -191,7 +191,7 @@ Amor::Amor() : DCOPObject( "AmorIface" ), TQObject() } else { - kapp->quit(); + tdeApp->quit(); } } @@ -315,7 +315,7 @@ bool Amor::readConfig() // Store relative paths into files to avoid storing absolute pathnames. TDEGlobal::dirs()->findAllResources("appdata", "*rc", false, false, files); - int randomTheme = kapp->random() % files.count(); + int randomTheme = tdeApp->random() % files.count(); mConfig.mTheme = (TQString)*files.at(randomTheme); } @@ -473,7 +473,7 @@ void Amor::selectAnimation(State state) if (mTargetRect.width() == mCurrAnim->frame()->width()) mPosition = mCurrAnim->hotspot().x(); else - mPosition = ( kapp->random() % + mPosition = ( tdeApp->random() % (mTargetRect.width() - mCurrAnim->frame()->width()) ) + mCurrAnim->hotspot().x(); } @@ -613,7 +613,7 @@ void Amor::slotMouseClicked(const TQPoint &pos) mMenu->insertItem(SmallIcon("configure"), i18n("&Configure..."), this, TQ_SLOT(slotConfigure())); mMenu->insertSeparator(); mMenu->insertItem(SmallIcon("help"), i18n("&Help"), helpMnu); - mMenu->insertItem(SmallIcon("system-log-out"), i18n("&Quit"), kapp, TQ_SLOT(quit())); + mMenu->insertItem(SmallIcon("system-log-out"), i18n("&Quit"), tdeApp, TQ_SLOT(quit())); } mMenu->exec(pos); @@ -680,7 +680,7 @@ void Amor::slotTimeout() // only displayed on the first frame of mBaseAnim (the old way of doing this). if ( !mTipsQueue.isEmpty() && !mBubble && mConfig.mAppTips) showBubble(); - else if (kapp->random()%TIP_FREQUENCY == 1 && mConfig.mTips && !mBubble && !mCurrAnim->frameNum()) + else if (tdeApp->random()%TIP_FREQUENCY == 1 && mConfig.mTips && !mBubble && !mCurrAnim->frameNum()) { mTipsQueue.enqueue(new QueueItem(QueueItem::Tip, mTips.tip())); showBubble(); @@ -1014,7 +1014,7 @@ AmorSessionWidget::AmorSessionWidget() { // the only function of this widget is to catch & forward the // saveYourself() signal from the session manager - connect(kapp, TQ_SIGNAL(saveYourself()), TQ_SLOT(wm_saveyourself())); + connect(tdeApp, TQ_SIGNAL(saveYourself()), TQ_SLOT(wm_saveyourself())); } void AmorSessionWidget::wm_saveyourself() |