libkdepim
completionorderwidget.cpp
Go to the documentation of this file.
85 group.writeEntry( QString::fromLatin1("SelectedCompletionWeight%1" ).arg( mLdapClient->clientNumber() ),
104 SimpleCompletionItem( CompletionOrderWidget* editor, const QString& label, const QString& identifier, int weight )
193 QDBusConnection::sessionBus().registerObject( QLatin1String("/"), this, QDBusConnection::ExportAdaptors );
261 SimpleCompletionItem *item = new SimpleCompletionItem( this, i18n( "Recent Addresses" ), QLatin1String("Recent Addresses"), 10 );
268 const Akonadi::Collection collection = index.data( Akonadi::EntityTreeModel::CollectionRole ).value<Akonadi::Collection>();
272 SimpleCompletionItem *item = new SimpleCompletionItem( this, index.data().toString(), QString::number( collection.id() ), 60 );
300 Akonadi::CollectionFilterProxyModel *mimeTypeProxy = new Akonadi::CollectionFilterProxyModel( this );
359 mListView->setCurrentItem( above, 0, QItemSelectionModel::Select | QItemSelectionModel::Current );
372 mListView->setCurrentItem( below, 0, QItemSelectionModel::Select | QItemSelectionModel::Current );
void setAutoRelaySignals(bool enable)
virtual int rowCount(const QModelIndex &parent) const =0
void loadCompletionItems()
Definition: completionorderwidget.cpp:278
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
void setAlternatingRowColors(bool enable)
static void swapItems(CompletionViewItem *one, CompletionViewItem *other)
Definition: completionorderwidget.cpp:339
Definition: ldapclientsearch.h:68
void completionOrderChanged()
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
void setLdapClientSearch(KLDAP::LdapClientSearch *ldapSearch)
Definition: completionorderwidget.cpp:319
T value() const
QTreeWidgetItem * itemBelow(const QTreeWidgetItem *item) const
QDBusConnection sessionBus()
virtual void setCompletionWeight(int weight)=0
CompletionOrderWidget(QWidget *parent=0)
Definition: completionorderwidget.cpp:186
QList< LdapClient * > clients() const
Returns the list of configured LDAP clients.
Definition: ldapclientsearch.cpp:137
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString number(int n, int base)
void setLayout(QLayout *layout)
void setObjectName(const QString &name)
~CompletionOrderWidget()
Definition: completionorderwidget.cpp:235
void setAllColumnsShowFocus(bool enable)
QTreeWidgetItem * currentItem() const
void setIndentation(int i)
void setColumnCount(int columns)
void sortItems(int column, Qt::SortOrder order)
QTreeWidgetItem * itemAbove(const QTreeWidgetItem *item) const
void setCurrentItem(QTreeWidgetItem *item)
void setSortingEnabled(bool enable)
virtual int completionWeight() const =0
QVariant data(int role) const
void setHeaderHidden(bool hide)
Definition: completionorderwidget.h:54
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
QString fromLatin1(const char *str, int size)
QTreeWidgetItem * topLevelItem(int index) const
topLevelItemCount
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString toString() const
CompletionOrderEditorAdaptor(QObject *parent)
Definition: completionorderwidget.cpp:50
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.