summaryrefslogtreecommitdiffstats
path: root/tests/manual/qpainfo/main.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@jollamobile.com>2013-11-26 14:47:56 -0600
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-10 17:36:05 +0100
commit16a26931d481a157f6ff09a3db1b0c3e33a7366d (patch)
tree2f6e8852da5636c327168b0863ed1c9d6a1d5d48 /tests/manual/qpainfo/main.cpp
parent438a52e1a03932775e8ee88e30384985afca697e (diff)
Allow the platform to specify a press and hold delay.
Press and hold is an interaction available on many platforms, particularly when touch is involved. In Qt Quick this is exposed to the user via MouseArea::onPressAndHold. This value should not be hard-coded, but rather use a platform-specified default. This commit adds the low-level hooks necessary for that to happen. Task-number: QTBUG-24793 Change-Id: I621a8ac9de66b881e34336228056bffbb6306a70 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'tests/manual/qpainfo/main.cpp')
-rw-r--r--tests/manual/qpainfo/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manual/qpainfo/main.cpp b/tests/manual/qpainfo/main.cpp
index 0f5119bab3..257b340467 100644
--- a/tests/manual/qpainfo/main.cpp
+++ b/tests/manual/qpainfo/main.cpp
@@ -180,7 +180,8 @@ int main(int argc, char **argv)
<< " startDragVelocity=" << styleHints->startDragVelocity() << " keyboardInputInterval=" << styleHints->keyboardInputInterval()
<< " keyboardAutoRepeatRate=" << styleHints->keyboardAutoRepeatRate() << " cursorFlashTime=" << styleHints->cursorFlashTime()
<< " showIsFullScreen=" << styleHints->showIsFullScreen() << " passwordMaskDelay=" << styleHints->passwordMaskDelay()
- << " fontSmoothingGamma=" << styleHints->fontSmoothingGamma() << " useRtlExtensions=" << styleHints->useRtlExtensions() << '\n';
+ << " fontSmoothingGamma=" << styleHints->fontSmoothingGamma() << " useRtlExtensions=" << styleHints->useRtlExtensions()
+ << " mousePressAndHoldInterval=" << styleHints->mousePressAndHoldInterval() << '\n';
const QPlatformTheme *platformTheme = QGuiApplicationPrivate::platformTheme();
std::cout << "\nTheme:\n Styles: " << platformTheme->themeHint(QPlatformTheme::StyleNames).toStringList();