• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • sources
  • kde-4.12
  • kdelibs
  • kdeui
  • itemviews
kbreadcrumbselectionmodel.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Klarälvdalens Datakonsult AB,
3  a KDAB Group company, info@kdab.net,
4  author Stephen Kelly <stephen@kdab.com>
5 
6  This library is free software; you can redistribute it and/or modify it
7  under the terms of the GNU Library General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or (at your
9  option) any later version.
10 
11  This library is distributed in the hope that it will be useful, but WITHOUT
12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14  License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to the
18  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  02110-1301, USA.
20 */
21 
22 #ifndef KBREADCRUMBSPROXYMODEL_H
23 #define KBREADCRUMBSPROXYMODEL_H
24 
25 #include <QtGui/QItemSelectionModel>
26 #include <QtCore/QAbstractItemModel>
27 
28 #include "kdeui_export.h"
29 
30 class KBreadcrumbSelectionModelPrivate;
31 
109 class KDEUI_EXPORT KBreadcrumbSelectionModel : public QItemSelectionModel
110 {
111  Q_OBJECT
112 public:
113  enum BreadcrumbTarget
114  {
115  MakeBreadcrumbSelectionInOther,
116  MakeBreadcrumbSelectionInSelf
117  };
118 
119  explicit KBreadcrumbSelectionModel(QItemSelectionModel *selectionModel, QObject* parent = 0);
120  KBreadcrumbSelectionModel(QItemSelectionModel *selectionModel, BreadcrumbTarget target, QObject* parent = 0);
121  virtual ~KBreadcrumbSelectionModel();
122 
128  bool isActualSelectionIncluded() const;
129 
133  void setActualSelectionIncluded(bool isActualSelectionIncluded);
134 
138  int breadcrumbLength() const;
139 
146  void setBreadcrumbLength(int breadcrumbLength);
147 
148  /* reimp */ void select(const QModelIndex &index, QItemSelectionModel::SelectionFlags command);
149 
150  /* reimp */ void select(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command);
151 
152 protected:
153  KBreadcrumbSelectionModelPrivate * const d_ptr;
154 private:
155  //@cond PRIVATE
156  Q_DECLARE_PRIVATE(KBreadcrumbSelectionModel)
157  Q_PRIVATE_SLOT( d_func(),void sourceSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected))
158  Q_PRIVATE_SLOT( d_func(),void syncBreadcrumbs())
159  //@cond PRIVATE
160 };
161 
162 
163 #endif
QItemSelectionModel
KBreadcrumbSelectionModel
Selects the parents of selected items to create breadcrumbs.
Definition: kbreadcrumbselectionmodel.h:30
QObject
kdeui_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal