mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #304, centralized icons
* icons which can be rotated * provide metadata * integrated in CValueObjects * added SVG support
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user