diff options
| author | Remko Tronçon <git@el-tramo.be> | 2011-03-08 22:00:09 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2011-03-08 22:00:09 (GMT) | 
| commit | 87ff1525f682105fa4e5a9a75dc7d844b19cfdbb (patch) | |
| tree | 54dabebb45f639fcd597b9a75d6084230fffd82e /Swift/QtUI/QtScaledAvatarCache.h | |
| parent | 27d21b371f24272466a2d6a5bf2e2b717ee2d9fc (diff) | |
| download | swift-87ff1525f682105fa4e5a9a75dc7d844b19cfdbb.zip swift-87ff1525f682105fa4e5a9a75dc7d844b19cfdbb.tar.bz2  | |
Cache rounded avatars.
Resolves: #770
Diffstat (limited to 'Swift/QtUI/QtScaledAvatarCache.h')
| -rw-r--r-- | Swift/QtUI/QtScaledAvatarCache.h | 22 | 
1 files changed, 22 insertions, 0 deletions
diff --git a/Swift/QtUI/QtScaledAvatarCache.h b/Swift/QtUI/QtScaledAvatarCache.h new file mode 100644 index 0000000..cc3ac07 --- /dev/null +++ b/Swift/QtUI/QtScaledAvatarCache.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2011 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <string> +#include <QString> + +namespace Swift { +	class QtScaledAvatarCache { +		public: +			QtScaledAvatarCache(int size); + +			QString getScaledAvatarPath(const QString& path); + +		private: +			int size; +	}; +}  | 
 Swift