summaryrefslogtreecommitdiffstats
path: root/knotes/knote.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-01-20 18:26:41 +0900
committerMichele Calgaro <[email protected]>2025-01-20 18:26:41 +0900
commitaae5ebe5008a41fe4a4767092d7e17600abf6725 (patch)
tree97002e11e1564bceeda4fb4b3b04164bb9e72286 /knotes/knote.cpp
parent69779eb81c20b80b56ab698f44a944efd6107a74 (diff)
downloadtdepim-aae5ebe5008a41fe4a4767092d7e17600abf6725.tar.gz
tdepim-aae5ebe5008a41fe4a4767092d7e17600abf6725.zip
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'knotes/knote.cpp')
-rw-r--r--knotes/knote.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp
index 3485be00d..118836bf5 100644
--- a/knotes/knote.cpp
+++ b/knotes/knote.cpp
@@ -292,7 +292,7 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char *
// let KWin do the placement if the position is illegal--at least 10 pixels
// of a note need to be visible
const TQPoint& position = m_config->position();
- TQRect desk = kapp->desktop()->rect();
+ TQRect desk = tdeApp->desktop()->rect();
desk.addCoords( 10, 10, -10, -10 );
if ( desk.intersects( TQRect( position, TQSize( width, height ) ) ) )
move( position ); // do before calling show() to avoid flicker
@@ -360,8 +360,8 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char *
// HACK: update the icon color - again after showing the note, to make kicker aware of the new colors
TDEIconEffect effect;
- TQPixmap icon = effect.apply( kapp->icon(), TDEIconEffect::Colorize, 1, m_config->bgColor(), false );
- TQPixmap miniIcon = effect.apply( kapp->miniIcon(), TDEIconEffect::Colorize, 1, m_config->bgColor(), false );
+ TQPixmap icon = effect.apply( tdeApp->icon(), TDEIconEffect::Colorize, 1, m_config->bgColor(), false );
+ TQPixmap miniIcon = effect.apply( tdeApp->miniIcon(), TDEIconEffect::Colorize, 1, m_config->bgColor(), false );
KWin::setIcons( winId(), icon, miniIcon );
}
@@ -576,8 +576,8 @@ void KNote::setColor( const TQColor& fg, const TQColor& bg )
// update the icon color
TDEIconEffect effect;
- TQPixmap icon = effect.apply( kapp->icon(), TDEIconEffect::Colorize, 1, bg, false );
- TQPixmap miniIcon = effect.apply( kapp->miniIcon(), TDEIconEffect::Colorize, 1, bg, false );
+ TQPixmap icon = effect.apply( tdeApp->icon(), TDEIconEffect::Colorize, 1, bg, false );
+ TQPixmap miniIcon = effect.apply( tdeApp->miniIcon(), TDEIconEffect::Colorize, 1, bg, false );
KWin::setIcons( winId(), icon, miniIcon );
// set the color for the selection used to highlight the find stuff
@@ -1285,7 +1285,7 @@ void KNote::resizeEvent( TQResizeEvent *qre )
void KNote::closeEvent( TQCloseEvent *event )
{
- if(kapp->sessionSaving())
+ if(tdeApp->sessionSaving())
return;
event->ignore(); //We don't want to close (and delete the widget). Just hide it
slotClose();