Count used memory using a qulonglong

remotes/origin/KDE/4.10
Fabio D'Urso 14 years ago
parent b4b742a575
commit f2acce05a3
  1. 4
      core/tilesmanager.cpp
  2. 2
      core/tilesmanager_p.h

@ -67,7 +67,7 @@ class TilesManager::Private
int width; int width;
int height; int height;
int pageNumber; int pageNumber;
long totalPixels; qulonglong totalPixels;
Rotation rotation; Rotation rotation;
NormalizedRect visibleRect; NormalizedRect visibleRect;
NormalizedRect requestRect; NormalizedRect requestRect;
@ -377,7 +377,7 @@ void TilesManager::Private::tilesAt( const NormalizedRect &rect, TileNode &tile,
} }
} }
long TilesManager::totalMemory() const qulonglong TilesManager::totalMemory() const
{ {
return 4*d->totalPixels; return 4*d->totalPixels;
} }

@ -142,7 +142,7 @@ class OKULAR_EXPORT TilesManager
/** /**
* The total memory consumed by the tiles manager * The total memory consumed by the tiles manager
*/ */
long totalMemory() const; qulonglong totalMemory() const;
/** /**
* Removes at least @p numberOfBytes bytes worth of tiles (least ranked * Removes at least @p numberOfBytes bytes worth of tiles (least ranked

Loading…
Cancel
Save