summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qslider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/qslider.cpp')
-rw-r--r--src/gui/widgets/qslider.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gui/widgets/qslider.cpp b/src/gui/widgets/qslider.cpp
index 32b9021..5b9c8a4 100644
--- a/src/gui/widgets/qslider.cpp
+++ b/src/gui/widgets/qslider.cpp
@@ -62,7 +62,6 @@ public:
int tickInterval;
QSlider::TickPosition tickPosition;
int clickOffset;
- int snapBackPosition;
void init();
void resetLayoutItemMargins();
int pixelPosToRangeValue(int pos) const;
@@ -493,7 +492,6 @@ void QSlider::mousePressEvent(QMouseEvent *ev)
setRepeatAction(SliderNoAction);
QRect sr = style()->subControlRect(QStyle::CC_Slider, &opt, QStyle::SC_SliderHandle, this);
d->clickOffset = d->pick(ev->pos() - sr.topLeft());
- d->snapBackPosition = d->position;
update(sr);
setSliderDown(true);
}
@@ -513,14 +511,6 @@ void QSlider::mouseMoveEvent(QMouseEvent *ev)
int newPosition = d->pixelPosToRangeValue(d->pick(ev->pos()) - d->clickOffset);
QStyleOptionSlider opt;
initStyleOption(&opt);
- int m = style()->pixelMetric(QStyle::PM_MaximumDragDistance, &opt, this);
- if (m >= 0) {
- QRect r = rect();
- r.adjust(-m, -m, m, m);
- if (!r.contains(ev->pos())) {
- newPosition = d->snapBackPosition;
- }
- }
setSliderPosition(newPosition);
}
1/+1 * Doc: Fixed qdoc warnings.David Boddie2009-11-051-2/+0 * Fix QDesktopServices::DataLocation on Mac.Morten Johan Sørvig2009-10-302-12/+6 * Fix compile errors on mingw (The version supplied with Qt 4.5)Prasanth Ullattil2009-10-081-0/+5 * QDesktopServices compile fix for Windows CEJoerg Bornemann2009-10-071-0/+4 * Fix QDesktopServices::storageLocation() when registry keys are missingJens Bache-Wiig2009-09-161-22/+44 * Made QDir::tempPath and QDesktopServices::TempLocation consistent in S60Janne Anttila2009-09-251-4/+1 * * QPixmap: Add toWinHICON() & fromWinHICON() methodminiak2009-09-221-33/+1 * Fix focus policy propagation in QCompleter on QWSPaul Olav Tvete2009-09-101-1/+1 * Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-0924-96/+96 |\ | * Update license headers again.Jason McDonald2009-09-0924-96/+96 * | Fixed 'use of function is deprecated' warnings reported by RVCTJanne Anttila2009-09-091-10/+10 |/ * QCompleter could crash when setting the completion prefixThierry Bastian2009-09-021-3/+2 * Update tech preview license header for files that are new in 4.6.Jason McDonald2009-08-311-13/+13 * Merge branch '4.5' into 4.6Thiago Macieira2009-08-3123-299/+299 |\ | * Update tech preview license header.Jason McDonald2009-08-3123-299/+299 | * Update license headers.Jason McDonald2009-08-11