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:
Klaus Basan
2014-08-31 15:31:19 +02:00
parent c54fa0fd43
commit 9567d1aedf
21 changed files with 893 additions and 303 deletions

View File

@@ -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);