Fix for 3936571, placeholder attribute should work for normal inputs for Dashboard.
[WebKit-https.git] / WebCore / kwq / KWQLineEdit.mm
index 4c1c9d5..106b664 100644 (file)
@@ -347,11 +347,8 @@ void QLineEdit::setMaxResults(int maxResults)
 
 void QLineEdit::setPlaceholderString(const QString& placeholder)
 {
-    if (m_type != Search)
-        return;
-    
-    NSSearchField *searchField = (NSSearchField *)getView();
-    [[searchField cell] setPlaceholderString:placeholder.getNSString()];
+    NSTextField *textField = (NSTextField *)getView();
+    [[textField cell] setPlaceholderString:placeholder.getNSString()];
 }
 
 void QLineEdit::addSearchResult()