SHARE
TWEET

Untitled

a guest Jun 26th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Root
  2. |-v A1
  3. | |-- textA
  4. |
  5. |-v B1
  6. | |-- textB
  7.      
  8. Root
  9. |-> A1
  10.      
  11. Root
  12. |-v A1
  13. | |-- textA
  14.      
  15. bool MySortFilterProxyModel::filterAcceptsRow(
  16.   int sourceRow,
  17.   const QModelIndex &sourceParent
  18. ) const {
  19.   bool result = QSortFilterProxyModel::filterAcceptsRow(sourceRow, sourceParent);
  20.  
  21.   if (m_tree) {
  22.   //   if (result)
  23.        m_tree->expand(sourceParent);
  24.   }
  25.  return result;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top