From 57af4f9d87ac88216a3bbcebaeed55db07a8948d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 26 Aug 2023 14:53:30 +0900 Subject: Drop USE_TQT4 code Signed-off-by: Michele Calgaro --- tdehtml/html/Platform.h | 2 +- tdehtml/html/html_formimpl.cpp | 6 ------ tdehtml/html/html_miscimpl.cpp | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) (limited to 'tdehtml/html') diff --git a/tdehtml/html/Platform.h b/tdehtml/html/Platform.h index f47d28bb2..dfbea38cf 100644 --- a/tdehtml/html/Platform.h +++ b/tdehtml/html/Platform.h @@ -193,7 +193,7 @@ /* for Unicode, KDE uses Qt, everything else uses ICU */ #if PLATFORM(KDE) || PLATFORM(QT) -#define WTF_USE_QT4_UNICODE 1 +#define WTF_USE_QT3_UNICODE 1 #elif PLATFORM(SYMBIAN) #define WTF_USE_SYMBIAN_UNICODE 1 #else diff --git a/tdehtml/html/html_formimpl.cpp b/tdehtml/html/html_formimpl.cpp index af9008dd3..b10aaba99 100644 --- a/tdehtml/html/html_formimpl.cpp +++ b/tdehtml/html/html_formimpl.cpp @@ -1020,17 +1020,11 @@ void HTMLGenericFormElementImpl::defaultEventHandler(EventImpl *evt) TQKeyEvent* const k = static_cast(evt)->qKeyEvent(); if ( k && (k->key() == Qt::Key_Tab || k->key() == TQt::Key_BackTab) ) { TQWidget* const widget = static_cast(m_render)->widget(); -#ifdef USE_QT4 - if (widget) - static_cast(widget) - ->focusNextPrev(k->key() == Qt::Key_Tab); -#else // USE_QT4 TQFocusEvent::setReason( k->key() == Qt::Key_Tab ? TQFocusEvent::Tab : TQFocusEvent::Backtab ); if (widget) static_cast(widget) ->focusNextPrev(k->key() == Qt::Key_Tab); TQFocusEvent::resetReason(); -#endif // USE_QT4 evt->setDefaultHandled(); } } diff --git a/tdehtml/html/html_miscimpl.cpp b/tdehtml/html/html_miscimpl.cpp index 58804bff5..5b8d4ef4b 100644 --- a/tdehtml/html/html_miscimpl.cpp +++ b/tdehtml/html/html_miscimpl.cpp @@ -64,7 +64,6 @@ struct CollectionCache: public NodeListImpl::Cache virtual void clear(DocumentImpl* doc) { Cache::clear(doc); - //qDeletaAll here in Qt4 nameCache.clear(); } }; -- cgit v1.2.1