+2008-01-16 Lars Knoll <lars@trolltech.com>
+
+ Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
+
+ Trivially implement the themed search field by mapping it to a text field
+
+ Also add a bunch of notImplemented warnings for other places where we don't
+ have an implementatin in RenderTheme.
+
+ * platform/qt/RenderThemeQt.cpp:
+ (WebCore::RenderThemeQt::paintTextField):
+ (WebCore::RenderThemeQt::paintMenuListButton):
+ (WebCore::RenderThemeQt::adjustMenuListButtonStyle):
+ (WebCore::RenderThemeQt::paintSliderTrack):
+ (WebCore::RenderThemeQt::paintSliderThumb):
+ (WebCore::RenderThemeQt::paintSearchField):
+ (WebCore::RenderThemeQt::adjustSearchFieldStyle):
+ (WebCore::RenderThemeQt::adjustSearchFieldCancelButtonStyle):
+ (WebCore::RenderThemeQt::paintSearchFieldCancelButton):
+ (WebCore::RenderThemeQt::adjustSearchFieldDecorationStyle):
+ (WebCore::RenderThemeQt::paintSearchFieldDecoration):
+ (WebCore::RenderThemeQt::adjustSearchFieldResultsDecorationStyle):
+ (WebCore::RenderThemeQt::paintSearchFieldResultsDecoration):
+
2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
Reviewed by Simon.
#include "config.h"
#include "RenderThemeQt.h"
+#include "NotImplemented.h"
#include <QApplication>
#include <QColor>
// Get the correct theme data for a button
EAppearance appearance = applyTheme(panel, o);
- Q_ASSERT(appearance == TextFieldAppearance);
+ Q_ASSERT(appearance == TextFieldAppearance || appearance == SearchFieldAppearance);
// Now paint the text field.
style->drawPrimitive(QStyle::PE_PanelLineEdit, &panel, painter, widget);
bool RenderThemeQt::paintMenuListButton(RenderObject* o, const RenderObject::PaintInfo& pi,
const IntRect& r)
{
+ notImplemented();
return RenderTheme::paintMenuListButton(o, pi, r);
}
void RenderThemeQt::adjustMenuListButtonStyle(CSSStyleSelector* selector, RenderStyle* style,
Element* e) const
{
+ notImplemented();
RenderTheme::adjustMenuListButtonStyle(selector, style, e);
}
bool RenderThemeQt::paintSliderTrack(RenderObject* o, const RenderObject::PaintInfo& pi,
const IntRect& r)
{
+ notImplemented();
return RenderTheme::paintSliderTrack(o, pi, r);
}
bool RenderThemeQt::paintSliderThumb(RenderObject* o, const RenderObject::PaintInfo& pi,
const IntRect& r)
{
+ notImplemented();
return RenderTheme::paintSliderThumb(o, pi, r);
}
bool RenderThemeQt::paintSearchField(RenderObject* o, const RenderObject::PaintInfo& pi,
const IntRect& r)
{
- return RenderTheme::paintSearchField(o, pi, r);
+ paintTextField(o, pi, r);
+ return false;
}
void RenderThemeQt::adjustSearchFieldStyle(CSSStyleSelector* selector, RenderStyle* style,
Element* e) const
{
+ notImplemented();
RenderTheme::adjustSearchFieldStyle(selector, style, e);
}
void RenderThemeQt::adjustSearchFieldCancelButtonStyle(CSSStyleSelector* selector, RenderStyle* style,
Element* e) const
{
+ notImplemented();
RenderTheme::adjustSearchFieldCancelButtonStyle(selector, style, e);
}
bool RenderThemeQt::paintSearchFieldCancelButton(RenderObject* o, const RenderObject::PaintInfo& pi,
const IntRect& r)
{
+ notImplemented();
return RenderTheme::paintSearchFieldCancelButton(o, pi, r);
}
void RenderThemeQt::adjustSearchFieldDecorationStyle(CSSStyleSelector* selector, RenderStyle* style,
Element* e) const
{
+ notImplemented();
RenderTheme::adjustSearchFieldDecorationStyle(selector, style, e);
}
bool RenderThemeQt::paintSearchFieldDecoration(RenderObject* o, const RenderObject::PaintInfo& pi,
const IntRect& r)
{
+ notImplemented();
return RenderTheme::paintSearchFieldDecoration(o, pi, r);
}
void RenderThemeQt::adjustSearchFieldResultsDecorationStyle(CSSStyleSelector* selector, RenderStyle* style,
Element* e) const
{
+ notImplemented();
RenderTheme::adjustSearchFieldResultsDecorationStyle(selector, style, e);
}
bool RenderThemeQt::paintSearchFieldResultsDecoration(RenderObject* o, const RenderObject::PaintInfo& pi,
const IntRect& r)
{
+ notImplemented();
return RenderTheme::paintSearchFieldResultsDecoration(o, pi, r);
}