From: Jean-Baptiste Mardelle Date: Sun, 10 Jan 2010 14:55:43 +0000 (+0000) Subject: Fix titler sliders on dual screen config X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6b88463da1e36b79c6009a5cba68ca136d1f71ad;p=kdenlive Fix titler sliders on dual screen config svn path=/trunk/kdenlive/; revision=4221 --- diff --git a/src/KoSliderCombo.cpp b/src/KoSliderCombo.cpp index 47a74736..538c71d3 100644 --- a/src/KoSliderCombo.cpp +++ b/src/KoSliderCombo.cpp @@ -176,7 +176,7 @@ void KoSliderCombo::KoSliderComboPrivate::showPopup() QRect popupRect(thePublic->mapToGlobal(QPoint(arrowPos - hdlPos - slider->x(), thePublic->size().height())), popSize); // Make sure the popup is not drawn outside the screen area - QRect screenRect = QApplication::desktop()->availableGeometry(container); + QRect screenRect = QApplication::desktop()->availableGeometry(thePublic); if (popupRect.right() > screenRect.right()) popupRect.translate(screenRect.right() - popupRect.right(), 0); if (popupRect.left() < screenRect.left())