mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
refs #247 Using CVariant in property index system.
This commit is contained in:
@@ -200,17 +200,17 @@ namespace BlackMisc
|
||||
virtual QPixmap toPixmap() const;
|
||||
|
||||
//! Set property by index
|
||||
virtual void setPropertyByIndex(const QVariant &variant, const CPropertyIndex &index);
|
||||
virtual void setPropertyByIndex(const CVariant &variant, const CPropertyIndex &index);
|
||||
|
||||
//! Property by index
|
||||
virtual QVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const;
|
||||
virtual CVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const;
|
||||
|
||||
//! Property by index as String
|
||||
//! \details Intentionally not abstract, avoiding all classes need to implement this method
|
||||
virtual QString propertyByIndexAsString(const CPropertyIndex &index, bool i18n = false) const;
|
||||
|
||||
//! Is given variant equal to value of property index?
|
||||
virtual bool equalsPropertyByIndex(const QVariant &compareValue, const CPropertyIndex &index) const;
|
||||
virtual bool equalsPropertyByIndex(const CVariant &compareValue, const CPropertyIndex &index) const;
|
||||
|
||||
//! The stored object as CValueObject
|
||||
static const CValueObject *fromQVariant(const QVariant &variant);
|
||||
|
||||
Reference in New Issue
Block a user