Commit 718b624f authored by eric@webkit.org's avatar eric@webkit.org

2010-01-29 Andreas Kling <andreas.kling@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Disable the QtLauncher statusbar on Maemo

        https://bugs.webkit.org/show_bug.cgi?id=34330

        * QtLauncher/main.cpp:
        (LauncherWindow::showLinkHover):
        (LauncherWindow::selectElements):

git-svn-id: svn://svn.chromium.org/blink/trunk@54066 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3aaf0268
2010-01-29 Andreas Kling <andreas.kling@nokia.com>
Reviewed by Kenneth Rohde Christiansen.
[Qt] Disable the QtLauncher statusbar on Maemo
https://bugs.webkit.org/show_bug.cgi?id=34330
* QtLauncher/main.cpp:
(LauncherWindow::showLinkHover):
(LauncherWindow::selectElements):
2010-01-29 Andreas Kling <andreas.kling@nokia.com> 2010-01-29 Andreas Kling <andreas.kling@nokia.com>
Reviewed by Kenneth Rohde Christiansen. Reviewed by Kenneth Rohde Christiansen.
......
...@@ -264,7 +264,9 @@ protected slots: ...@@ -264,7 +264,9 @@ protected slots:
void showLinkHover(const QString &link, const QString &toolTip) void showLinkHover(const QString &link, const QString &toolTip)
{ {
#ifndef Q_WS_MAEMO_5
statusBar()->showMessage(link); statusBar()->showMessage(link);
#endif
#ifndef QT_NO_TOOLTIP #ifndef QT_NO_TOOLTIP
if (!toolTip.isEmpty()) if (!toolTip.isEmpty())
QToolTip::showText(QCursor::pos(), toolTip); QToolTip::showText(QCursor::pos(), toolTip);
...@@ -361,7 +363,9 @@ protected slots: ...@@ -361,7 +363,9 @@ protected slots:
QWebElementCollection result = page()->mainFrame()->findAllElements(str); QWebElementCollection result = page()->mainFrame()->findAllElements(str);
foreach (QWebElement e, result) foreach (QWebElement e, result)
e.setStyleProperty("background-color", "yellow"); e.setStyleProperty("background-color", "yellow");
#ifndef Q_WS_MAEMO_5
statusBar()->showMessage(QString("%1 element(s) selected").arg(result.count()), 5000); statusBar()->showMessage(QString("%1 element(s) selected").arg(result.count()), 5000);
#endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment