Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/kcm_componentchooser.cpp
Show All 31 Lines | 31 | KCMComponentChooser::KCMComponentChooser(QWidget *parent, const QVariantList &): | |||
---|---|---|---|---|---|
32 | KCModule(parent) { | 32 | KCModule(parent) { | ||
33 | 33 | | |||
34 | QVBoxLayout *lay = new QVBoxLayout(this); | 34 | QVBoxLayout *lay = new QVBoxLayout(this); | ||
35 | lay->setContentsMargins(0, 0, 0, 0); | 35 | lay->setContentsMargins(0, 0, 0, 0); | ||
36 | 36 | | |||
37 | m_chooser=new ComponentChooser(this); | 37 | m_chooser=new ComponentChooser(this); | ||
38 | lay->addWidget(m_chooser); | 38 | lay->addWidget(m_chooser); | ||
39 | connect(m_chooser,SIGNAL(changed(bool)),this,SIGNAL(changed(bool))); | 39 | connect(m_chooser,SIGNAL(changed(bool)),this,SIGNAL(changed(bool))); | ||
40 | setButtons( Default|Apply|Help ); | 40 | connect(m_chooser, &ComponentChooser::defaulted, this, &KCModule::defaulted); | ||
41 | 41 | | |||
42 | KAboutData *about = | 42 | KAboutData *about = | ||
43 | new KAboutData( QStringLiteral("kcmcomponentchooser"), i18n("Component Chooser"), QStringLiteral("1.0"), | 43 | new KAboutData( QStringLiteral("kcmcomponentchooser"), i18n("Component Chooser"), QStringLiteral("1.0"), | ||
44 | QString(), KAboutLicense::GPL, | 44 | QString(), KAboutLicense::GPL, | ||
45 | i18n("(c), 2002 Joseph Wenninger")); | 45 | i18n("(c), 2002 Joseph Wenninger")); | ||
46 | 46 | | |||
47 | about->addAuthor(i18n("Joseph Wenninger"), QString() , QStringLiteral("jowenn@kde.org")); | 47 | about->addAuthor(i18n("Joseph Wenninger"), QString() , QStringLiteral("jowenn@kde.org")); | ||
48 | setAboutData( about ); | 48 | setAboutData( about ); | ||
Show All 15 Lines |