diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-10-02 11:54:29 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-10-02 11:59:40 (GMT) |
commit | 1f4e378ca0f9c63bb99a92f3e98b104a0baa408a (patch) | |
tree | f95d655380713c504958ed9bdf5e41196d185f95 /src/gui/widgets/qtextedit.cpp | |
parent | fb85af439715ff5ec141473b5c1d8f9744aca19d (diff) | |
download | Qt-1f4e378ca0f9c63bb99a92f3e98b104a0baa408a.zip Qt-1f4e378ca0f9c63bb99a92f3e98b104a0baa408a.tar.gz Qt-1f4e378ca0f9c63bb99a92f3e98b104a0baa408a.tar.bz2 |
Mac: update/small fix to 45f095b8970dc3c1b6f6e97fa2323654ba848288
It turns out that we need to let singleStep keep its value
in qtextedit so that pushing the up/down buttons on the slider
works as they should. Moreover, overriding the behaviour in
abstract slider also makes QGraphicsView work out of the box.
Also added in the test fix suggested by Olivier.
Diffstat (limited to 'src/gui/widgets/qtextedit.cpp')
-rw-r--r-- | src/gui/widgets/qtextedit.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gui/widgets/qtextedit.cpp b/src/gui/widgets/qtextedit.cpp index 3fe9bb4..dc78fd5 100644 --- a/src/gui/widgets/qtextedit.cpp +++ b/src/gui/widgets/qtextedit.cpp @@ -174,13 +174,8 @@ void QTextEditPrivate::init(const QString &html) if (!html.isEmpty()) control->setHtml(html); -#ifdef Q_OS_MAC - hbar->setSingleStep(1); - vbar->setSingleStep(1); -#else hbar->setSingleStep(20); vbar->setSingleStep(20); -#endif viewport->setBackgroundRole(QPalette::Base); q->setAcceptDrops(true); |