diff options
author | John Marino <marino@FreeBSD.org> | 2013-10-02 10:41:05 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2013-10-02 10:41:05 +0000 |
commit | e4798479368c11d16b82888a2221635c9a87be16 (patch) | |
tree | 33ed1463f82b11126316a9305615ad1d3f0e5c92 /german/tipp10/files | |
parent | 179ea862fdad9753ca97ceb673c3d11038b7a0ee (diff) | |
download | ports-e4798479368c11d16b82888a2221635c9a87be16.tar.gz ports-e4798479368c11d16b82888a2221635c9a87be16.zip |
Notes
Diffstat (limited to 'german/tipp10/files')
-rw-r--r-- | german/tipp10/files/patch-widget_tickerboard.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/german/tipp10/files/patch-widget_tickerboard.cpp b/german/tipp10/files/patch-widget_tickerboard.cpp new file mode 100644 index 000000000000..b98acdd95864 --- /dev/null +++ b/german/tipp10/files/patch-widget_tickerboard.cpp @@ -0,0 +1,46 @@ +--- widget/tickerboard.cpp.orig 2013-10-02 09:55:42.000000000 +0000 ++++ widget/tickerboard.cpp +@@ -97,7 +97,7 @@ void TickerBoard::startTicker(bool wasPa + + if (tickerSpeed == 50) { + scrollOffset = 290; +- scroll(-290, 0, QRect::QRect(10, 15, 590, 35)); //contentsRect()); ++ scroll(-290, 0, QRect(10, 15, 590, 35)); //contentsRect()); + } + + startFlag = true; +@@ -153,7 +153,7 @@ void TickerBoard::changeChar() { + scrollOffset = 0; + } else { + scrollOffset = 290; +- scroll(-290, 0, QRect::QRect(10, 15, 590, 35)); //contentsRect()); ++ scroll(-290, 0, QRect(10, 15, 590, 35)); //contentsRect()); + } + splitLesson(); + } +@@ -242,7 +242,7 @@ void TickerBoard::progress() { + + // Move ticker 1 pixel to left + scrollOffset++; +- scroll(-1, 0, QRect::QRect(10, 15, 590, 35)); //contentsRect()); ++ scroll(-1, 0, QRect(10, 15, 590, 35)); //contentsRect()); + + if ((lessonOffset - scrollOffset) <= 30) { + setSpeed(tickerSpeed); +@@ -265,14 +265,14 @@ void TickerBoard::progress() { + // 160 pixels overage (because the user must see at least the next word) + if ((lessonOffset - scrollOffset) > 200) { + scrollOffset += (lessonOffset - scrollOffset) - 200; +- scroll(-((lessonOffset - scrollOffset) - 200), 0, QRect::QRect(10, 15, 590, 35)); //contentsRect()); ++ scroll(-((lessonOffset - scrollOffset) - 200), 0, QRect(10, 15, 590, 35)); //contentsRect()); + } + } else { + // If the user types faster than the ticker, move ticker faster after + // 160 pixels overage (because the user must see at least the next word) + if ((lessonOffset - scrollOffset) > 280) { + scrollOffset += 570; +- scroll(-570, 0, QRect::QRect(10, 15, 590, 35)); //contentsRect()); ++ scroll(-570, 0, QRect(10, 15, 590, 35)); //contentsRect()); + } + + } |