From: <ibr...@us...> - 2013-11-30 22:30:55
|
Revision: 4957 http://sourceforge.net/p/tora/code/4957 Author: ibre5041 Date: 2013-11-30 22:30:50 +0000 (Sat, 30 Nov 2013) Log Message: ----------- Modified Paths: -------------- trunk/tora/src/core/toresultmodel.cpp trunk/tora/src/core/toresultmodeledit.cpp Modified: trunk/tora/src/core/toresultmodel.cpp =================================================================== --- trunk/tora/src/core/toresultmodel.cpp 2013-11-30 09:28:46 UTC (rev 4956) +++ trunk/tora/src/core/toresultmodel.cpp 2013-11-30 22:30:50 UTC (rev 4957) @@ -606,7 +606,7 @@ return QVariant(); if (role == Qt::DisplayRole) - return Headers[section].name; + return Headers[section /*+ PriKeys.size() */].name; else return QVariant(); } Modified: trunk/tora/src/core/toresultmodeledit.cpp =================================================================== --- trunk/tora/src/core/toresultmodeledit.cpp 2013-11-30 09:28:46 UTC (rev 4956) +++ trunk/tora/src/core/toresultmodeledit.cpp 2013-11-30 22:30:50 UTC (rev 4957) @@ -353,7 +353,7 @@ Qt::Orientation orientation, int role) const { - return toResultModel::headerData(section + PriKeys.size(), orientation, role); + return toResultModel::headerData(section, orientation, role); } /** @@ -364,6 +364,7 @@ int toResultModelEdit::columnCount(const QModelIndex &parent) const { Q_UNUSED(parent); + int i = Headers.size() - PriKeys.size(); return Headers.size() - PriKeys.size(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |