summaryrefslogtreecommitdiffstats
path: root/examples/webkit/fancybrowser/mainwindow.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-09 18:32:04 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-09 18:32:04 (GMT)
commit81f3b28f2f82b15f9d255ec38abdc5f749b8809c (patch)
tree7e41a16587d903498fbb1ca71cd286a9ba156241 /examples/webkit/fancybrowser/mainwindow.cpp
parentf656909791819b3f033f9ec1bd0de524b92919e2 (diff)
parentb770abdd564f28a8d9dde816f72f73e6b15984af (diff)
downloadQt-81f3b28f2f82b15f9d255ec38abdc5f749b8809c.zip
Qt-81f3b28f2f82b15f9d255ec38abdc5f749b8809c.tar.gz
Qt-81f3b28f2f82b15f9d255ec38abdc5f749b8809c.tar.bz2
Merge remote branch 'origin/4.6' into 4.6-platform
Diffstat (limited to 'examples/webkit/fancybrowser/mainwindow.cpp')
-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 a3293b8..11fac91 100644
--- a/examples/webkit/fancybrowser/mainwindow.cpp
+++ b/examples/webkit/fancybrowser/mainwindow.cpp
@@ -150,12 +150,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]