summaryrefslogtreecommitdiffstats
path: root/examples/webkit
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-11-10 18:15:09 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-11-10 18:15:09 (GMT)
commitcd4cab01810b817cdf8eb80ab9fc3174a798dd10 (patch)
treea849171a850e91851e871544d1e49a56484d37c7 /examples/webkit
parentd895af5713a7b7ee011b2b29cb5844fbf964df5e (diff)
parent7005ca9f0f6b1e535ad2b26d3fcf46dffacc3f13 (diff)
downloadQt-cd4cab01810b817cdf8eb80ab9fc3174a798dd10.zip
Qt-cd4cab01810b817cdf8eb80ab9fc3174a798dd10.tar.gz
Qt-cd4cab01810b817cdf8eb80ab9fc3174a798dd10.tar.bz2
Merge branch '4.6'
Conflicts: src/gui/styles/qcommonstyle.cpp tools/assistant/lib/lib.pro tools/assistant/lib/qhelp_global.cpp tools/assistant/tools/assistant/assistant.qch tools/assistant/tools/assistant/mainwindow.cpp
Diffstat (limited to 'examples/webkit')
-rw-r--r--examples/webkit/fancybrowser/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/webkit/fancybrowser/mainwindow.cpp b/examples/webkit/fancybrowser/mainwindow.cpp
index 06af62e..234afba 100644
--- a/examples/webkit/fancybrowser/mainwindow.cpp
+++ b/examples/webkit/fancybrowser/mainwindow.cpp
@@ -174,12 +174,11 @@ void MainWindow::highlightAllLinks()
//! [8]
void MainWindow::rotateImages(bool toggle)
{
- QString code = "$('img').each( function () { $(this).css('-webkit-transition', '-webkit-transform 2s') } )";
- view->page()->mainFrame()->evaluateJavaScript(code);
+ QString code;
if (toggle)
- code = "$('img').each( function () { $(this).css('-webkit-transform', 'rotate(180deg)') } )";
+ code = "$('img').each( function () { $(this).css('-webkit-transition', '-webkit-transform 2s'); $(this).css('-webkit-transform', 'rotate(180deg)') } )";
else
- code = "$('img').each( function () { $(this).css('-webkit-transform', 'rotate(0deg)') } )";
+ code = "$('img').each( function () { $(this).css('-webkit-transition', '-webkit-transform 2s'); $(this).css('-webkit-transform', 'rotate(0deg)') } )";
view->page()->mainFrame()->evaluateJavaScript(code);
}
//! [8]