From: <su...@us...> - 2013-03-21 14:47:30
|
Revision: 4596 http://sourceforge.net/p/tora/code/4596 Author: subik Date: 2013-03-21 14:47:24 +0000 (Thu, 21 Mar 2013) Log Message: ----------- fixed #849 display column number not working linux tor-2.1.4 svn Modified Paths: -------------- branches/tora3/src/core/toresultmodel.cpp Modified: branches/tora3/src/core/toresultmodel.cpp =================================================================== --- branches/tora3/src/core/toresultmodel.cpp 2013-03-21 14:39:42 UTC (rev 4595) +++ branches/tora3/src/core/toresultmodel.cpp 2013-03-21 14:47:24 UTC (rev 4596) @@ -658,10 +658,15 @@ toQValue::complexType *i = data.toQVariant().value<toQValue::complexType*>(); return QVariant(i->displayData()); } + if (index.column() == 0) + return index.row() + 1; return QVariant(data.displayData()); case Qt::BackgroundRole: if (data.isNull() && toConfigurationSingle::Instance().indicateEmpty()) return QVariant(QColor(toConfigurationSingle::Instance().indicateEmptyColor())); + if (index.column() == 0) { + return QPalette().color(QPalette::Window); + } return QVariant(); case Qt::TextAlignmentRole: return (int) Headers.at(index.column()).align; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |