[Kde-bindings] KDE/kdelibs/kdeui/itemviews

Stephen Kelly steveire at gmail.com
Mon May 17 12:51:08 UTC 2010


SVN commit 1127726 by skelly:

Rename some methods after API review.

CCMAIL: kde-bindings at kde.org

 M  +5 -5      kbreadcrumbselectionmodel.cpp  
 M  +10 -10    kbreadcrumbselectionmodel.h  


--- trunk/KDE/kdelibs/kdeui/itemviews/kbreadcrumbselectionmodel.cpp #1127725:1127726
@@ -71,28 +71,28 @@
   delete d_ptr;
 }
 
-bool KBreadcrumbSelectionModel::includeActualSelection() const
+bool KBreadcrumbSelectionModel::isActualSelectionIncluded() const
 {
   Q_D(const KBreadcrumbSelectionModel);
   return d->m_includeActualSelection;
 }
 
-void KBreadcrumbSelectionModel::setIncludeActualSelection(bool includeActualSelection)
+void KBreadcrumbSelectionModel::setActualSelectionIncluded(bool includeActualSelection)
 {
   Q_D(KBreadcrumbSelectionModel);
   d->m_includeActualSelection = includeActualSelection;
 }
 
-int KBreadcrumbSelectionModel::selectionDepth() const
+int KBreadcrumbSelectionModel::breadcrumbLength() const
 {
   Q_D(const KBreadcrumbSelectionModel);
   return d->m_selectionDepth;
 }
 
-void KBreadcrumbSelectionModel::setSelectionDepth(int selectionDepth)
+void KBreadcrumbSelectionModel::setBreadcrumbLength(int breadcrumbLength)
 {
   Q_D(KBreadcrumbSelectionModel);
-  d->m_selectionDepth = selectionDepth;
+  d->m_selectionDepth = breadcrumbLength;
 }
 
 QItemSelection KBreadcrumbSelectionModel::getBreadcrumbSelection(const QModelIndex& index)
--- trunk/KDE/kdelibs/kdeui/itemviews/kbreadcrumbselectionmodel.h #1127725:1127726
@@ -59,16 +59,16 @@
     - E
   @endverbatim
 
-  if includeActualSelection is true.
+  if isActualSelectionIncluded is true.
 
-  The depth of the selection may also be set. For example if the selectionDepth is 1:
+  The depth of the selection may also be set. For example if the breadcrumbLength is 1:
 
   @verbatim
     - D
     - E
   @endverbatim
 
-  And if selectionDepth is 2:
+  And if breadcrumbLength is 2:
 
   @verbatim
     - B
@@ -76,7 +76,7 @@
     - E
   @endverbatim
 
-  A KBreadcrumbsProxyModel with a selectionDepth of 0 and including the actual selection is
+  A KBreadcrumbsProxyModel with a breadcrumbLength of 0 and including the actual selection is
   the same as a KSelectionProxyModel in the KSelectionProxyModel::ExactSelection configuration.
 
   @code
@@ -125,25 +125,25 @@
 
     The default is true.
   */
-  bool includeActualSelection() const;
+  bool isActualSelectionIncluded() const;
 
   /**
-    Set whether the actual selection in included in the proxy to @p includeActualSelection.
+    Set whether the actual selection in included in the proxy to @p isActualSelectionIncluded.
   */
-  void setIncludeActualSelection(bool includeActualSelection);
+  void setActualSelectionIncluded(bool isActualSelectionIncluded);
 
   /**
     Returns the depth that the breadcrumb selection should go to.
   */
-  int selectionDepth() const;
+  int breadcrumbLength() const;
 
   /**
     Sets the depth that the breadcrumb selection should go to.
 
-    If the @p selectionDepth is -1, all breadcrumbs are selected.
+    If the @p breadcrumbLength is -1, all breadcrumbs are selected.
     The default is -1
   */
-  void setSelectionDepth(int selectionDepth);
+  void setBreadcrumbLength(int breadcrumbLength);
 
   /* reimp */ void select(const QModelIndex &index, QItemSelectionModel::SelectionFlags command);
 



More information about the Kde-bindings mailing list