mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 14:45:42 +08:00
Issue #77 toIcon returns a simple enum instead of a full object
This commit is contained in:
@@ -155,8 +155,8 @@ namespace BlackMisc
|
||||
const auto i = index.frontCasted<ColumnIndex>(); // keep that "auto", otherwise I won's compile
|
||||
switch (i)
|
||||
{
|
||||
case IndexIcon: return CVariant::from(derived()->toIcon());
|
||||
case IndexPixmap: return CVariant::from(derived()->toPixmap());
|
||||
case IndexIcon: return CVariant::from(CIcon(derived()->toIcon()));
|
||||
case IndexPixmap: return CVariant::from(CIcon(derived()->toIcon()).toPixmap());
|
||||
case IndexString: return CVariant(derived()->toQString());
|
||||
default: return basePropertyByIndex(static_cast<const TIndexBaseOfT<Derived> *>(derived()), index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user