Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/backgroundlistmodel.h
Context not available. | |||||
67 | PathRole, | 67 | PathRole, | ||
---|---|---|---|---|---|
68 | PackageNameRole, | 68 | PackageNameRole, | ||
69 | RemovableRole, | 69 | RemovableRole, | ||
70 | PendingDeletionRole | 70 | PendingDeletionRole, | ||
71 | ToggleRole | ||||
71 | }; | 72 | }; | ||
72 | 73 | | |||
73 | static const int BLUR_INCREMENT = 9; | 74 | static const int BLUR_INCREMENT = 9; | ||
Context not available. | |||||
105 | void backgroundsFound(const QStringList &paths, const QString &token); | 106 | void backgroundsFound(const QStringList &paths, const QString &token); | ||
106 | void processPaths(const QStringList &paths); | 107 | void processPaths(const QStringList &paths); | ||
107 | 108 | | |||
109 | protected: | ||||
110 | QPointer<Image> m_wallpaper; | ||||
111 | QString m_findToken; | ||||
112 | | ||||
108 | private: | 113 | private: | ||
109 | QSize bestSize(const KPackage::Package &package) const; | 114 | QSize bestSize(const KPackage::Package &package) const; | ||
110 | 115 | | |||
111 | QPointer<Image> m_wallpaper; | | |||
112 | QList<KPackage::Package> m_packages; | 116 | QList<KPackage::Package> m_packages; | ||
113 | QSet<QString> m_removableWallpapers; | 117 | QSet<QString> m_removableWallpapers; | ||
114 | QHash<QString, QSize> m_sizeCache; | 118 | QHash<QString, QSize> m_sizeCache; | ||
Context not available. | |||||
116 | KDirWatch m_dirwatch; | 120 | KDirWatch m_dirwatch; | ||
117 | QCache<QString, QPixmap> m_imageCache; | 121 | QCache<QString, QPixmap> m_imageCache; | ||
118 | 122 | | |||
119 | QString m_findToken; | | |||
120 | int m_screenshotSize; | 123 | int m_screenshotSize; | ||
121 | QHash<QString, int> m_pendingDeletion; | 124 | QHash<QString, int> m_pendingDeletion; | ||
122 | }; | 125 | }; | ||
Context not available. |