Skip to content

Commit 0f61299

Browse files
committed
2010-04-28 İsmail Dönmez <ismail@namtrac.org>
Reviewed by Simon Hausmann. Fix compilation with QT_NO_CURSOR defined. * platform/qt/QWebPageClient.h: (QWebPageClient::resetCursor): (QWebPageClient::setCursor): Canonical link: https://commits.webkit.org/49705@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@58436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 879b0b9 commit 0f61299

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

WebCore/ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2010-04-28 İsmail Dönmez <ismail@namtrac.org>
2+
3+
Reviewed by Simon Hausmann.
4+
5+
Fix compilation with QT_NO_CURSOR defined.
6+
7+
* platform/qt/QWebPageClient.h:
8+
(QWebPageClient::resetCursor):
9+
(QWebPageClient::setCursor):
10+
111
2010-04-28 Abhishek Arya <inferno@chromium.org>
212

313
Reviewed by Alexey Proskuryakov.

WebCore/platform/qt/QWebPageClient.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,23 @@ class QWebPageClient {
6161
#if QT_VERSION >= 0x040600
6262
virtual void setInputMethodHint(Qt::InputMethodHint hint, bool enable) = 0;
6363
#endif
64+
65+
#ifndef QT_NO_CURSOR
6466
inline void resetCursor()
6567
{
66-
#ifndef QT_NO_CURSOR
6768
if (!cursor().bitmap() && cursor().shape() == m_lastCursor.shape())
6869
return;
6970
updateCursor(m_lastCursor);
70-
#endif
7171
}
7272

7373
inline void setCursor(const QCursor& cursor)
7474
{
75-
#ifndef QT_NO_CURSOR
7675
m_lastCursor = cursor;
7776
if (!cursor.bitmap() && cursor.shape() == this->cursor().shape())
7877
return;
7978
updateCursor(cursor);
80-
#endif
8179
}
80+
#endif
8281

8382
virtual QPalette palette() const = 0;
8483
virtual int screenNumber() const = 0;

0 commit comments

Comments
 (0)