For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
instead of Document::title() as the latter is not trimmed and not suited for a window caption.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29570
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
#include "qwebpage_p.h"
#include "qwebframe_p.h"
+#include "DocumentLoader.h"
#include "FocusController.h"
#include "FrameLoaderClientQt.h"
#include "Frame.h"
QString QWebFrame::title() const
{
if (d->frame->document())
- return d->frame->document()->title();
+ return d->frame->loader()->documentLoader()->title();
else return QString();
}
+2008-01-17 Simon Hausmann <hausmann@webkit.org>
+
+ Reviewed by Holger.
+
+ Fix QWebFrame::title().
+
+ For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
+ instead of Document::title() as the latter is not trimmed and not suited for a window caption.
+
+
+ * Api/qwebframe.cpp:
+ (QWebFrame::title):
+
2008-01-17 Simon Hausmann <hausmann@webkit.org>
Reviewed by Maciej, Lars, Holger.