akonadi
19#include "agenttypedialog.h"
20#include "agentfilterproxymodel.h"
26#include <kfilterproxysearchline.h>
31class AgentTypeDialog::Private
46void AgentTypeDialog::Private::writeConfig()
48 KConfigGroup group(KGlobal::config(),
"AgentTypeDialog");
49 group.writeEntry(
"Size", q->size());
52void AgentTypeDialog::Private::readConfig()
54 KConfigGroup group(KGlobal::config(),
"AgentTypeDialog");
55 const QSize sizeDialog = group.readEntry(
"Size", QSize(460, 320));
56 if (sizeDialog.isValid()) {
57 q->resize(sizeDialog);
63 , d(new Private(this))
65 setButtons(Ok | Cancel);
66 QVBoxLayout *layout =
new QVBoxLayout(mainWidget());
70 connect(d->Widget, SIGNAL(activated()),
this, SLOT(accept()));
72 KFilterProxySearchLine *searchLine =
new KFilterProxySearchLine(mainWidget());
73 layout->addWidget(searchLine);
74 searchLine->setProxy(d->Widget->agentFilterProxyModel());
76 layout->addWidget(d->Widget);
78 connect(
this, SIGNAL(okClicked()),
this, SLOT(accept()));
82 searchLine->lineEdit()->setFocus();
91void AgentTypeDialog::done(
int result)
93 if (result == Accepted) {
94 d->agentType = d->Widget->currentAgentType();
99 KDialog::done(result);
109 return d->Widget->agentFilterProxyModel();
A proxy model for filtering AgentType or AgentInstance.
A dialog to select an available agent type.
AgentFilterProxyModel * agentFilterProxyModel() const
Returns the agent filter proxy model that can be used to filter the agent types that shall be shown i...
AgentType agentType() const
Returns the agent type that was selected by the user, or an empty agent type object if no agent type ...
AgentTypeDialog(QWidget *parent=0)
Creates a new agent type dialog.
~AgentTypeDialog()
Destroys the agent type dialog.
A representation of an agent type.
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.