refs #413 Extend Private::CValueObjectMetaInfo with more fallback helpers, and extend CVariant with toIcon method.

This commit is contained in:
Mathew Sutcliffe
2015-05-04 22:33:20 +01:00
parent 097522cfa5
commit 9867b4a6df
4 changed files with 60 additions and 7 deletions

View File

@@ -26,6 +26,8 @@ class QDBusArgument;
namespace BlackMisc
{
class CIcon;
/*!
* Wrapper around QVariant which provides transparent access to CValueObject methods
* of the contained object if it is registered with BlackMisc::registerMetaValueType.
@@ -199,6 +201,12 @@ namespace BlackMisc
//! \copydoc CValueObject::equalsPropertyByIndex
bool equalsPropertyByIndex(const CVariant &compareValue, const CPropertyIndex &index) const;
//! \copydoc CValueObject::toPixmap
QPixmap toPixmap() const;
//! \copydoc CValueObject::toIcon
CIcon toIcon() const;
private:
QVariant m_v;