diff options
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.h')
| -rw-r--r-- | src/kitemviews/kitemlistcontroller.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistcontroller.h b/src/kitemviews/kitemlistcontroller.h index b44fcca3c..db31d50c3 100644 --- a/src/kitemviews/kitemlistcontroller.h +++ b/src/kitemviews/kitemlistcontroller.h @@ -72,7 +72,12 @@ public: MultiSelection }; - KItemListController(QObject* parent = 0); + /** + * @param model Model of the controller. The ownership is passed to the controller. + * @param view View of the controller. The ownership is passed to the controller. + * @param parent Optional parent object. + */ + KItemListController(KItemModelBase* model, KItemListView* view, QObject* parent = 0); virtual ~KItemListController(); void setModel(KItemModelBase* model); @@ -261,6 +266,13 @@ private: */ qreal keyboardAnchorPos(int index) const; + /** + * Dependent on the selection-behavior the extendedSelectionRegion-property + * of the KItemListStyleOption from the view should be adjusted: If no + * rubberband selection is used the property should be enabled. + */ + void updateExtendedSelectionRegion(); + private: bool m_singleClickActivation; bool m_selectionTogglePressed; |
