akonadi
19 #include "agenttypedialog.h"
20 #include "agentfilterproxymodel.h"
23 #include <QVBoxLayout>
25 #include <kdeversion.h>
27 #include <kfilterproxysearchline.h>
28 #include <klineedit.h>
30 using namespace Akonadi;
33 class AgentTypeDialog::Private
41 : KDialog( parent ), d( new Private )
43 setButtons( Ok | Cancel );
44 QVBoxLayout *layout =
new QVBoxLayout( mainWidget() );
45 layout->setMargin( 0 );
48 connect( d->Widget, SIGNAL(activated()),
this, SLOT(accept()) );
50 KFilterProxySearchLine* searchLine =
new KFilterProxySearchLine( mainWidget() );
51 layout->addWidget( searchLine );
52 searchLine->setProxy( d->Widget->agentFilterProxyModel() );
54 layout->addWidget( d->Widget );
56 connect(
this, SIGNAL(okClicked()),
this, SLOT(accept()) );
60 searchLine->lineEdit()->setFocus();
68 void AgentTypeDialog::done(
int result )
70 if ( result == Accepted ) {
71 d->agentType = d->Widget->currentAgentType();
76 KDialog::done( result );
86 return d->Widget->agentFilterProxyModel();
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:31 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.