KSelectionProxyModel problem

Ilya Matveychikov matvejchikov at gmail.com
Fri Sep 4 10:43:36 UTC 2015


Here is  the KSelectionProxyModel model
​ ​
problem. It crashes with segmentation fault while selection/deselection
occurs...

Test sample and the case:
https://github.com/milabs/QtSampleModel/tree/treemodel

Also, looks like that model doesn't operate with QTableView
​ ​
correctly. The patch shows the problem
​ ​
place:

@@ -2446,7 +2446,7 @@ int KSelectionProxyModel::columnCount(const
QModelIndex &index) const
             // it's actually 0 ,but must return what the source model
says, even if we
             // have no rows or columns.
 #if QT_VERSION >= 0x040700
-            || d->m_rootIndexList.isEmpty()
+//            || d->m_rootIndexList.isEmpty()
 #endif
        ) {
         return 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150904/87da1d65/attachment.html>


More information about the Kde-frameworks-devel mailing list