diff options
author | Roman Savochenko <roman@home.home> | 2023-11-18 21:50:44 +0200 |
---|---|---|
committer | Roman Savochenko <roman@home.home> | 2023-11-18 21:50:44 +0200 |
commit | b0cbb44580c5b15f9d388f77ddd0c944b56ec417 (patch) | |
tree | a8f4db84027586af58133ae097085ace1d9a0734 /kdesktop/bgmanager.h | |
parent | a99f7a16ff7034f7c7ef77d7702a6f5bee0e2616 (diff) | |
download | tdebase-b0cbb44580c5b15f9d388f77ddd0c944b56ec417.tar.gz tdebase-b0cbb44580c5b15f9d388f77ddd0c944b56ec417.zip |
KDesktop: No pointers to background images-pixmapsfeat/kdesktop
Signed-off-by: Roman Savochenko <roman@home.home>
Diffstat (limited to 'kdesktop/bgmanager.h')
-rw-r--r-- | kdesktop/bgmanager.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/kdesktop/bgmanager.h b/kdesktop/bgmanager.h index 99d30a7bd..eeef1896f 100644 --- a/kdesktop/bgmanager.h +++ b/kdesktop/bgmanager.h @@ -12,6 +12,7 @@ #include <tqstring.h> #include <tqptrvector.h> +#include <kpixmap.h> #include <tqdatetime.h> #include <KBackgroundIface.h> @@ -37,7 +38,7 @@ struct KBackgroundCacheEntry int hash; int atime; int exp_from; - KPixmap *pixmap; + KPixmap pixmap; }; @@ -105,12 +106,12 @@ private: void renderBackground(int desk); void exportBackground(int pixmap, int desk); - int pixmapSize(TQPixmap *pm); + int pixmapSize(const TQPixmap &pm); int cacheSize(); void removeCache(int desk); bool freeCache(int size); - void addCache(KPixmap *pm, int hash, int desk); - void setPixmap(KPixmap *pm, int hash, int desk); + void addCache(const KPixmap &pm, int hash, int desk); + void setPixmap(const KPixmap &pm, int hash, int desk); bool m_bExport, m_bCommon; bool m_bLimitCache, m_bInit; @@ -124,7 +125,7 @@ private: TQWidget *m_pDesktop; TQTimer *m_pTimer; - KPixmap *m_tPixmap; + KPixmap m_tPixmap; TQPtrVector<KVirtualBGRenderer> m_Renderer; TQPtrVector<KBackgroundCacheEntry> m_Cache; @@ -138,7 +139,7 @@ private: TQTimer * m_crossTimer; double mAlpha; TQPixmap mNextScreen; - TQPixmap * mOldScreen; + TQPixmap mOldScreen; int fadeDesk; TQTime mBenchmark; bool crossInit; |