Changeset 64965 in webkit
- Timestamp:
- Aug 8, 2010 10:47:58 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r64964 r64965 1 2010-08-08 Ariya Hidayat <ariya@sencha.com> 2 3 Reviewed by Antonio Gomes. 4 5 Inconsistent Qt version checks 6 https://bugs.webkit.org/show_bug.cgi?id=43695 7 8 Use QT_VERSION_CHECK macro instead of encoded hex. 9 10 * platform/graphics/qt/ImageBufferQt.cpp: 11 (WebCore::getImageData): 12 * platform/network/qt/NetworkStateNotifierPrivate.h: 13 * platform/network/qt/NetworkStateNotifierQt.cpp: 14 * platform/network/qt/QNetworkReplyHandler.cpp: 15 (WebCore::QNetworkReplyHandler::QNetworkReplyHandler): 16 (WebCore::QNetworkReplyHandler::start): 17 * platform/qt/RenderThemeQt.cpp: 18 (WebCore::RenderThemeQt::paintMediaSliderTrack): 19 1 20 2010-08-08 Csaba Osztrogonác <ossy@webkit.org> 2 21 -
trunk/WebCore/platform/graphics/qt/ImageBufferQt.cpp
r64202 r64965 182 182 183 183 const int bytesPerLine = image.bytesPerLine(); 184 #if QT_VERSION >= 0x040700184 #if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) 185 185 const uchar* bits = image.constBits(); 186 186 #else -
trunk/WebCore/platform/network/qt/NetworkStateNotifierPrivate.h
r57819 r64965 23 23 #include <QObject> 24 24 25 #if QT_VERSION < 0x04070025 #if QT_VERSION < QT_VERSION_CHECK(4, 7, 0) 26 26 namespace QtMobility { 27 27 class QNetworkConfigurationManager; … … 47 47 48 48 public: 49 #if QT_VERSION < 0x04070049 #if QT_VERSION < QT_VERSION_CHECK(4, 7, 0) 50 50 QtMobility::QNetworkConfigurationManager* m_configurationManager; 51 51 #else -
trunk/WebCore/platform/network/qt/NetworkStateNotifierQt.cpp
r58662 r64965 26 26 #include "qnetworkconfigmanager.h" 27 27 28 #if QT_VERSION < 0x04070028 #if QT_VERSION < QT_VERSION_CHECK(4, 7, 0) 29 29 using namespace QtMobility; 30 30 #endif -
trunk/WebCore/platform/network/qt/QNetworkReplyHandler.cpp
r63332 r64965 161 161 else if (r.httpMethod() == "PUT") 162 162 m_method = QNetworkAccessManager::PutOperation; 163 #if QT_VERSION >= 0x040600163 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 164 164 else if (r.httpMethod() == "DELETE") 165 165 m_method = QNetworkAccessManager::DeleteOperation; 166 166 #endif 167 #if QT_VERSION >= 0x040700167 #if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) 168 168 else if (r.httpMethod() == "OPTIONS") 169 169 m_method = QNetworkAccessManager::CustomOperation; … … 457 457 break; 458 458 } 459 #if QT_VERSION >= 0x040600459 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 460 460 case QNetworkAccessManager::DeleteOperation: { 461 461 m_reply = manager->deleteResource(m_request); … … 463 463 } 464 464 #endif 465 #if QT_VERSION >= 0x040700465 #if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) 466 466 case QNetworkAccessManager::CustomOperation: 467 467 m_reply = manager->sendCustomRequest(m_request, m_resourceHandle->firstRequest().httpMethod().latin1().data()); -
trunk/WebCore/platform/qt/RenderThemeQt.cpp
r63571 r64965 1203 1203 paintMediaBackground(p.painter, r); 1204 1204 1205 #if QT_VERSION >= 0x0407001205 #if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) 1206 1206 if (MediaPlayer* player = mediaElement->player()) { 1207 1207 // Get the buffered parts of the media -
trunk/WebKit/qt/Api/qgraphicswebview.cpp
r64284 r64965 242 242 , d(new QGraphicsWebViewPrivate(this)) 243 243 { 244 #if QT_VERSION >= 0x040600244 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 245 245 setFlag(QGraphicsItem::ItemUsesExtendedStyleOption, true); 246 246 #endif … … 418 418 return; 419 419 420 #if QT_VERSION >= 0x040600420 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 421 421 page->d->view.clear(); 422 422 #else -
trunk/WebKit/qt/Api/qwebframe.cpp
r64679 r64965 755 755 request.setHTTPMethod("POST"); 756 756 break; 757 #if QT_VERSION >= 0x040600757 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 758 758 case QNetworkAccessManager::DeleteOperation: 759 759 request.setHTTPMethod("DELETE"); -
trunk/WebKit/qt/Api/qwebpage.cpp
r64401 r64965 253 253 : q(qq) 254 254 , client(0) 255 #if QT_VERSION < 0x040600255 #if QT_VERSION < QT_VERSION_CHECK(4, 6, 0) 256 256 , view(0) 257 257 #endif … … 1132 1132 WebCore::Frame *frame = page->focusController()->focusedOrMainFrame(); 1133 1133 WebCore::Editor *editor = frame->editor(); 1134 #if QT_VERSION >= 0x0406001134 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 1135 1135 QInputMethodEvent::Attribute selection(QInputMethodEvent::Selection, 0, 0, QVariant()); 1136 1136 #endif … … 1173 1173 break; 1174 1174 } 1175 #if QT_VERSION >= 0x0406001175 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 1176 1176 case QInputMethodEvent::Selection: { 1177 1177 selection = a; … … 1191 1191 // 4. otherwise event is updating supplied pre-edit text 1192 1192 QString preedit = ev->preeditString(); 1193 #if QT_VERSION >= 0x0406001193 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 1194 1194 if (hasSelection) { 1195 1195 QString text = (renderTextControl) ? QString(renderTextControl->text()) : QString(); … … 1474 1474 1475 1475 } 1476 #if QT_VERSION >= 0x0406001476 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 1477 1477 case Qt::ImAnchorPosition: { 1478 1478 if (renderTextControl) { … … 1979 1979 QWidget *QWebPage::view() const 1980 1980 { 1981 #if QT_VERSION < 0x0406001981 #if QT_VERSION < QT_VERSION_CHECK(4, 6, 0) 1982 1982 return d->view; 1983 1983 #else -
trunk/WebKit/qt/Api/qwebview.cpp
r64284 r64965 350 350 351 351 if (page) { 352 #if QT_VERSION >= 0x040600352 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 353 353 page->d->view.clear(); 354 354 #else -
trunk/WebKit/qt/ChangeLog
r64861 r64965 1 2010-08-08 Ariya Hidayat <ariya@sencha.com> 2 3 Reviewed by Antonio Gomes. 4 5 Inconsistent Qt version checks 6 https://bugs.webkit.org/show_bug.cgi?id=43695 7 8 Use QT_VERSION_CHECK macro instead of encoded hex. 9 10 * Api/qgraphicswebview.cpp: 11 (QGraphicsWebView::QGraphicsWebView): 12 (QGraphicsWebViewPrivate::detachCurrentPage): 13 * Api/qwebframe.cpp: 14 (QWebFrame::load): 15 * Api/qwebpage.cpp: 16 (QWebPagePrivate::QWebPagePrivate): 17 (QWebPagePrivate::inputMethodEvent): 18 (QWebPage::inputMethodQuery): 19 (QWebPage::view): 20 * Api/qwebview.cpp: 21 (QWebViewPrivate::detachCurrentPage): 22 * WebCoreSupport/EditorClientQt.cpp: 23 (WebCore::EditorClientQt::setInputMethodState): 24 * WebCoreSupport/FrameLoaderClientQt.cpp: 25 (WebCore::FrameLoaderClientQt::createPlugin): 26 * WebCoreSupport/PageClientQt.cpp: 27 * WebCoreSupport/PageClientQt.h: 28 1 29 2010-08-06 Jessie Berlin <jberlin@apple.com> 2 30 -
trunk/WebKit/qt/WebCoreSupport/EditorClientQt.cpp
r64737 r64965 596 596 QWebPageClient* webPageClient = m_page->d->client; 597 597 if (webPageClient) { 598 #if QT_VERSION >= 0x040600598 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 599 599 Qt::InputMethodHints hints; 600 600 -
trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r64036 r64965 1322 1322 }; 1323 1323 1324 #if QT_VERSION >= 0x0406001324 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 1325 1325 class QtPluginGraphicsWidget: public Widget 1326 1326 { … … 1440 1440 return w; 1441 1441 } 1442 #if QT_VERSION >= 0x0406001442 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 1443 1443 QGraphicsWidget* graphicsWidget = qobject_cast<QGraphicsWidget*>(object); 1444 1444 if (graphicsWidget) { -
trunk/WebKit/qt/WebCoreSupport/PageClientQt.cpp
r64737 r64965 49 49 } 50 50 51 #if QT_VERSION >= 0x04060051 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 52 52 void PageClientQWidget::setInputMethodHints(Qt::InputMethodHints hints) 53 53 { … … 230 230 } 231 231 232 #if QT_VERSION >= 0x040600232 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 233 233 void PageClientQGraphicsWidget::setInputMethodHints(Qt::InputMethodHints hints) 234 234 { -
trunk/WebKit/qt/WebCoreSupport/PageClientQt.h
r64737 r64965 59 59 virtual void setInputMethodEnabled(bool enable); 60 60 virtual bool inputMethodEnabled() const; 61 #if QT_VERSION >= 0x04060061 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 62 62 virtual void setInputMethodHints(Qt::InputMethodHints hints); 63 63 #endif … … 147 147 virtual void setInputMethodEnabled(bool enable); 148 148 virtual bool inputMethodEnabled() const; 149 #if QT_VERSION >= 0x040600149 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 150 150 virtual void setInputMethodHints(Qt::InputMethodHints hints); 151 151 #endif
Note: See TracChangeset
for help on using the changeset viewer.