OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 2008,2009 Nokia Corporation and/or its subsidiary(-ies) | 2 Copyright (C) 2008,2009 Nokia Corporation and/or its subsidiary(-ies) |
3 Copyright (C) 2007 Staikos Computing Services Inc. | 3 Copyright (C) 2007 Staikos Computing Services Inc. |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 */ | 922 */ |
923 void QWebFrame::setScrollBarValue(Qt::Orientation orientation, int value) | 923 void QWebFrame::setScrollBarValue(Qt::Orientation orientation, int value) |
924 { | 924 { |
925 Scrollbar *sb; | 925 Scrollbar *sb; |
926 sb = (orientation == Qt::Horizontal) ? d->horizontalScrollBar() : d->vertica
lScrollBar(); | 926 sb = (orientation == Qt::Horizontal) ? d->horizontalScrollBar() : d->vertica
lScrollBar(); |
927 if (sb) { | 927 if (sb) { |
928 if (value < 0) | 928 if (value < 0) |
929 value = 0; | 929 value = 0; |
930 else if (value > scrollBarMaximum(orientation)) | 930 else if (value > scrollBarMaximum(orientation)) |
931 value = scrollBarMaximum(orientation); | 931 value = scrollBarMaximum(orientation); |
932 sb->setValue(value); | 932 sb->setValue(value, Scrollbar::NotFromScrollAnimator); |
933 } | 933 } |
934 } | 934 } |
935 | 935 |
936 /*! | 936 /*! |
937 Returns the current value for the scrollbar with orientation \a orientation, o
r 0 | 937 Returns the current value for the scrollbar with orientation \a orientation, o
r 0 |
938 if no scrollbar is found for \a orientation. | 938 if no scrollbar is found for \a orientation. |
939 | 939 |
940 \sa scrollBarMinimum(), scrollBarMaximum() | 940 \sa scrollBarMinimum(), scrollBarMaximum() |
941 */ | 941 */ |
942 int QWebFrame::scrollBarValue(Qt::Orientation orientation) const | 942 int QWebFrame::scrollBarValue(Qt::Orientation orientation) const |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1787 | 1787 |
1788 /*! | 1788 /*! |
1789 Returns the frame the hit test was executed in. | 1789 Returns the frame the hit test was executed in. |
1790 */ | 1790 */ |
1791 QWebFrame *QWebHitTestResult::frame() const | 1791 QWebFrame *QWebHitTestResult::frame() const |
1792 { | 1792 { |
1793 if (!d) | 1793 if (!d) |
1794 return 0; | 1794 return 0; |
1795 return d->frame; | 1795 return d->frame; |
1796 } | 1796 } |
OLD | NEW |