[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/itemviews
From:       Mario Bensi <nef () ipsquad ! net>
Date:       2010-10-05 15:25:55
Message-ID: 20101005152555.C27783E1F1 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1182765 by bensi:

add an accessor on the QItemSelectionModel in class kcheckableproxymodel.


 M  +6 -0      kcheckableproxymodel.cpp  
 M  +1 -0      kcheckableproxymodel.h  


--- trunk/KDE/kdelibs/kdeui/itemviews/kcheckableproxymodel.cpp #1182764:1182765
@@ -61,6 +61,12 @@
   connect(itemSelectionModel, \
SIGNAL(selectionChanged(QItemSelection,QItemSelection)), \
SLOT(selectionChanged(QItemSelection,QItemSelection)));  }
 
+QItemSelectionModel *KCheckableProxyModel::selectionModel() const
+{
+  Q_D(const KCheckableProxyModel);
+  return d->m_itemSelectionModel;
+}
+
 Qt::ItemFlags KCheckableProxyModel::flags(const QModelIndex& index) const
 {
   if (!index.isValid())
--- trunk/KDE/kdelibs/kdeui/itemviews/kcheckableproxymodel.h #1182764:1182765
@@ -73,6 +73,7 @@
   ~KCheckableProxyModel();
 
   void setSelectionModel(QItemSelectionModel *itemSelectionModel);
+  QItemSelectionModel *selectionModel() const;
 
   /* reimp */ Qt::ItemFlags flags(const QModelIndex& index) const;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic