mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
refs #413 Extend Private::CValueObjectMetaInfo with more fallback helpers, and extend CVariant with toIcon method.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user