Changeset View
Changeset View
Standalone View
Standalone View
kcms/hardware/joystick/joystick.cpp
Show All 37 Lines | |||||
38 | 38 | | |||
39 | K_PLUGIN_FACTORY(JoystickFactory, registerPlugin<Joystick>();) | 39 | K_PLUGIN_FACTORY(JoystickFactory, registerPlugin<Joystick>();) | ||
40 | 40 | | |||
41 | //--------------------------------------------------------------------------------------------- | 41 | //--------------------------------------------------------------------------------------------- | ||
42 | 42 | | |||
43 | Joystick::Joystick(QWidget *parent, const QVariantList &) | 43 | Joystick::Joystick(QWidget *parent, const QVariantList &) | ||
44 | : KCModule(parent) | 44 | : KCModule(parent) | ||
45 | { | 45 | { | ||
46 | setButtons(Help); | 46 | setButtons(Help | Default); | ||
47 | setAboutData(new KAboutData(QStringLiteral("kcmjoystick"), i18n("KDE Joystick Control Module"), QStringLiteral("1.0"), | 47 | setAboutData(new KAboutData(QStringLiteral("kcmjoystick"), i18n("KDE Joystick Control Module"), QStringLiteral("1.0"), | ||
48 | i18n("KDE System Settings Module to test Joysticks"), | 48 | i18n("KDE System Settings Module to test Joysticks"), | ||
49 | KAboutLicense::GPL, i18n("(c) 2004, Martin Koller"), | 49 | KAboutLicense::GPL, i18n("(c) 2004, Martin Koller"), | ||
50 | QString(), QStringLiteral("kollix@aon.at"))); | 50 | QString(), QStringLiteral("kollix@aon.at"))); | ||
51 | 51 | | |||
52 | setQuickHelp( i18n("<h1>Joystick</h1>" | 52 | setQuickHelp( i18n("<h1>Joystick</h1>" | ||
53 | "This module helps to check if your joystick is working correctly.<br />" | 53 | "This module helps to check if your joystick is working correctly.<br />" | ||
54 | "If it delivers wrong values for the axes, you can try to solve this with " | 54 | "If it delivers wrong values for the axes, you can try to solve this with " | ||
Show All 28 Lines | 82 | { | |||
83 | joyWidget->init(); | 83 | joyWidget->init(); | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | //--------------------------------------------------------------------------------------------- | 86 | //--------------------------------------------------------------------------------------------- | ||
87 | 87 | | |||
88 | void Joystick::defaults() | 88 | void Joystick::defaults() | ||
89 | { | 89 | { | ||
90 | joyWidget->resetCalibration(); | 90 | joyWidget->resetCalibration(); | ||
91 | | ||||
92 | emit changed(true); | | |||
93 | } | 91 | } | ||
94 | 92 | | |||
95 | //--------------------------------------------------------------------------------------------- | 93 | //--------------------------------------------------------------------------------------------- | ||
96 | 94 | | |||
97 | #include "joystick.moc" | 95 | #include "joystick.moc" |