korganizer
Go to the documentation of this file.
26 #include <KCalUtils/Stringify>
30 #include <KPushButton>
31 #include <KStandardGuiItem>
34 #include <QHBoxLayout>
41 setCaption( i18n(
"Set Your Status" ) );
43 QBoxLayout *topLayout =
new QVBoxLayout(
this );
44 topLayout->setSpacing( spacingHint() );
45 topLayout->setMargin( marginHint() );
47 QBoxLayout *statusLayout =
new QHBoxLayout();
48 topLayout->addItem( statusLayout );
50 QLabel *text =
new QLabel( i18n(
"Set your status" ),
this );
51 statusLayout->addWidget( text );
53 mStatus =
new KComboBox(
this );
54 mStatus->setEditable(
false );
55 mStatus->addItems( KCalUtils::Stringify::attendeeStatusList() );
56 statusLayout->addWidget( mStatus );
58 QBoxLayout *buttonLayout =
new QHBoxLayout();
59 topLayout->addItem( buttonLayout );
61 QPushButton *ok =
new KPushButton( KStandardGuiItem::ok(),
this );
62 connect ( ok, SIGNAL(clicked()),
this, SLOT(accept()) );
63 buttonLayout->addWidget( ok );
65 QPushButton *cancel =
new KPushButton( KStandardGuiItem::cancel(),
this );
66 connect ( cancel, SIGNAL(clicked()),
this, SLOT(reject()) );
67 buttonLayout->addWidget( cancel );
76 return KCalCore::Attendee::PartStat( mStatus->currentIndex() ) ;
79 #include "statusdialog.moc"
KCalCore::Attendee::PartStat status()
StatusDialog(QWidget *parent=0)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.