-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105044/
-----------------------------------------------------------

Review request for Plasma.


Description
-------

When using a SortFilterModel, it is useful to be able to get the row of the 
source model. These two simple methods are the row-equivalents of the 
QModelIndex-oriented mapToSource() and mapFromSource() methods.


Diffs
-----

  plasma/declarativeimports/core/datamodel.h 780ea61 
  plasma/declarativeimports/core/datamodel.cpp 97d129e 

Diff: http://git.reviewboard.kde.org/r/105044/diff/


Testing
-------

- Download map-to-source.{cpp,pro,qml}
- qmake ; make
- run ./map-to-source => type in the input field, the row number of the source 
model matching the first visible row will be printed on stdout


Thanks,

Aurélien Gâteau

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to