diff options
| author | Tannin <devnull@localhost> | 2013-03-29 10:25:38 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-03-29 10:25:38 +0100 |
| commit | f682f82db5d8ba514e927c9d7e88107348d5c32a (patch) | |
| tree | 57e407a395600a0aa44f555d36d70761e364ccf5 /src/qtgroupingproxy.h | |
| parent | 10485e15e4de3e1a6c30733ad2d4850591d31509 (diff) | |
some improvements to the grouped modlist views
Diffstat (limited to 'src/qtgroupingproxy.h')
| -rw-r--r-- | src/qtgroupingproxy.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/qtgroupingproxy.h b/src/qtgroupingproxy.h index 6ec34481..a7f151ce 100644 --- a/src/qtgroupingproxy.h +++ b/src/qtgroupingproxy.h @@ -14,6 +14,8 @@ * this program. If not, see <http://www.gnu.org/licenses/>. *
****************************************************************************************/
+// Modifications 2013-03-27 to 2013-03-28 by Sebastian Herbord
+
#ifndef GROUPINGPROXY_H
#define GROUPINGPROXY_H
@@ -30,9 +32,16 @@ typedef QMap<int, ItemData> RowData; class QtGroupingProxy : public QAbstractProxyModel
{
Q_OBJECT
+
+public:
+
+ static const unsigned int FLAG_NOSINGLE = 1;
+ static const unsigned int FLAG_NAMETOPITEM = 2;
+
public:
explicit QtGroupingProxy( QAbstractItemModel *model, QModelIndex rootNode = QModelIndex(),
- int groupedColumn = -1 );
+ int groupedColumn = -1, Qt::ItemDataRole groupedRole = Qt::DisplayRole,
+ unsigned int flags = 0);
~QtGroupingProxy();
void setGroupedColumn( int groupedColumn );
@@ -139,6 +148,8 @@ protected: private:
QSet<QString> m_expandedItems;
+ unsigned int m_flags;
+ int m_groupedRole;
};
#endif //GROUPINGPROXY_H
|
