mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #319, added column formatters
* Specialized formatters (e.g. for bool, for PQs etc.) allow specialized look and feel for each column * Fixed isValidComFrequency used for formatters * Changed models to use formatters * Outdated propertyByIndexAsString methods removed * During the above tasks: fixed override keyword in some places * Column tooltips * refs #323, wrong column name fix
This commit is contained in:
@@ -30,10 +30,10 @@ namespace BlackGui
|
||||
this->m_columns.clear();
|
||||
if (withIcon)
|
||||
{
|
||||
this->m_columns.addColumn(CColumn(CNameVariantPair::IndexPixmap, true));
|
||||
this->m_columns.addColumn(CColumn(CNameVariantPair::IndexPixmap));
|
||||
}
|
||||
this->m_columns.addColumn(CColumn("name", CNameVariantPair::IndexName));
|
||||
this->m_columns.addColumn(CColumn("value", CNameVariantPair::IndexVariant));
|
||||
this->m_columns.addColumn(CColumn::standardString("name", CNameVariantPair::IndexName));
|
||||
this->m_columns.addColumn(CColumn("value", CNameVariantPair::IndexVariant, new CDefaultFormatter()));
|
||||
|
||||
// default sort order
|
||||
this->setSortColumnByPropertyIndex(CNameVariantPair::IndexName);
|
||||
|
||||
Reference in New Issue
Block a user