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

akonadi_next

  • sources
  • kde-4.12
  • kdepim
  • akonadi_next
amazingcompleter.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef AMAZING_COMPLETER_H
21 #define AMAZING_COMPLETER_H
22 
23 #include <QObject>
24 #include <QWidget>
25 #include <QAbstractItemModel>
26 
27 #include "akonadi_next_export.h"
28 
29 class QAbstractItemView;
30 
31 
32 namespace Akonadi
33 {
34 
35 class AmazingCompleterPrivate;
36 
37 class AKONADI_NEXT_EXPORT AmazingCompleter : public QObject
38 {
39  Q_OBJECT
40 public:
41 
42  enum ViewHandler { Popup, NoPopup };
43 
44  explicit AmazingCompleter(/* QAbstractItemModel *model, */ QObject *parent = 0);
45  ~AmazingCompleter();
46 
47  void setWidget(QWidget *widget);
48 
49  void setView(QAbstractItemView *view, ViewHandler = Popup);
50 
51  void setModel(QAbstractItemModel *model);
52 
56  void setCompletionRole(int role);
57 
61  void setMatchingRole(int role);
62 
63  void setMinimumLength(int length);
64 
65 public slots:
66  void setCompletionPrefixString(const QString &matchData);
67  void setCompletionPrefix(const QVariant &matchData);
68 
69  void sourceRowsInserted(const QModelIndex &parent, int start, int end);
70 
71 protected:
72  virtual void connectModelToView(QAbstractItemModel *model, QAbstractItemView *view);
73 
74 private:
75  Q_DECLARE_PRIVATE(AmazingCompleter)
76 
77  AmazingCompleterPrivate *d_ptr;
78 
79 };
80 
81 }
82 
83 #endif
Akonadi::AmazingCompleter
Definition: amazingcompleter.h:37
QObject
akonadi_next_export.h
AKONADI_NEXT_EXPORT
#define AKONADI_NEXT_EXPORT
Definition: akonadi_next_export.h:35
Akonadi::AmazingCompleter::ViewHandler
ViewHandler
Definition: amazingcompleter.h:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi_next

Skip menu "akonadi_next"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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