refs #304, centralized icons

* icons which can be rotated
* provide metadata
* integrated in CValueObjects
* added SVG support
This commit is contained in:
Klaus Basan
2014-08-02 19:08:17 +02:00
parent 6d5461cff8
commit 5873ec9359
31 changed files with 1262 additions and 564 deletions

View File

@@ -10,6 +10,7 @@
#include "valueobject.h"
#include "indexvariantmap.h"
#include "blackmiscfreefunctions.h"
#include "iconlist.h"
namespace BlackMisc
{
@@ -129,6 +130,22 @@ namespace BlackMisc
return c;
}
/*
* Icon
*/
CIcon CValueObject::toIcon() const
{
return CIconList::iconForIndex(CIcons::StandardIconUnknown16);
}
/*
* Pixmap
*/
QPixmap CValueObject::toPixmap() const
{
return this->toIcon().toPixmap();
}
/*
* Compare with value map
*/