OSDN Git Service

Ver0.19
authorMasayuki Satoh <miyabi.satoh@gmail.com>
Sun, 31 Aug 2014 08:05:27 +0000 (17:05 +0900)
committerMasayuki Satoh <miyabi.satoh@gmail.com>
Sun, 31 Aug 2014 08:05:27 +0000 (17:05 +0900)
filetablemodel.cpp

index 86c7449..ca37b8e 100644 (file)
@@ -323,7 +323,7 @@ bool FileTableModel::setData(const QModelIndex &index, const QVariant &value, in
     case Qt::CheckStateRole:\r
         if (index.column() == 0) {\r
             m_checkStates[index.row()] = static_cast<Qt::CheckState>(value.toInt());\r
-            emit dataChanged(index, index);\r
+            emit dataChanged(index, this->index(index.row(), 4));\r
             return true;\r
         }\r
         break;\r