slider: return cursor if wrapped
This commit is contained in:
@@ -97,7 +97,10 @@ SliderLadder::SliderLadder(double drag_multiplier, int nb_outer_values, QString
|
||||
SliderLadder::~SliderLadder()
|
||||
{
|
||||
if (UsingLadders()) {
|
||||
|
||||
if (wrap_count_ != 0) {
|
||||
// If wrapped, restore cursor to ladder
|
||||
QCursor::setPos(pos() + rect().center());
|
||||
}
|
||||
} else {
|
||||
#if defined(Q_OS_MAC)
|
||||
CGAssociateMouseAndMouseCursorPosition(true);
|
||||
|
||||
Reference in New Issue
Block a user