Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40841

No replacement for QWS_DBLCLICK_DISTANCE

    XMLWordPrintable

Details

    Description

      When using QWS it was possible to adjust the distance for detecting double clicks using env. var QWS_DBLCLICK_DISTANCE, which can be very useful on embedded devices.

      Proposed patch:

      diff --git a/src/gui/kernel/qplatformtheme.cpp b/src/gui/kernel/qplatformtheme.cpp
      index d3d3d3c..bfad486 100644
      --- a/src/gui/kernel/qplatformtheme.cpp
      +++ b/src/gui/kernel/qplatformtheme.cpp
      @@ -508,6 +508,9 @@ QVariant QPlatformTheme::defaultThemeHint(ThemeHint hint)
           case MousePressAndHoldInterval:
               return QVariant(800);
           case MouseDoubleClickDistance:
      +        bool ok = false;
      +        int dist = QString(qgetenv("QT_DBL_CLICK_DIST")).toInt(&ok);
      +        if (ok) return QVariant(dist);
               return QVariant(5);
           }
           return QVariant();
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            paeglis Gatis Paeglis
            pjohnsen Pelle Johnsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes