diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /ksirc/KSTicker/speeddialog.cpp | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/KSTicker/speeddialog.cpp')
-rw-r--r-- | ksirc/KSTicker/speeddialog.cpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/ksirc/KSTicker/speeddialog.cpp b/ksirc/KSTicker/speeddialog.cpp new file mode 100644 index 00000000..eb1ff462 --- /dev/null +++ b/ksirc/KSTicker/speeddialog.cpp @@ -0,0 +1,61 @@ +/********************************************************************** + + --- Qt Architect generated file --- + + File: speeddialog.cpp + Last generated: Sun Dec 21 08:52:31 1997 + + *********************************************************************/ + +#include <klocale.h> + +#include "speeddialog.h" + +SpeedDialog::SpeedDialog +( + int tick, + int step, + QWidget* parent, + const char* name +) + : speeddialogData( parent, name ) +{ + setCaption(i18n( "Speed Setup") ); + connect(sliderTick, SIGNAL(valueChanged(int)), + lcdTick, SLOT(display(int))); + connect(sliderStep, SIGNAL(valueChanged(int)), + lcdStep, SLOT(display(int))); + lcdTick->display(tick); + sliderTick->setValue(tick); + lcdStep->display(step); + sliderStep->setValue(step); +} + + +SpeedDialog::~SpeedDialog() +{ +} + + +void SpeedDialog::updateTick(int tick) +{ + emit stateChange(tick, sliderStep->value()); +} + +void SpeedDialog::updateStep(int step) +{ + emit stateChange(sliderTick->value(), step); +} + +void SpeedDialog::terminate() +{ + delete this; +} + +void SpeedDialog::setLimit(int tmin, int tmax, int smin, int smax) +{ + sliderTick->setRange(tmin, tmax); + sliderStep->setRange(smin, smax); +} + +#include "speeddialog.moc" |