mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
View / model fixes / improvements
* allow upfront checking of formatter roles * selection mode menus adjusted (data approach no longer worked with CSlot) * removed unused style sheet parts * minor View/Model tweaks/formatting
This commit is contained in:
@@ -73,6 +73,9 @@ namespace BlackGui
|
||||
//! Alignment available?
|
||||
virtual bool hasAlignment() const { return m_alignment >= 0; }
|
||||
|
||||
//! Is given role supported by formatter
|
||||
bool supportsRole(int role) const;
|
||||
|
||||
//! Receives CVariant of column data, and returns CVariant wrapping string, pixmap, or other values depending on role
|
||||
virtual BlackMisc::CVariant data(int role, const BlackMisc::CVariant &inputData) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user