diff options
author | Michele Calgaro <[email protected]> | 2025-01-22 17:46:54 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-02-03 22:38:49 +0900 |
commit | 4a47c1bfffffad7094f0b5c7cef532069e088ec3 (patch) | |
tree | 31b86dd0d87816e4b31e8bc2aa7687b2e85c2e82 /src/note.cpp | |
parent | 7975b08418486c2793bd61c32ee347ce6b81c687 (diff) | |
download | basket-4a47c1bfffffad7094f0b5c7cef532069e088ec3.tar.gz basket-4a47c1bfffffad7094f0b5c7cef532069e088ec3.zip |
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/note.cpp')
-rw-r--r-- | src/note.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/note.cpp b/src/note.cpp index 2d2e448..60ec516 100644 --- a/src/note.cpp +++ b/src/note.cpp @@ -1286,7 +1286,7 @@ void drawGradient( TQPainter *p, const TQColor &colorTop, const TQColor & colorB void Note::drawExpander(TQPainter *painter, int x, int y, const TQColor &background, bool expand, Basket *basket) { // If the current style is a TDEStyle, use it to draw the expander (plus or minus): - if (dynamic_cast<TDEStyle*>(&(kapp->style())) != NULL) { + if (dynamic_cast<TDEStyle*>(&(tdeApp->style())) != NULL) { // Set the 4 rounded corners background to background color: TQColorGroup cg(basket->colorGroup()); cg.setColor(TQColorGroup::Base, background); @@ -1296,7 +1296,7 @@ void Note::drawExpander(TQPainter *painter, int x, int y, const TQColor &backgro painter->fillRect(x, y, 9, 9, brush); // Draw it: - ((TDEStyle&)(kapp->style())).drawTDEStylePrimitive( TDEStyle::KPE_ListViewExpander, + ((TDEStyle&)(tdeApp->style())).drawTDEStylePrimitive( TDEStyle::KPE_ListViewExpander, painter, basket->viewport(), TQRect(x, y, 9, 9), @@ -1976,7 +1976,7 @@ void Note::draw(TQPainter *painter, const TQRect &clipRect) int xIcon = HANDLE_WIDTH + NOTE_MARGIN; for (State::List::Iterator it = m_states.begin(); it != m_states.end(); ++it) { if (!(*it)->emblem().isEmpty()) { - TQPixmap stateEmblem = kapp->iconLoader()->loadIcon((*it)->emblem(), TDEIcon::NoGroup, 16, TDEIcon::DefaultState, 0L, false); + TQPixmap stateEmblem = tdeApp->iconLoader()->loadIcon((*it)->emblem(), TDEIcon::NoGroup, 16, TDEIcon::DefaultState, 0L, false); painter2.drawPixmap(xIcon, yIcon, stateEmblem); xIcon += NOTE_MARGIN + EMBLEM_SIZE; } |