diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/lib/slider.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/slider.cpp')
-rw-r--r-- | kalarm/lib/slider.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kalarm/lib/slider.cpp b/kalarm/lib/slider.cpp index afe7d679c..0b30f744a 100644 --- a/kalarm/lib/slider.cpp +++ b/kalarm/lib/slider.cpp @@ -21,18 +21,18 @@ #include "slider.moc" -Slider::Slider(TQWidget* parent, const char* name) - : TQSlider(parent, name), +Slider::Slider(TQWidget* tqparent, const char* name) + : TQSlider(tqparent, name), mReadOnly(false) { } -Slider::Slider(Orientation o, TQWidget* parent, const char* name) - : TQSlider(o, parent, name), +Slider::Slider(Qt::Orientation o, TQWidget* tqparent, const char* name) + : TQSlider(o, tqparent, name), mReadOnly(false) { } -Slider::Slider(int minval, int maxval, int pageStep, int value, Orientation o, TQWidget* parent, const char* name) - : TQSlider(minval, maxval, pageStep, value, o, parent, name), +Slider::Slider(int minval, int maxval, int pageStep, int value, Qt::Orientation o, TQWidget* tqparent, const char* name) + : TQSlider(minval, maxval, pageStep, value, o, tqparent, name), mReadOnly(false) { } @@ -54,7 +54,7 @@ void Slider::mousePressEvent(TQMouseEvent* e) if (mReadOnly) { // Swallow up the event if it's the left button - if (e->button() == Qt::LeftButton) + if (e->button() == TQt::LeftButton) return; } TQSlider::mousePressEvent(e); @@ -74,7 +74,7 @@ void Slider::mouseMoveEvent(TQMouseEvent* e) void Slider::keyPressEvent(TQKeyEvent* e) { - if (!mReadOnly || e->key() == Qt::Key_Escape) + if (!mReadOnly || e->key() == TQt::Key_Escape) TQSlider::keyPressEvent(e); } |