From 1782d5ad9a646ca2a6fab90da5f04c879ddaecd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 10 Aug 2013 18:34:08 +0200 Subject: Implement icon picker, bring back raster icons. --- gui/iconcache.h | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 gui/iconcache.h (limited to 'gui/iconcache.h') diff --git a/gui/iconcache.h b/gui/iconcache.h deleted file mode 100644 index 5c5e4142..00000000 --- a/gui/iconcache.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include -#include - -class Private; - -class IconCache -{ -public: - static IconCache* instance() - { - if (!m_Instance) - { - mutex.lock(); - if (!m_Instance) - m_Instance = new IconCache; - mutex.unlock(); - } - return m_Instance; - } - - static void drop() - { - mutex.lock(); - delete m_Instance; - m_Instance = 0; - mutex.unlock(); - } - - QIcon getIcon(QString name); - -private: - IconCache(); - // hide copy constructor - IconCache(const IconCache &); - // hide assign op - IconCache& operator=(const IconCache &); - static IconCache* m_Instance; - static QMutex mutex; - Private* d; -}; - \ No newline at end of file -- cgit v1.2.3