2
* Copyright © 2003-2007 Fredrik Höglund <fredrik@kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
#include "kcmcursortheme.h"
21
#include <KDE/KAboutData>
22
#include <KDE/KPluginFactory>
24
K_PLUGIN_FACTORY(CursorThemeConfigFactory,
25
registerPlugin<CursorThemeConfig>();
27
K_EXPORT_PLUGIN(CursorThemeConfigFactory("kcm_cursortheme"))
30
CursorThemeConfig::CursorThemeConfig(QWidget *parent, const QVariantList &args)
31
: KCModule(CursorThemeConfigFactory::componentData(), parent, args)
33
QLayout *layout = new QVBoxLayout(this);
36
themepage = new ThemePage(this);
37
connect(themepage, SIGNAL(changed(bool)), SLOT(changed()));
38
layout->addWidget(themepage);
40
KAboutData* aboutData = new KAboutData("kcm_cursortheme", 0, ki18n("Cursor Theme"),
41
0, KLocalizedString(), KAboutData::License_GPL, ki18n("(c) 2003-2007 Fredrik Höglund"));
42
aboutData->addAuthor(ki18n("Fredrik Höglund"));
43
setAboutData(aboutData);
46
CursorThemeConfig::~CursorThemeConfig()
51
void CursorThemeConfig::load()
57
void CursorThemeConfig::save()
63
void CursorThemeConfig::defaults()
65
themepage->defaults();
69
#include "kcmcursortheme.moc"