diff --git a/phonon/kcm/main.cpp b/phonon/kcm/main.cpp index 9906739776..139c6c6ee2 100644 --- a/phonon/kcm/main.cpp +++ b/phonon/kcm/main.cpp @@ -1,79 +1,80 @@ /* This file is part of the KDE project Copyright (C) 2006-2007 Matthias Kretz This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) version 3. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "main.h" #include #include #include #include #include #include #include "outputdevicechoice.h" #include "backendselection.h" K_PLUGIN_FACTORY(PhononKcmFactory, registerPlugin();) K_EXPORT_PLUGIN(PhononKcmFactory("kcm_phonon")) PhononKcm::PhononKcm(QWidget *parent, const QVariantList &args) : KCModule(PhononKcmFactory::componentData(), parent, args) { KAboutData *about = new KAboutData( "kcm_phonon", 0, ki18n("Phonon Configuration Module"), KDE_VERSION_STRING, KLocalizedString(), KAboutData::License_GPL, ki18n("Copyright 2006 Matthias Kretz")); about->addAuthor(ki18n("Matthias Kretz"), KLocalizedString(), "kretz@kde.org"); setAboutData(about); setLayout(new QHBoxLayout); layout()->setMargin(0); layout()->setSpacing(0); KTabWidget *tabs = new KTabWidget(this); layout()->addWidget(tabs); m_outputDeviceWidget = new OutputDeviceChoice; tabs->addTab(m_outputDeviceWidget, i18n("Device Preference")); m_backendSelection = new BackendSelection; tabs->addTab(m_backendSelection, i18n("Backend")); load(); connect(m_backendSelection, SIGNAL(changed()), SLOT(changed())); connect(m_outputDeviceWidget, SIGNAL(changed()), SLOT(changed())); + setButtons( KCModule::Default|KCModule::Apply ); } void PhononKcm::load() { m_outputDeviceWidget->load(); m_backendSelection->load(); } void PhononKcm::save() { m_outputDeviceWidget->save(); m_backendSelection->save(); } void PhononKcm::defaults() { m_outputDeviceWidget->defaults(); m_backendSelection->defaults(); } #include "main.moc" // vim: ts=4