qt:qt-iphone-clone.git
8 years agoA pen/brush can be invalid and have a valid color 4.6
Anders Bakken [Fri, 18 Sep 2009 16:06:36 +0000 (09:06 -0700)]
A pen/brush can be invalid and have a valid color

This code is wrong:

if (brush != Qt::NoBrush)
    ...

It should be:
if (brush.style() != Qt::NoBrush)
    ...

Reviewed-by: Jervey Kong <jervey.kong@nokia.com>
8 years agoImplement QDirectFBPaintEngine::drawRoundedRect
Anders Bakken [Fri, 18 Sep 2009 16:24:25 +0000 (09:24 -0700)]
Implement QDirectFBPaintEngine::drawRoundedRect

We need to lock before falling back to QRasterPaintEngine

Reviewed-by: Jervey Kong <jervey.kong@nokia.com>
8 years agoRemove 3rdparty/javascriptcore unused .pro file that produce errors during
Jocelyn Turcotte [Fri, 18 Sep 2009 15:51:04 +0000 (17:51 +0200)]
Remove 3rdparty/javascriptcore unused .pro file that produce errors during
configure

Reviewed-by: Simon Hausmann
8 years agoSmall improvements to some autotests.
Denis Dzyubenko [Fri, 18 Sep 2009 15:53:20 +0000 (17:53 +0200)]
Small improvements to some autotests.

This should improve qgraphicsview, qgraphicsitem and qtableview
autotests on slow window managers on X11.

Reviewed-by: trustme
8 years agoCorrected some license headers.
Kim Motoyoshi Kalland [Fri, 18 Sep 2009 15:42:06 +0000 (17:42 +0200)]
Corrected some license headers.

Reviewed-by: Samuel
8 years agoWindows CE specific time functions removed from QtWebKit
Joerg Bornemann [Fri, 18 Sep 2009 15:03:46 +0000 (17:03 +0200)]
Windows CE specific time functions removed from QtWebKit

The files were moved to src/3rdparty/ce-compat
That also means, that we don't need special includes in
QtWebKit anymore.

Reviewed-by: Simon Hausmann
8 years agomake tests/auto/qicon/qicon.pro work in shadow builds
Joerg Bornemann [Fri, 18 Sep 2009 14:53:07 +0000 (16:53 +0200)]
make tests/auto/qicon/qicon.pro work in shadow builds

Reviewed-by: TrustMe
8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Liang QI [Fri, 18 Sep 2009 15:06:06 +0000 (17:06 +0200)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoDoc: Added missing qdoc macros.
David Boddie [Fri, 18 Sep 2009 14:48:21 +0000 (16:48 +0200)]
Doc: Added missing qdoc macros.

Reviewed-by: Trust Me
8 years agoDoc: First update of the documentation about learning Qt.
David Boddie [Fri, 18 Sep 2009 14:39:00 +0000 (16:39 +0200)]
Doc: First update of the documentation about learning Qt.

Reviewed-by: Trust Me
8 years agoDoc: Prevented the inclusion of a license header in the documentation.
David Boddie [Fri, 18 Sep 2009 14:37:14 +0000 (16:37 +0200)]
Doc: Prevented the inclusion of a license header in the documentation.

Reviewed-by: Trust Me
8 years agoDoc: Language and style fixes to the XML Patterns documentation.
David Boddie [Fri, 18 Sep 2009 14:36:02 +0000 (16:36 +0200)]
Doc: Language and style fixes to the XML Patterns documentation.

Reviewed-by: Trust Me
8 years agoSwitch glyph cache from Qt to Symbian
Liang QI [Fri, 18 Sep 2009 14:48:24 +0000 (16:48 +0200)]
Switch glyph cache from Qt to Symbian

Use Symbian glyph cache directly in QRasterPaintEngine, do not need cache them in Qt if on Symbian Platform.

Reviewed-by: Alessandro Portale
Reviewed-by: Jason Barron
8 years agoAllow forcing an empty window title.
Denis Dzyubenko [Thu, 17 Sep 2009 17:56:18 +0000 (19:56 +0200)]
Allow forcing an empty window title.

When a user sets a window title on a window to an empty string we will
not check if the value was an empty string before. This handles a
special case on X11 and Windows when we set the window title to the
application executable name by default if the user didn't provide the
title, so if the user explicitely wants to remove the windowtitle
completely and make it empty, he will be able to set it to an empty
string.

Reviewed-by: Olivier Goffart
Reviewed-by: Prasanth Ullattil
8 years agoinitialize the this-register of the global context
Kent Hansen [Fri, 18 Sep 2009 13:47:23 +0000 (15:47 +0200)]
initialize the this-register of the global context

QScriptEnginePrivate::thisForContext() relies on the this-register
of the global context to contain an invalid JSValue.
The default Register constructor (used to initialize the registers
of the global context) only invalidates its value when NDEBUG is
not defined (but we define it). Therefore, we must explicitly set
the this-register to an invalid value.

Reviewed-by: Olivier Goffart
8 years agoput the this-register calculation into a function
Kent Hansen [Fri, 18 Sep 2009 13:46:23 +0000 (15:46 +0200)]
put the this-register calculation into a function

Avoid copy and paste.

Reviewed-by: Olivier Goffart
8 years agoQtWebKit Windows CE compile fix
Joerg Bornemann [Fri, 18 Sep 2009 12:01:38 +0000 (14:01 +0200)]
QtWebKit Windows CE compile fix

There is no _aligned_alloc or _aligned_free on Windows CE.
We just use the Windows code that was there before and use VirtualAlloc.
But that also means that the BLOCK_SIZE must be 64K as this function
allocates on 64K boundaries.

Reviewed-by: Simon Hausmann
8 years agoQtWebKit Windows CE compile fixes
Joerg Bornemann [Fri, 18 Sep 2009 13:37:32 +0000 (15:37 +0200)]
QtWebKit Windows CE compile fixes

Reviewed-by: Simon Hausmann
8 years agoMerge branch '4.5' of scm.dev.nokia.troll.no:qt/qt into 4.6
Simon Hausmann [Fri, 18 Sep 2009 13:08:00 +0000 (15:08 +0200)]
Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoFixed broken scrolling of cached graphics items on X11.
Samuel Rødal [Fri, 18 Sep 2009 12:48:00 +0000 (14:48 +0200)]
Fixed broken scrolling of cached graphics items on X11.

The scrolling was broken in other graphics systems than the native,
since _q_scrollPixmap assumed that all QPixmaps were using the X11
backend. We can just use QPixmap::scroll instead, which should also make
it faster with the raster paint engine than creating a temporary painter
and doing a blit. Also, _q_scrollPixmap would do blending instead of
blitting for non-opaque pixmaps.

Reviewed-by: Olivier Goffart
8 years agoFixed passing a zero drawable to X11 api causing X errors.
Denis Dzyubenko [Fri, 18 Sep 2009 09:17:12 +0000 (11:17 +0200)]
Fixed passing a zero drawable to X11 api causing X errors.

In the windowsurface we shouldn't create a backingstore pixmap if the
window has invalid size.

Reviewed-by: Samuel
8 years agoImproved a qt_x11_wait_for_window_manager.
Denis Dzyubenko [Thu, 17 Sep 2009 11:18:42 +0000 (13:18 +0200)]
Improved a qt_x11_wait_for_window_manager.

In addition to waiting until the window manager maps and reparents the
window, also wait until we get initial expose event.

The window manager will most probably send us several ConfigureNotify
events, so wait until all of them are handled in addition to the Expose
event (as one might rely on another).

Also, we shouldn't wait for the ReparentNotify event if the window has
X11BypassWindowManagerHint.

Reviewed-by: Olivier Goffart
8 years agoMore robust implementation of qt_x11_wait_for_window_manager
Olivier Goffart [Wed, 9 Sep 2009 08:44:06 +0000 (10:44 +0200)]
More robust implementation of qt_x11_wait_for_window_manager

Make sure we recieve both ReparentNotify and MapNotify events.
Also change the timeout to 2 seconds to cope with slow machines

Reviewed-by: Denis
8 years agoAdded a QTest::qWaitForWindowShown function that waits for window manager on X11.
Denis Dzyubenko [Thu, 17 Sep 2009 08:49:33 +0000 (10:49 +0200)]
Added a QTest::qWaitForWindowShown function that waits for window manager on X11.

On X11 it calls the qt_x11_wait_for_window_manager from QtGui,
allowing to wait until the window has been mapped and reparented into
a frame decoration parent.

Reviewed-by: Olivier Goffart
8 years agoAdded missing headers to the testlib.pro
Denis Dzyubenko [Thu, 17 Sep 2009 08:48:38 +0000 (10:48 +0200)]
Added missing headers to the testlib.pro

This allows them to appear in creator.

Reviewed-by: trustme
8 years agoFix symbol clashes between QtWebKit and QtScript
Simon Hausmann [Fri, 18 Sep 2009 12:46:30 +0000 (14:46 +0200)]
Fix symbol clashes between QtWebKit and QtScript

Rename the JSC namespace to QTJSC.

Reviewed-by: Lars Knoll
8 years agoFix compilation and remove trailing whitespace.
Jason Barron [Fri, 18 Sep 2009 12:30:59 +0000 (14:30 +0200)]
Fix compilation and remove trailing whitespace.

Fix compilation on systems that support the extended bitmap format.

Reviewed-by: Jani Hautakangas
8 years agoSystem locale on Mac may not return AnyCountry for any language != C
con [Fri, 18 Sep 2009 12:20:00 +0000 (14:20 +0200)]
System locale on Mac may not return AnyCountry for any language != C

Because of QLocale limitations this broke other places.

Reviewed-by: Denis Dzyubenko
8 years agoAdding support for symbian graphics resources.
Aleksandar Sasha Babic [Fri, 18 Sep 2009 12:11:05 +0000 (14:11 +0200)]
Adding support for symbian graphics resources.

This enables us to convert from and to new Symbian type of
graphics resource, namely SgImage. This only supported with
the OpenVG graphics system.
On other graphics systems this will return null QPixmap.

Conflicts:
src/corelib/global/qglobal.h
src/gui/image/qpixmap.h
src/gui/image/qpixmap_s60.cpp

Reviewed-by: Jason Barron
8 years agoAdd debug output
Paul Olav Tvete [Fri, 18 Sep 2009 12:11:48 +0000 (14:11 +0200)]
Add debug output

This test mysteriously fails when run from the autotest system, but
succeeds when run manually. We need more data to find out what is
going on.

Sort-of-reviewed-by: Jesper
8 years agoRemove remaining support for win32-mwc mkspec
Iain [Fri, 18 Sep 2009 12:00:53 +0000 (13:00 +0100)]
Remove remaining support for win32-mwc mkspec

Qt 4.6 cannot be used with the win32-mwc makespec, as the Metrowerks
compiler supplied with Symbian/S60 releases does not contain enough
support to build the Qt host tools in a Unicode version, and ANSI
support has been removed in 4.6.

Alternative mkspecs are win32-g++, requiring mingw tools to be installed,
or one of the win32-msvc.... mkspecs, requiring MS Visual Studio (Express
edition is fine)

The mwc makefile for qmake was already removed, so this just removes the
remaining support.

Reviewed-by: Jason Barron
8 years agoWorkaround for problems interworking RVCT-built s60main with GCCE apps
Iain [Fri, 18 Sep 2009 09:53:39 +0000 (10:53 +0100)]
Workaround for problems interworking RVCT-built s60main with GCCE apps

This is a workaround for the fact that removing --export_all_vtbl from
the RVCT command line seems to cause problems when linking the static
s60main lib with apps built with GCCE (at least 4.3, haven't tested
earlier versions)

The root cause still needs to be found and fixed, after which this
workaround can hopefully be removed.

Problem observed on Symbian^3 release, RVCT 2.2 build 686,
GCC-E 2009q1-162 release from CodeSourcery.

Reviewed-by: axis
8 years agoFixed bug in GL pixmap backend (causing missing rendering in lance).
Samuel Rødal [Fri, 18 Sep 2009 11:41:07 +0000 (13:41 +0200)]
Fixed bug in GL pixmap backend (causing missing rendering in lance).

Since copyBackFromRenderFbo() manually changes the framebuffer object
binding, we also need to update the context's current_fbo member.

Reviewed-by: Kim
8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Jani Hautakangas [Fri, 18 Sep 2009 11:39:46 +0000 (14:39 +0300)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoApplication crashes when a menu is inserted twice on a menubar (Cocoa). 4.5
Prasanth Ullattil [Fri, 18 Sep 2009 11:38:26 +0000 (13:38 +0200)]
Application crashes when a menu is inserted twice on a menubar (Cocoa).

Cocoa does not allow NSMenu to have multiple supermenu's. If a menu is
added again as submenu, Qt will now disable the menu item or the menu
will not be added at all if it is added again to the menubar.

Task-number: 258822
Reviewed-by: MortenS
8 years agoFix broken .ui file - class name was not specified correctly.
Rhys Weatherley [Thu, 17 Sep 2009 22:33:22 +0000 (08:33 +1000)]
Fix broken .ui file - class name was not specified correctly.

Reviewed-by: trustme
8 years agoIntroduce native Symbian bitmap support to QPixmap
Jani Hautakangas [Fri, 18 Sep 2009 11:33:10 +0000 (14:33 +0300)]
Introduce native Symbian bitmap support to QPixmap

This is done to reduce heap consumption and to give
a possibility to share bitmaps across process. QPixmap
maps to Symbian CFbsBitmap which is stored in Symbian
font and bitmap server.

Reviewed-by: Jason Barron
8 years agoChange name of test to tst_QGraphicsAnchorLayout1
Jan-Arve Sæther [Fri, 18 Sep 2009 11:28:09 +0000 (13:28 +0200)]
Change name of test to tst_QGraphicsAnchorLayout1

8 years agoStabilize test
Olivier Goffart [Fri, 18 Sep 2009 11:01:34 +0000 (13:01 +0200)]
Stabilize test

8 years agoDon't fail if no printers are available.
Paul Olav Tvete [Fri, 18 Sep 2009 10:41:45 +0000 (12:41 +0200)]
Don't fail if no printers are available.

8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Gunnar Sletta [Fri, 18 Sep 2009 10:39:47 +0000 (12:39 +0200)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoMade drawRoundedRect() implementation virtual in QPaintEngineEx
Gunnar Sletta [Fri, 18 Sep 2009 10:38:53 +0000 (12:38 +0200)]
Made drawRoundedRect() implementation virtual in QPaintEngineEx

Reviewed-by: Samuel
8 years agoOnly ignore the addChildLayoutItem warning in debug builds.
Jan-Arve Sæther [Fri, 18 Sep 2009 10:25:14 +0000 (12:25 +0200)]
Only ignore the addChildLayoutItem warning in debug builds.

We only output that message in debug builds....

8 years agoDon't loose precision by converting the sizes (qreals) to ints.
Jan-Arve Sæther [Fri, 18 Sep 2009 09:40:47 +0000 (11:40 +0200)]
Don't loose precision by converting the sizes (qreals) to ints.

Reviewed-by: leo
8 years agoCall effectiveSizeHint(Qt::MinimumSize).width instead of minimumWidth()
Jan-Arve Sæther [Fri, 18 Sep 2009 09:24:44 +0000 (11:24 +0200)]
Call effectiveSizeHint(Qt::MinimumSize).width instead of minimumWidth()

Small refactoring, since the two code blocks were almost the same.

Reviewed-by: leo
8 years agoCopied Windows CE compatiblity date/time conversion functions from WebKit
Simon Hausmann [Fri, 18 Sep 2009 10:33:20 +0000 (12:33 +0200)]
Copied Windows CE compatiblity date/time conversion functions from WebKit
into this separate location, so we don't need to patch WebKit anymore.

As discussed with Joerg

Reviewed-by: Trust me
8 years agomake qscriptvalue_cast<QVariant>() compile again on Windows
Kent Hansen [Fri, 18 Sep 2009 09:56:46 +0000 (11:56 +0200)]
make qscriptvalue_cast<QVariant>() compile again on Windows

This change was lost when the new qtscript-jsc backend was introduced
(the change is already in 4.5).

8 years agoRemoved JavaScriptCore.pro file that shouldn't be there.
Simon Hausmann [Fri, 18 Sep 2009 09:53:56 +0000 (11:53 +0200)]
Removed JavaScriptCore.pro file that shouldn't be there.

Reviewed-by: Trust me
8 years agoUpdated WebKit from /home/shausman/src/webkit/trunk to origin/qtwebkit-4.6-staging...
Simon Hausmann [Fri, 18 Sep 2009 09:25:50 +0000 (11:25 +0200)]
Updated WebKit from /home/shausman/src/webkit/trunk to origin/qtwebkit-4.6-staging ( f572f72dce91be9a4525941c87d1b0a8c383ba39 )

Changes in WebKit/qt since the last update:

++ b/WebKit/qt/ChangeLog
2009-09-18  Simon Hausmann  <simon.hausmann@nokia.com>

        Reviewed by Ariya Hidayat.

        Fixed a bunch of documentation warnings.

        * Api/qwebgraphicsitem.cpp:
        * Api/qwebplugindatabase.cpp:
        * Api/qwebpluginfactory.cpp:
        * Api/qwebsecurityorigin.cpp:

2009-09-18  Warwick Allison  <warwick.allison@nokia.com>

        Reviewed by Simon Hausmann.

        Added a test that console output works.

        * tests/qwebpage/tst_qwebpage.cpp:
        (ConsolePage::ConsolePage):
        (ConsolePage::javaScriptConsoleMessage):
        (tst_QWebPage::consoleOutput):

8 years agoAutotest: fix compilation with a more strict compiler / libc.
Thiago Macieira [Thu, 17 Sep 2009 13:16:06 +0000 (15:16 +0200)]
Autotest: fix compilation with a more strict compiler / libc.

Reviewed-By: TrustMe
8 years agoUpdated WebKit from /home/joce/dev/qtwebkit/ to qtwebkit-4.6-snapshot-18092009 (...
Jocelyn Turcotte [Fri, 18 Sep 2009 08:35:59 +0000 (10:35 +0200)]
Updated WebKit from /home/joce/dev/qtwebkit/ to qtwebkit-4.6-snapshot-18092009 ( 15c07fb8d7fa5e93c939aa7eb21c06e19c754cee )

Changes in WebKit/qt since the last update:

++ b/WebKit/qt/ChangeLog
2009-09-17  Janne Koskinen  <janne.p.koskinen@digia.com>

        Reviewed by Simon Hausmann.

        Symbian build fix.

        Moved the #ifdefs around _q_cleanupLeakMessages() into the function
        definition.

        QMake is not being able to distinguish between release and debug builds
        in Symbian build. This is a Symbian toolchain issue.

        * Api/qwebpage.cpp:
        (QWebPagePrivate::_q_cleanupLeakMessages):
        * Api/qwebpage.h:
        * Api/qwebpage_p.h:

2009-09-17  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>

        Reviewed by Simon Hausmann.

        Small cosmetic documentation fixlet in the QWebInspector.

        * Api/qwebinspector.cpp:

2009-09-16  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>

        Reviewed by Eric Seidel.

        Detect and add Windows7 properly to the user agent.

        * Api/qwebpage.cpp:
        (QWebPage::userAgentForUrl):

2009-09-16  Andras Becsi  <andrewbecsi@yahoo.co.uk>

        Rubberstamped by Kenneth Christiansen.

        [Qt] Build fix for previous changes.

        * QGVLauncher/main.cpp:
        (MainView::flip):

2009-09-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Unreviewed potential Qt < 4.6 build fix.

        * QGVLauncher/main.cpp:
        (MainView::flip):

2009-09-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Simon Hausmann.

        Add a "Flip effect" to our GraphicsView based launcher.

        * QGVLauncher/main.cpp:
        (MainView::resizeEvent):
        (MainView::flip):
        (MainWindow::flip):
        (MainWindow::buildUI):

2009-09-16  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>

        Rubber-stamped by Simon Hausmann.

        [Qt] Typo fix. Pass the window object to the Format
        menu. In this way Qt can free its internal graphical
        objects during exit.

        * QtLauncher/main.cpp:
        (MainWindow::setupUI):

2009-09-16  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>

        Reviewed by Tor Arne Vestbø.

        [Qt] Build break fix on gcc ARM.

        * Api/qwebgraphicsitem.cpp:
        (QWebGraphicsItemPrivate::_q_doLoadProgress):

2009-09-16  Warwick Allison  <warwick.allison@nokia.com>

        Reviewed by Simon Hausmann.

        Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
        when the focused frame is null. We do the same check in other places
        where we call kit().

        * Api/qwebframe.cpp:
        (QWebFrame::hasFocus):

2009-09-16  Jure Repinc  <jlp@holodeck1.com>

        Reviewed by Simon Hausmann.

        Fixed a typo found during translation.

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):

2009-09-14  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Simon Hausmann.

        [Qt] QWebGraphicsItem should check for null QWebPage.
        https://bugs.webkit.org/show_bug.cgi?id=29185

        Don't crash in QWebGraphicsItem when the page is still null, by
        either checking if it's the case or constructing the default one.

        * Api/qwebgraphicsitem.cpp:
        (QWebGraphicsItem::icon):
        (QWebGraphicsItem::setZoomFactor):
        (QWebGraphicsItem::zoomFactor):
        (QWebGraphicsItem::setGeometry):
        (QWebGraphicsItem::load):
        (QWebGraphicsItem::setHtml):
        (QWebGraphicsItem::toHtml):
        (QWebGraphicsItem::setContent):
        (QWebGraphicsItem::history):
        (QWebGraphicsItem::settings):

2009-09-11  David Boddie  <dboddie@trolltech.com>

        Reviewed by Simon Hausmann.

        Doc: Note that Netscape plugins are only available on desktop platforms.

        * docs/qtwebkit.qdoc:

2009-09-11  Martin Smith  <msmith@trolltech.com>

        Reviewed by Simon Hausmann.

        Adjust the name of the contentspage for the documentation
        to the new name used in Qt 4.6.

        * docs/qtwebkit.qdoc:

2009-09-11  Ariya Hidayat  <ariya.hidayat@nokia.com>

        Reviewed by Simon Hausmann.

        Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
        renaming.

        * Api/qwebpluginfactory.cpp:
        * docs/webkitsnippets/simple/main.cpp:
        (main):
        * docs/webkitsnippets/webpage/main.cpp:
        (main):

2009-09-11  Volker Hilsheimer  <volker.hilsheimer@nokia.com>

        Reviewed by Simon Hausmann.

        Restructure the documentation, both on a file and on a content level.

        * Api/qwebdatabase.cpp:
        * Api/qwebelement.cpp:
        * Api/qwebframe.cpp:
        * Api/qwebhistory.cpp:
        * Api/qwebhistoryinterface.cpp:
        * Api/qwebpage.cpp:
        * Api/qwebpluginfactory.cpp:
        * Api/qwebsecurityorigin.cpp:
        * Api/qwebsettings.cpp:
        * Api/qwebview.cpp:
        * docs/qtwebkit.qdoc:

2009-09-11  Yongjun Zhang  <yongjun.zhang@nokia.com>

        Reviewed by Simon Hausmann.

        https://bugs.webkit.org/show_bug.cgi?id=29136
        [Qt] emit microFocusChanged() signal when no QWidget-based view is present.

        emit microFocusChange() signal regardless of view.

        * WebCoreSupport/EditorClientQt.cpp:
        (WebCore::EditorClientQt::setInputMethodState):

2009-09-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>

        Reviewed by Simon Hausmann.

        https://bugs.webkit.org/show_bug.cgi?id=28806

        [Qt] Make the WebInspector available as a QWidget.

        * Api/headers.pri:
        * Api/qwebelement.cpp:
        (QWebElement::enclosingElement):
        * Api/qwebelement.h:
        * Api/qwebinspector.cpp: Added.
        * Api/qwebinspector.h: Added.
        * Api/qwebinspector_p.h: Added.
        * Api/qwebpage.cpp:
        (QWebPagePrivate::QWebPagePrivate):
        (QWebPagePrivate::setInspector):
        (QWebPagePrivate::getOrCreateInspector):
        (QWebPagePrivate::inspectorController):
        (QWebPage::~QWebPage):
        (QWebPage::triggerAction):
        * Api/qwebpage.h:
        * Api/qwebpage_p.h:
        * Api/qwebsettings.cpp:
        * QtLauncher/main.cpp:
        (MainWindow::MainWindow):
        * WebCoreSupport/InspectorClientQt.cpp:
        (WebCore::InspectorClientWebPage::InspectorClientWebPage):
        (WebCore::InspectorClientWebPage::createWindow):
        (WebCore::InspectorClientQt::createPage):
        (WebCore::InspectorClientQt::showWindow):
        (WebCore::InspectorClientQt::closeWindow):
        (WebCore::InspectorClientQt::attachWindow):
        (WebCore::InspectorClientQt::detachWindow):
        (WebCore::InspectorClientQt::updateWindowTitle):
        * WebCoreSupport/InspectorClientQt.h:
        * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.

2009-09-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Eric Seidel.

        [Qt] Fix comparison between signed and unsigned integer warnings
        https://bugs.webkit.org/show_bug.cgi?id=29162

        No functional change.

        * Api/qwebelement.cpp:
        (QWebElement::findAll):
        * Api/qwebhistory.cpp:
        (QWebHistory::items):
        (QWebHistory::backItems):
        (QWebHistory::forwardItems):
        (QWebHistory::saveState):
        * Api/qwebplugindatabase.cpp:
        (QWebPluginDatabase::setSearchPaths):
        * WebCoreSupport/ChromeClientQt.cpp:
        (WebCore::ChromeClientQt::runOpenPanel):
        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::createPlugin):

2009-09-10  Simon Hausmann  <hausmann@webkit.org>

        Rubber-stamped by Ariya Hidayat.

        Fix a bunch of qdoc warnings: Invalid references, non-standard
        wording, etc.

        * Api/qwebelement.cpp:
        * Api/qwebgraphicsitem.cpp:
        * Api/qwebsecurityorigin.cpp:

2009-09-10  Simon Hausmann  <hausmann@webkit.org>

        Reviewed by Ariya Hidayat.

        Fix context menu event delivery with QWebGraphicsItem.

        Re-implement the correct context menu virtual function using
        a QGraphicsSceneContextMenuEvent and forward & handle it in
        QWebPage.

        * Api/qwebgraphicsitem.cpp:
        (QWebGraphicsItem::contextMenuEvent):
        * Api/qwebgraphicsitem.h:
        * Api/qwebpage.cpp:
        (QWebPagePrivate::contextMenuEvent):
        (QWebPage::event):
        * Api/qwebpage_p.h:

2009-09-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Unreviewed.

        Build fix for QtWebKit for Mac after r48219.

        qevent and qstyleoption are QtGui interfaces.

        * Api/qwebgraphicsitem.cpp:
        * Api/qwebgraphicsitem.h:

2009-09-09  Simon Hausmann  <hausmann@webkit.org>

        Reviewed by Tor Arne Vestbø.

        Call the right base class function QGraphicsWidget::event() instead
        of skipping it and using QObject::event() instead.

        * Api/qwebgraphicsitem.cpp:
        (QWebGraphicsItem::event):

2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Unreviewed.

        Fix comment at Tor Arne Vestbø's request.

        * Api/qwebgraphicsitem.cpp:
        (QWebGraphicsItem::sceneEvent):
        (QWebGraphicsItem::event):

2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Tor Arne Vestbø.

        Implement some virtual event methods so that we can fix
        event-related bugs in Qt patch releases.

        * Api/qwebgraphicsitem.cpp:
        (QWebGraphicsItem::sceneEvent):
        (QWebGraphicsItem::event):
        * Api/qwebgraphicsitem.h:

2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>, Antonio Gomes  <antonio.gomes@openbossa.org>

        Reviewed by Simon Hausmann.

        Add a new QGraphicsWidget based version of the "QWebView"
        under the name "QWebGraphicsItem".

        https://bugs.webkit.org/show_bug.cgi?id=28862

        Includes an alternative Qt launcher using the QGraphicsView.

        * Api/headers.pri:
        * Api/qwebgraphicsitem.cpp: Added.
        * Api/qwebgraphicsitem.h: Added.
        * Api/qwebpage.h:
        * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
        * QGVLauncher/main.cpp: Added.
        * WebCoreSupport/ChromeClientQt.cpp:
        (WebCore::ChromeClientQt::repaint):
        (WebCore::ChromeClientQt::scroll):

2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Unreviewed build fix.

        Potential build fix for Qt 4.5

        * Api/qwebpage.cpp:
        (QWebPagePrivate::mousePressEvent):

2009-09-08  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Simon Hausmann.

        https://bugs.webkit.org/show_bug.cgi?id=29007
        Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()

        * tests/qwebframe/tst_qwebframe.cpp:

2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] Fix unused variable warnings
        https://bugs.webkit.org/show_bug.cgi?id=29018

        * Api/qwebpage.cpp:
        (QWebPagePrivate::keyPressEvent):
        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::startDownload):
        (WebCore::FrameLoaderClientQt::createFrame):

2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Ariya Hidayat.

        [Qt] Use the declaration order in initializer lists
        https://bugs.webkit.org/show_bug.cgi?id=29017

        * Api/qwebframe_p.h:

2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Simon Hausmann.

        Add support for handling QGraphicsScene events.

        * Api/qwebpage.cpp:
        (QWebPagePrivate::mouseMoveEvent):
        (QWebPagePrivate::mousePressEvent):
        (QWebPagePrivate::mouseDoubleClickEvent):
        (QWebPagePrivate::mouseTripleClickEvent):
        (QWebPagePrivate::handleClipboard):
        (QWebPagePrivate::mouseReleaseEvent):
        (QWebPagePrivate::wheelEvent):
        (QWebPagePrivate::dragEnterEvent):
        (QWebPagePrivate::dragLeaveEvent):
        (QWebPagePrivate::dragMoveEvent):
        (QWebPagePrivate::dropEvent):
        (QWebPage::event):
        * Api/qwebpage_p.h:

2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Simon Hausmann.

        [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
        https://bugs.webkit.org/show_bug.cgi?id=28865

        Clean up the unserCursor hack to use the QCursor set
        as a property of the QWidget by WebCore::WidgetQt.

        Remove all code that are no longer necessary for getting
        cursor change events.

        Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
                 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07

        * Api/qwebpage.cpp:
        * Api/qwebpage_p.h:
        * Api/qwebview.cpp:
        (QWebViewPrivate::QWebViewPrivate):
        (QWebView::event):

2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] QtWebKit single API to enable persistency
        https://bugs.webkit.org/show_bug.cgi?id=28682

        Disable LocalStorage, ApplicationCache, HTML5 offline storage by
        default.

        If persistency is enabled the default directory for LocalStorage and
        ApplicationCache is now based on QDesktopServices::DataLocation and not
        QDesktopServices::CacheLocation (as it is expected to keep this data
        around after a reboot).

        If persistency is enabled initialize HTML5 offline storage as well - this
        fixed offline Storage for QtLauncher.

        * Api/qwebpage.cpp:
        (QWebPagePrivate::QWebPagePrivate):
        * Api/qwebsettings.cpp:
        (QWebSettings::QWebSettings):
        (QWebSettings::enablePersistentStorage):
        * Api/qwebsettings.h: Add a new API called enablePersistentStorage
        * QtLauncher/main.cpp: Use the new enablePersistentStorage API
        (main):

2009-09-07  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Simon Hausmann.

        Speed up the QWebPluginInfo::supportsMimeType() function.
        https://bugs.webkit.org/show_bug.cgi?id=27651

        Instead of going through the MIME types list constructed with
        mimeTypes() function, look up the internal mimeToDescriptions map.

        * Api/qwebplugindatabase.cpp:
        (QWebPluginInfo::supportsMimeType):

2009-09-07  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Simon Hausmann.

        Speed up the QWebPluginInfo::mimeTypes() function.
        https://bugs.webkit.org/show_bug.cgi?id=27651

        Instead of constructing a list of MIME types every time it is called,
        do this only once.

        * Api/qwebplugindatabase.cpp:
        (QWebPluginInfo::mimeTypes):
        (QWebPluginInfo::operator=):
        * Api/qwebplugindatabase.h:
        * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
        (tst_QWebPluginDatabase::operatorassign_data):
        (tst_QWebPluginDatabase::operatorassign):

2009-09-07  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Simon Hausmann.

        Remove the private classes from QWebPluginDatabase.
        https://bugs.webkit.org/show_bug.cgi?id=27651

        Instead, hold the PluginDatabase and PluginPackage objects as class
        members and take care of refcounting on our own instead of using RefPtr.

        This way we not only made the code cleaner but also got rid of
        redundant allocations when constructing null QWebPluginInfo objects.

        The private classes have been forward-declared and the d-pointers left
        to be on the safe side.

        * Api/qwebplugindatabase.cpp:
        (QWebPluginInfo::QWebPluginInfo):
        (QWebPluginInfo::~QWebPluginInfo):
        (QWebPluginInfo::name):
        (QWebPluginInfo::description):
        (QWebPluginInfo::mimeTypes):
        (QWebPluginInfo::path):
        (QWebPluginInfo::isNull):
        (QWebPluginInfo::setEnabled):
        (QWebPluginInfo::isEnabled):
        (QWebPluginInfo::operator==):
        (QWebPluginInfo::operator!=):
        (QWebPluginInfo::operator=):
        (QWebPluginDatabase::QWebPluginDatabase):
        (QWebPluginDatabase::~QWebPluginDatabase):
        (QWebPluginDatabase::plugins):
        (QWebPluginDatabase::searchPaths):
        (QWebPluginDatabase::setSearchPaths):
        (QWebPluginDatabase::addSearchPath):
        (QWebPluginDatabase::refresh):
        (QWebPluginDatabase::pluginForMimeType):
        (QWebPluginDatabase::setPreferredPluginForMimeType):
        * Api/qwebplugindatabase.h:
        * Api/qwebplugindatabase_p.h: Removed.

2009-09-05  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Eric Seidel.

        [Qt] r47424 broke binary compatibility
        https://bugs.webkit.org/show_bug.cgi?id=28996

        Append the new DnsPrefetchEnabled attribute at the end of the enum.

        * Api/qwebsettings.h:

2009-09-04  Mark Mentovai  <mark@chromium.org>

        Reviewed by Dave Hyatt.

        https://bugs.webkit.org/show_bug.cgi?id=28614

        Account for scrollbar state changes that occur during layout.

        * Api/qwebframe.cpp:
        (QWebFrame::setScrollBarPolicy):

        Eliminate duplicated (and incorrect) scrollbar mode tracking between
        FrameView and ScrollView.

2009-09-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Eric Seidel.

        [Qt] Fix tst_QWebPage::database autotest failure
        https://bugs.webkit.org/show_bug.cgi?id=28961

        Make sure that the test case enables the feature before
        the feature gets tested

        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::database):

2009-09-04  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>

        Reviewed by Eric Seidel.

        Any QtWebKit application crashes on exit if the inspector is
        used during the session rather then exiting.

        If a QWebView has a QWebPage that is destroyed the QWebView
        does not update its pointer and will crash the next time
        it access the page pointers (such as in its destructor).

        InspectorClientView should not call deleteLater when the page
        is destroyed because it does not have a parent and is a top
        level widget.  close() needs to be called so that QApplication
        can exit the application if quitOnLastWindowClosed is set
        and a InspectorClientView is the last window, otherwise
        the application will never exit.

        * Api/qwebview.cpp:
        (QWebViewPrivate::_q_pageDestroyed):
        (QWebView::setPage):
        * Api/qwebview.h:
        * WebCoreSupport/InspectorClientQt.cpp:
        (WebCore::InspectorClientView::InspectorClientView):

2009-09-03  Adam Barth  <abarth@webkit.org>

        Reviewed by eric@webkit.org.

        https://bugs.webkit.org/show_bug.cgi?id=24696

        Stub implementations of mixed content methods of FrameLoaderClient.

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
        (WebCore::FrameLoaderClientQt::didRunInsecureContent):
        * WebCoreSupport/FrameLoaderClientQt.h:

2009-09-03  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Eric Seidel.

        [Qt] Add a setting to turn SessionStorage on/off
        https://bugs.webkit.org/show_bug.cgi?id=28836

        * Api/qwebsettings.cpp:
        (QWebSettingsPrivate::apply):
        (QWebSettings::QWebSettings):
        * Api/qwebsettings.h:
        * tests/qwebpage/tst_qwebpage.cpp:
        (testFlag):
        (tst_QWebPage::testOptionalJSObjects):

2009-09-02  Richard Moore  <rich@kde.org>

        Reviewed by Tor Arne Vestbø.

        [Qt] Make sure we relayout the page after evaluating JS

        https://bugs.webkit.org/show_bug.cgi?id=28235

        QtWebKit does not always seem to reflow the page when evaluating
        javascript. This patch changes the way evaluateJavaScript works to
        use the frameloader which ensures that this is done properly.

        * Api/qwebframe.cpp:
        (QWebFrame::evaluateJavaScript):
        * tests/qwebframe/tst_qwebframe.cpp:

2009-08-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Holger Freyther.

        https://bugs.webkit.org/show_bug.cgi?id=25889
        [GTK] scrollbar policy for main frame is not implementable

        Add empty implementation for new ChromeClient method.

        * WebCoreSupport/ChromeClientQt.h:
        (WebCore::ChromeClientQt::scrollbarsModeDidChange):

2009-08-27  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>

        Reviewed by Ariya Hidayat.

        QWebHistory::clear() modifications.

        Clear() method was changed. If QWebHistory is empty (there is no
        elements even current) clear() do nothing. If there at least one
        element clear() will delete everything apart of current.

        New autotests in QWebHistory

        New autotests were added to QWebHistory. They should check some crashes
        in save and restore state process and clear() method and general
        behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1

        Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711

        * Api/qwebhistory.cpp:
        (QWebHistory::clear):
        * tests/qwebhistory/tst_qwebhistory.cpp:
        (tst_QWebHistory::back):
        (tst_QWebHistory::forward):
        (tst_QWebHistory::saveAndRestore_crash_1):
        (tst_QWebHistory::saveAndRestore_crash_2):
        (tst_QWebHistory::saveAndRestore_crash_3):
        (tst_QWebHistory::clear):

2009-08-27  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>

        Reviewed by Ariya Hidayat.

        [Qt] Cleanup, old and commented part of source code was removed.
        Fix some formatting problems.

        https://bugs.webkit.org/show_bug.cgi?id=28712

        * Api/qwebhistory_p.h:
        (QWebHistoryPrivate::QWebHistoryPrivate):

2009-08-26  Adam Barth  <abarth@webkit.org>

        Reviewed by Oliver Hunt.

        Don't let local files access web URLs
        https://bugs.webkit.org/show_bug.cgi?id=28480

        * Api/qwebsettings.cpp:
        (QWebSettings::QWebSettings):

2009-08-25  Antonio Gomes   <antonio.gomes@openbossa.org>

        Reviewed by Ariya Hidayat.

        Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.

        * Api/qwebframe.cpp:
        (QWebFrame::requestedUrl):
        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
        (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
        (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
        (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
        * WebCoreSupport/FrameLoaderClientQt.h:

2009-08-22  Adam Barth  <abarth@webkit.org>

        Revert 47684.  We're going to do this later once clients have had a
        chance to opt into the setting they like.

        * Api/qwebsettings.cpp:
        (QWebSettings::QWebSettings):

2009-08-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Don't let local files access web URLs
        https://bugs.webkit.org/show_bug.cgi?id=28480

        * Api/qwebsettings.cpp:
        (QWebSettings::QWebSettings):

2009-08-19  Aaron Boodman  <aa@chromium.org>

        Speculative build break fix for qt.

        * Api/qwebsecurityorigin.cpp:
        (QWebSecurityOrigin::whiteListAccessFromOrigin):
        * Api/qwebsecurityorigin.h:

2009-08-19  Aaron Boodman  <aa@chromium.org>

        Reviewed by David Levin.

        https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
        specify a more granular policy for cross-origin XHR access.

        * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
        (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
        (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
        * Api/qwebsecurityorigin.h: Ditto.

2009-08-18  Markus Goetz <Markus.Goetz@nokia.com>

        Reviwed by Ariya Hidayat.

        [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
        WebSettings.

        * Api/qwebsettings.cpp:
        (QWebSettings::QWebSettings):
        * Api/qwebsettings.h:

2009-08-17  Darin Adler  <darin@apple.com>

        Try to fix Qt build again.

        * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".

2009-08-17  Darin Adler  <darin@apple.com>

        Try to fix Qt build.

        * WebCoreSupport/EditorClientQt.cpp:
        (WebCore::EditorClientQt::shouldShowDeleteInterface):
        Use getAttribute(classAttr) instead of className() function.

2009-08-14  Yongjun Zhang  <yongjun.zhang@nokia.com>

        Reviewed by Simon Hausmann.

        RVCT elftran fails to resolve QPainter::staticMetaObject coming with
        QWebView::RenderHints property.

        This is a temporary fix and will be revereted when the right symbols
        exported from Qt lib in S60.

        https://bugs.webkit.org/show_bug.cgi?id=28181

        * Api/qwebview.h:

2009-08-14  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] Public API to configure the storage path for HTML5 localStorage
        https://bugs.webkit.org/show_bug.cgi?id=28036

        Disables LocalStorage for QtWebKit by default by setting
        QWebSettings::LocalStorageEnabled to false.

        Sets up a default for the LocalStorage path so that clients would only
        need to enable the LocalStorageEnabled setting to turn on LocalStoragre
        support.

        Turn on LocalStorage support for QtLauncher and the relevant test
        since LocalStorage is now disabled by default for QtWebkit.

        * Api/qwebpage.cpp:
        (defaultCachePath):
        (initializeApplicationCachePathIfNecessary):
        (QWebPagePrivate::QWebPagePrivate):
        * Api/qwebsettings.cpp:
        (QWebSettingsPrivate::apply):
        (QWebSettings::QWebSettings):
        (QWebSettings::setLocalStoragePath):
        (QWebSettings::localStoragePath):
        * Api/qwebsettings.h:
        * QtLauncher/main.cpp:
        (main):
        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::multiplePageGroupsAndLocalStorage):

2009-08-14  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] Allow applications to register their own local URL scheme.
        https://bugs.webkit.org/show_bug.cgi?id=28240

        * Api/qwebsecurityorigin.cpp:
        (QWebSecurityOrigin::addLocalScheme):
        (QWebSecurityOrigin::removeLocalScheme):
        (QWebSecurityOrigin::localSchemes):
        * Api/qwebsecurityorigin.h:
        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::localURLSchemes):

2009-08-13  Mark Rowe  <mrowe@apple.com>

        Try and fix the Qt build.

        * Api/qwebelement.cpp:

2009-08-13  Kavindra Devi Palaraja  <kavindra.palaraja@nokia.com>

        Reviewed by Simon Hausmann.

        Doc - Some cleanup on the documentation of QWebElement

        * Api/qwebelement.cpp:

2009-08-13  Norbert Leser  <norbert.leser@nokia.com>

        Reviewed by Simon Hausmann.

        Symbian target components (library and executable files)
        require Unique Identifiers (i.e., UID3).
        These identifiers are defined in the respective project
        files, conditionally for "symbian" platform.

        * QtLauncher/QtLauncher.pro:
        * tests/qwebelement/qwebelement.pro:
        * tests/qwebframe/qwebframe.pro:
        * tests/qwebhistory/qwebhistory.pro:
        * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
        * tests/qwebpage/qwebpage.pro:
        * tests/qwebview/qwebview.pro:

2009-08-12  George Wright  <george.wright@torchmobile.com>

        Reviewed by Adam Treat.

        Initialise zoom levels independent of whether a URL is valid or not to
        fix https://bugs.webkit.org/show_bug.cgi?id=28162

        * QtLauncher/main.cpp:
        (MainWindow::MainWindow):

2009-08-12  Joerg Bornemann  <joerg.bornemann@trolltech.com>

        Reviewed by Simon Hausmann.

        QtWebKit compile fix for Windows CE

        There's no getenv on Windows CE, use qgetenv instead.

        * Api/qwebpage.cpp:
        (qt_drt_overwritePluginDirectories):

2009-08-10  Kavindra Palaraja  <kavindra.palaraja@nokia.com>

        Reviewed by Simon Hausmann.

        Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.

        * Api/qwebplugindatabase.cpp:
        * Api/qwebsettings.cpp:

2009-08-08  Volker Hilsheimer  <volker.hilsheimer@nokia.com>

        Reviewed by Simon Hausmann.

        Doc: there is no group of explicitly shared classes, only one class uses this.

        Explain the implications in the QWebHistoryItem documentation, and get rid
        of the "group".

        * Api/qwebhistory.cpp:

2009-08-05  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>

        Reviewed by Simon Hausmann.

        [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763

        * Api/qwebpluginfactory.h: Export macro added.

2009-08-04  Antonio Gomes   <antonio.gomes@openbossa.org>

        Reviewed by Simon Hausmann.

        [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors.
        https://bugs.webkit.org/show_bug.cgi?id=27804

        * Api/qwebframe.cpp:
        (QWebFrame::requestedUrl):
        * tests/qwebframe/tst_qwebframe.cpp:

2009-08-04  Simon Hausmann  <simon.hausmann@nokia.com>

        Reviewed by Tor Arne Vestbø.

        Rename QWebPlugin to QWebPluginInfo, as discussed on IRC.

        * Api/qwebplugindatabase.cpp:
        (QWebPluginInfoPrivate::QWebPluginInfoPrivate):
        (QWebPluginInfo::QWebPluginInfo):
        (QWebPluginInfo::~QWebPluginInfo):
        (QWebPluginInfo::name):
        (QWebPluginInfo::description):
        (QWebPluginInfo::mimeTypes):
        (QWebPluginInfo::supportsMimeType):
        (QWebPluginInfo::path):
        (QWebPluginInfo::isNull):
        (QWebPluginInfo::setEnabled):
        (QWebPluginInfo::isEnabled):
        (QWebPluginInfo::operator==):
        (QWebPluginInfo::operator!=):
        (QWebPluginInfo::operator=):
        (QWebPluginDatabase::plugins):
        (QWebPluginDatabase::pluginForMimeType):
        (QWebPluginDatabase::setPreferredPluginForMimeType):
        * Api/qwebplugindatabase.h:
        * Api/qwebplugindatabase_p.h:
        * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
        (tst_QWebPluginDatabase::installedPlugins):
        (tst_QWebPluginDatabase::searchPaths):
        (tst_QWebPluginDatabase::null_data):
        (tst_QWebPluginDatabase::null):
        (tst_QWebPluginDatabase::pluginForMimeType):
        (tst_QWebPluginDatabase::enabled):
        (tst_QWebPluginDatabase::operatorequal_data):
        (tst_QWebPluginDatabase::operatorequal):
        (tst_QWebPluginDatabase::preferredPlugin):

2009-08-04  Simon Hausmann  <simon.hausmann@nokia.com>

        Reviewed by Adam Treat.

        Replace QWebPlugin::MimeType with a typedef to
        QWebPluginFactory::MimeType.

        * Api/qwebplugindatabase.cpp:
        * Api/qwebplugindatabase.h:
        * Api/qwebpluginfactory.cpp:
        (QWebPluginFactory::MimeType::operator==):
        * Api/qwebpluginfactory.h:

2009-08-04  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Simon Hausmann.

        Add QWebPluginDatabase API to the Qt API.

        https://bugs.webkit.org/show_bug.cgi?id=27651

        * Api/headers.pri:
        * Api/qwebplugindatabase.cpp: Added.
        (QWebPluginPrivate::QWebPluginPrivate):
        (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate):
        (QWebPlugin::MimeType::operator==):
        (QWebPlugin::QWebPlugin):
        (QWebPlugin::~QWebPlugin):
        (QWebPlugin::name):
        (QWebPlugin::description):
        (QWebPlugin::mimeTypes):
        (QWebPlugin::supportsMimeType):
        (QWebPlugin::path):
        (QWebPlugin::isNull):
        (QWebPlugin::setEnabled):
        (QWebPlugin::isEnabled):
        (QWebPlugin::operator==):
        (QWebPlugin::operator!=):
        (QWebPlugin::operator=):
        (QWebPluginDatabase::QWebPluginDatabase):
        (QWebPluginDatabase::~QWebPluginDatabase):
        (QWebPluginDatabase::plugins):
        (QWebPluginDatabase::defaultSearchPaths):
        (QWebPluginDatabase::searchPaths):
        (QWebPluginDatabase::setSearchPaths):
        (QWebPluginDatabase::addSearchPath):
        (QWebPluginDatabase::refresh):
        (QWebPluginDatabase::pluginForMimeType):
        (QWebPluginDatabase::setPreferredPluginForMimeType):
        * Api/qwebplugindatabase.h: Added.
        * Api/qwebplugindatabase_p.h: Added.
        * Api/qwebsettings.cpp:
        (QWebSettings::pluginDatabase):
        * Api/qwebsettings.h:
        * tests/qwebplugindatabase/qwebplugindatabase.pro: Added.
        * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: Added.
        (tst_QWebPluginDatabase::installedPlugins):
        (tst_QWebPluginDatabase::searchPaths):
        (tst_QWebPluginDatabase::null_data):
        (tst_QWebPluginDatabase::null):
        (tst_QWebPluginDatabase::pluginForMimeType):
        (tst_QWebPluginDatabase::enabled):
        (tst_QWebPluginDatabase::operatorequal_data):
        (tst_QWebPluginDatabase::operatorequal):
        (tst_QWebPluginDatabase::preferredPlugin):
        * tests/tests.pro:

2009-08-03  Balazs Kelemen  <kelemen.balazs.3@stud.u-szeged.hu>

        Reviewed by Simon Hausmann.

        Do memory cleanup when running robotized QtLauncher in debug as well.

        * QtLauncher/main.cpp:
        (launcherMain):
        (main):

2009-07-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Tor Arne Vestbø.

        [Qt] Initialize HTML5 Application Cache for QtWebKit to a sensible default
        https://bugs.webkit.org/show_bug.cgi?id=27866

        * Api/qwebpage.cpp:
        (initializeApplicationCachePathIfNecessary):
        (QWebPagePrivate::QWebPagePrivate):

2009-07-31  Jakob Petsovits  <jakob.petsovits@torchmobile.com>

        Reviewed by Adam Treat.

        Build QtWebKit without benchmark tests for Qt < 4.5.
        https://bugs.webkit.org/show_bug.cgi?id=27886

        The QBENCHMARK macro is only available from 4.5 on,
        so builds for Qt < 4.5 shouldn't try to build those.

        * tests/tests.pro:

2009-07-31  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Adam Treat.

        Fix warning by migrating use of QString.sprintf(...) to
        QString.arg().arg()...

        * WebCoreSupport/EditorClientQt.cpp:
        (dumpRange):

2009-07-31  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Tor Arne Vestbø.

        Expose the Offline Web Application Cache in the Qt API.

        * Api/qwebsettings.cpp:
        (QWebSettings::QWebSettings):
        (QWebSettings::setOfflineWebApplicationCachePath):
        (QWebSettings::offlineWebApplicationCachePath):
        (QWebSettings::setOfflineWebApplicationCacheQuota):
        (QWebSettings::offlineWebApplicationCacheQuota):
        * Api/qwebsettings.h:

2009-07-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Adam Treat.

        Add missing Q_OBJECT to class inheriting from QObject.

        * tests/qwebframe/tst_qwebframe.cpp:

2009-07-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Adam Treat.

        Fix indentation.

        * tests/qwebframe/tst_qwebframe.cpp:

2009-07-30  Volker Hilsheimer <volker.hilsheimer@nokia.com>

        Reviewed by Simon Hausmann.

        Fix documentation links to examples.

        * Api/qwebview.cpp:

2009-07-30  Balazs Kelemen  <kelemen.balazs.3@stud.u-szeged.hu>

        Reviewed by Simon Hausmann.

        Allocate MainWindow on heap in robotized QtLauncher as well.

        * QtLauncher/main.cpp:
        (main):

2009-07-29  Kevin McCullough  <kmccullough@apple.com>

        Reviewed by Darin Adler.

        Added foundation work to allow a testing infrastructure for the Web
        Inspector.

        * WebCoreSupport/InspectorClientQt.cpp:
        (WebCore::InspectorClientQt::inspectorWindowObjectCleared):
        * WebCoreSupport/InspectorClientQt.h:

2009-07-29  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>

        Reviewed by Simon Hausmann.

        [Qt] In debug mode, this fix frees cached resources
        and other unreferenced objects (by calling the
        garbage collector) to remove the LEAK messages.
        https://bugs.webkit.org/show_bug.cgi?id=27767

        * Api/qwebframe.cpp:
        (qt_drt_cache_clear):
        * QtLauncher/main.cpp:
        (main):

2009-07-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Fix the Qt build by adapting to the changes of ScriptObject.

        * Api/qwebelement.cpp:
        (setupScriptObject):

2009-07-28  Robert Hogan  <robert@roberthogan.net>

        Reviewed by Simon Hausmann.

        Add WebKit version API to Qt.

        Get the current version of WebKit from WebKit/mac/Configurations/Version.xcconfig
        at compile time and make it available to Qt applications through
        qWebKitVersion().

        Also amend the User Agent string to place the Safari clause outside
        the final bracket and to the end of the UA string.

        https://bugs.webkit.org/show_bug.cgi?id=27158

        Minor build tweak by Simon Hausmann (adding export macros to new functions).

        * Api/headers.pri:
        * Api/qwebkitversion.cpp: Added.
        (webKitVersion):
        (webKitMajorVersion):
        (webKitMinorVersion):
        * Api/qwebkitversion.h: Added.
        * Api/qwebpage.cpp:
        (QWebPage::userAgentForUrl):
        * tests/qwebview/tst_qwebview.cpp:
        (tst_QWebView::getWebKitVersion):

        http://qt.nokia.com/developer/task-tracker/index_html?id=238391&method=entry
        http://qt.nokia.com/developer/task-tracker/index_html?id=219344&method=entry
        http://qt.nokia.com/developer/task-tracker/index_html?id=241144&method=entry

8 years agoUpdate list of excluded files in mkdit-webkit script.
Jocelyn Turcotte [Fri, 18 Sep 2009 08:28:18 +0000 (10:28 +0200)]
Update list of excluded files in mkdit-webkit script.

Reviewed-by: Simon Hausmann
8 years agoQGraphicsAnchorLayout: Set size policy in the example
Anselmo Lacerda S. de Melo [Wed, 16 Sep 2009 23:28:11 +0000 (20:28 -0300)]
QGraphicsAnchorLayout: Set size policy in the example

Set QSizePolicy::Preferred to all proxy widgets (after setWidgeT) in the
QGraphicsAnchorLayout example to avoid "QSimplex: No feasible solution!"
that occurs when all items are set with QPushButton's default size policy.

Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
8 years agoQGraphicsAnchorLayout: Added an auto test for size policy
Anselmo Lacerda S. de Melo [Wed, 16 Sep 2009 23:30:37 +0000 (20:30 -0300)]
QGraphicsAnchorLayout: Added an auto test for size policy

Added an auto test for the currently supported size policies set.
This is a simple test containing a single item anchored to the layout
vertical and horizontally. The size policies are set, then the
item's minimum, preferred and maximum sizes are compared to the
expected ones, according to each policy.

Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
8 years agoQGraphicsAnchorLayout: Initial support for Size Policy
Anselmo Lacerda S. de Melo [Tue, 15 Sep 2009 15:49:53 +0000 (12:49 -0300)]
QGraphicsAnchorLayout: Initial support for Size Policy

In this commit we introduce initial support for Size Policy.
The size policies supported now are:

* QSizePolicy::Fixed
* QSizePolicy::Minimum
* QSizePolicy::Maximum
* QSizePolicy::Preferred
* QSizePolicy::Ignored

Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
8 years agoUpdate default tag name in mkdist-webkit script.
Jocelyn Turcotte [Fri, 18 Sep 2009 08:12:17 +0000 (10:12 +0200)]
Update default tag name in mkdist-webkit script.

Reviewed-by: Simon Hausmann
8 years agoChanged ingroup to correct group.
Peter Yard [Fri, 18 Sep 2009 03:51:11 +0000 (13:51 +1000)]
Changed ingroup to correct group.

8 years agoCorrected name of gestures png image name.
Peter Yard [Fri, 18 Sep 2009 03:50:27 +0000 (13:50 +1000)]
Corrected name of gestures png image name.

8 years agoColorize filter for OpenVG doesn't currently support strength()
Rhys Weatherley [Fri, 18 Sep 2009 01:12:40 +0000 (11:12 +1000)]
Colorize filter for OpenVG doesn't currently support strength()

Reviewed-by: trustme
8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Rhys Weatherley [Thu, 17 Sep 2009 22:35:00 +0000 (08:35 +1000)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoFix broken .ui file - class name was not specified correctly.
Rhys Weatherley [Thu, 17 Sep 2009 22:33:22 +0000 (08:33 +1000)]
Fix broken .ui file - class name was not specified correctly.

Reviewed-by: trustme
8 years agoFix a bug in QDirectFBWindowSurface::scroll
Anders Bakken [Thu, 17 Sep 2009 22:17:16 +0000 (15:17 -0700)]
Fix a bug in QDirectFBWindowSurface::scroll

It seems that one cannot do multiple blits within a double-buffered
surface in overlapping one another without doing a Flip in between. I
find this a little odd and will check that it's the correct behavior but
this fixes bugs in scroll(). To see a case that used to produce drawing
errors check out the collidingmouse example and drag the viewport
around.

Reviewed-by: Jervey Kong <jervey.kong@nokia.com>
8 years agoMerge commit 'origin/4.5' into 4.6
Rhys Weatherley [Thu, 17 Sep 2009 22:20:46 +0000 (08:20 +1000)]
Merge commit 'origin/4.5' into 4.6

8 years agoFix compilation for systems with MBX PowerVR headers.
Rhys Weatherley [Thu, 17 Sep 2009 22:09:53 +0000 (08:09 +1000)]
Fix compilation for systems with MBX PowerVR headers.

Reviewed-by: trustme
8 years agoStabilize test
Olivier Goffart [Thu, 17 Sep 2009 16:02:57 +0000 (18:02 +0200)]
Stabilize test

8 years agoUse the proxy in QStyle
Olivier Goffart [Thu, 17 Sep 2009 10:58:59 +0000 (12:58 +0200)]
Use the proxy in QStyle

Reviewed-by: trustme
8 years agoMerge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6
Tom Cooksey [Thu, 17 Sep 2009 15:25:08 +0000 (17:25 +0200)]
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6

Conflicts:
tests/auto/qtwidgets/tst_qtwidgets.cpp

8 years agoMerge branch '4.5' into 4.6
Tom Cooksey [Thu, 17 Sep 2009 15:22:00 +0000 (17:22 +0200)]
Merge branch '4.5' into 4.6

Conflicts:
tests/auto/qimagereader/tst_qimagereader.cpp
tests/auto/qpainter/tst_qpainter.cpp
tests/auto/qtwidgets/tst_qtwidgets.cpp

8 years agoFixed the invalid license header.
Trond Kjernåsen [Thu, 17 Sep 2009 15:12:34 +0000 (17:12 +0200)]
Fixed the invalid license header.

This caused the tests/header test to fail.

Reviewed-by: Kim
8 years agoUpdate the QWS PowerVR driver's pro to use the new EGL qmake vars
Tom Cooksey [Thu, 17 Sep 2009 15:10:28 +0000 (17:10 +0200)]
Update the QWS PowerVR driver's pro to use the new EGL qmake vars

Reviewed-by: Trustme
8 years agoMake the PowerVR screen driver for QWS compile against shipped headers
Tom Cooksey [Thu, 17 Sep 2009 13:39:59 +0000 (15:39 +0200)]
Make the PowerVR screen driver for QWS compile against shipped headers

The pvr2d.h/wsegl.h headers we ship with Qt (in src/3rdparty/powervr)
are meant for the PowerVR SGX. However, we use an MBX-specific define in
the powervr driver.

Reviewed-by: Jørgen Lind
8 years agoClean up my previous commit (remove comment and whitespace fix)
Jan-Arve Sæther [Thu, 17 Sep 2009 13:47:21 +0000 (15:47 +0200)]
Clean up my previous commit (remove comment and whitespace fix)

8 years agoFix the scrollTo() test function on Windows.
Jan-Arve Sæther [Thu, 17 Sep 2009 13:29:23 +0000 (15:29 +0200)]
Fix the scrollTo() test function on Windows.

After the QTRY_COMPARE was added, the size of the view suddenly
became a hard requirement. However, this reqirement was not met on
windows, since the forcedSize was smaller than the minimum size allowed
for the view.

Thus, it would never have its size set to forcedSize and the
QTRY_COMPARE would fail.

8 years agoFixed a bug in QToolTip when internal tool tips where reused.
Trond Kjernaasen [Thu, 17 Sep 2009 13:07:03 +0000 (15:07 +0200)]
Fixed a bug in QToolTip when internal tool tips where reused.

If a tool tip is to be reused, it *has* to be visible otherwise
it *may* get destroyed by the expiration timer before the timer is reset.
The tst_qtooltip::setPalette() test triggered this obscure bug under
Windows.

Reviewed-by: Kim
8 years agoImplement hasConflicts().
Jan-Arve Sæther [Wed, 9 Sep 2009 11:23:31 +0000 (13:23 +0200)]
Implement hasConflicts().

8 years agoFix regression after code review
Shane Kearns [Thu, 17 Sep 2009 12:28:16 +0000 (14:28 +0200)]
Fix regression after code review

The branch maintained its own set of native windows.
This was commented to be a duplication of the native window list kept
by QWidgetPrivate, and changed.
Unfortunately, the set maintained on the branch contained only window
owning controls, while the list kept by QWidgetPrivate contains all
widgets that have a CCoeControl.
Added a check for whether the control is window owning before using its
DrawableWindow() to avoid getting a null pointer.

Reviewed-by: Jason Barron
8 years agoUpdate def files
Shane Kearns [Thu, 17 Sep 2009 08:09:27 +0000 (10:09 +0200)]
Update def files

DEF files for ARMv5 UREL, that include the autotest exports.
Note that Q_AUTOTEST_EXPORT is only on by default in internal builds

Reviewed-by: Iain
8 years agoFix unused variable compiler warning
Shane Kearns [Thu, 17 Sep 2009 07:48:07 +0000 (09:48 +0200)]
Fix unused variable compiler warning

Removed UID that wasn't used.

Reviewed-by: Jason Barron
8 years agoEnable compiling Symbian port with QT_NO_CURSOR
Shane Kearns [Thu, 17 Sep 2009 07:45:52 +0000 (09:45 +0200)]
Enable compiling Symbian port with QT_NO_CURSOR

Added some missing #ifdef QT_NO_CURSOR, so the symbian port still
compiles if this feature is configured out.

Reviewed-by: Jason Barron
8 years agoFix glyph selection in symbol fonts that contain unicode cmap table
Eskil Abrahamsen Blomfeldt [Thu, 17 Sep 2009 11:21:14 +0000 (13:21 +0200)]
Fix glyph selection in symbol fonts that contain unicode cmap table

Some symbol fonts will contain a unicode cmap table in addition to the
microsoft symbol cmap table that maps the symbol range (private range
0xf000 - 0xf100) into the correct glyphs. This is essentially a broken
unicode table, and we should not prefer it if these conditions are true.
In the strict cases where these conditions apply, we fall back to the
symbol table instead.

Task-number: QT-2354
Done-with: Lars
Reviewed by: Lars

8 years agoWrong string when setting formula through menu in demos/spreadsheet.
Gabriel de Dietrich [Thu, 17 Sep 2009 12:12:12 +0000 (14:12 +0200)]
Wrong string when setting formula through menu in demos/spreadsheet.

Reviewed-by: TrustMe
Task-number: 260975
Task-number: QT-4506

8 years agoMerge branch 'orbit-fixes' into 4.6
Jan-Arve Sæther [Thu, 17 Sep 2009 12:10:29 +0000 (14:10 +0200)]
Merge branch 'orbit-fixes' into 4.6

8 years agocompile fix for embedded Linux and defined QT_COORD_TYPE
Takumi ASAKI [Thu, 17 Sep 2009 11:30:18 +0000 (13:30 +0200)]
compile fix for embedded Linux and defined QT_COORD_TYPE

If we define QT_COORD_TYPE, src/testlib doesn't compile for embedded
Linux.

Reviewed-By: joerg
8 years agoDesigner: tab order in DeviceProfileDialog corrected
Joerg Bornemann [Thu, 17 Sep 2009 11:53:36 +0000 (13:53 +0200)]
Designer: tab order in DeviceProfileDialog corrected

Reviewed-by: Friedemann Kleint
8 years agoAdd QEXPECT_FAIL for the one test that fails.
Jan-Arve Sæther [Thu, 17 Sep 2009 11:40:15 +0000 (13:40 +0200)]
Add QEXPECT_FAIL for the one test that fails.

Note that t does not fail with simplification turned off
(QT_ANCHORLAYOUT_NO_SIMPLIFICATION=1)

8 years agoAdd QTest::ignoreMessage() calls in order to reduce some console noise.
Jan-Arve Sæther [Thu, 17 Sep 2009 10:58:16 +0000 (12:58 +0200)]
Add QTest::ignoreMessage() calls in order to reduce some console noise.

8 years agoQGraphicsAnchorLayout: Added new autotests file
Jesus Sanchez-Palencia [Wed, 16 Sep 2009 17:37:50 +0000 (14:37 -0300)]
QGraphicsAnchorLayout: Added new autotests file

Several autotests written by the Orbit team were added as a new
QGraphicsAnchorLayout autotests file.

Signed-off-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
Reviewed-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
8 years agoQGraphicsAnchorLayout: Remove QGALPrivate::deleteAnchorData()
Eduardo M. Fleury [Tue, 15 Sep 2009 23:01:45 +0000 (20:01 -0300)]
QGraphicsAnchorLayout: Remove QGALPrivate::deleteAnchorData()

This method, formerly called by the QGraphicsAnchor destructor, to
remove the anchor associated to it, is no longer needed.

That destructor now calls QGALPrivate::removeAnchor(), a method
analagous to addAnchor(), that provides the high level feature
of "anchor removal".

Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Reviewed-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
8 years agoQGraphicsAnchorLayoutPrivate: Removing item from layout when there are no more anchors
Jesus Sanchez-Palencia [Tue, 15 Sep 2009 20:10:32 +0000 (17:10 -0300)]
QGraphicsAnchorLayoutPrivate: Removing item from layout when there are no more anchors

Now the removeAnchor() method has returned and it is ready for being use in the API for ensure
that items are removed from the layout when they have no more external anchors.

Signed-off-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
Reviewed-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
8 years agoQGraphicsAnchorLayoutPrivate: Removing method removeAnchor()
Jesus Sanchez-Palencia [Tue, 15 Sep 2009 19:59:20 +0000 (16:59 -0300)]
QGraphicsAnchorLayoutPrivate: Removing method removeAnchor()

All method calls were replaced by calling removeAnchor_helper(), with
internalVertex() calls

Signed-off-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
Reviewed-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
8 years agoQGraphicsAnchorLayout: Removing methods names inconsistencies on private class
Jesus Sanchez-Palencia [Tue, 15 Sep 2009 19:28:56 +0000 (16:28 -0300)]
QGraphicsAnchorLayout: Removing methods names inconsistencies on private class

QGraphicsAnchorLayoutPrivate now has addAnchor() replacing anchor() and
addAnchor_helper() replacing addAnchor(). With this changes we are respecting
the API behavior, where anchor() is a "getter" instead of a "setter".

Signed-off-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
Reviewed-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
8 years agoQGraphicsAnchorLayout: Handle negative spacing in "setAnchorSpacing"
Eduardo M. Fleury [Fri, 11 Sep 2009 21:21:08 +0000 (18:21 -0300)]
QGraphicsAnchorLayout: Handle negative spacing in "setAnchorSpacing"

The simplex solver cannot handle negative-sized anchors. Those
should be handled by the layout itself. This is done by inverting
such anchors and making their size positive again.

Ie. A --> B  with size -10   becomes   B --> A with size 10

Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Reviewed-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
8 years agoQGraphicsAnchorLayout: Fix anchor creation heuristics
Eduardo M. Fleury [Fri, 11 Sep 2009 20:59:46 +0000 (17:59 -0300)]
QGraphicsAnchorLayout: Fix anchor creation heuristics

Fixing the case where creating an anchor between the
layout Left edge and an item Right edge (or vice-versa)
would have different behaviors depending on the argument
order.

Now both calls below have the same meaning:
  addAnchor(layout, Qt::AnchorLeft, widget, Qt::AnchorRight)
  addAnchor(widget, Qt::AnchorRight, layout, Qt::AnchorLeft)

Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Reviewed-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
8 years agoControl-drag header selection behaved wierdly.
Gabriel de Dietrich [Thu, 17 Sep 2009 11:07:30 +0000 (13:07 +0200)]
Control-drag header selection behaved wierdly.

The QItemSelectionModel::Current was not set in
QTableViewPrivate::selectColumn(). However, Control-drag selection in
QTableView behaved differently than other software such as OpenOffice's
spreadsheet.

Now the behaviour when Control-dragging is that the selection will be set to
the opposite of the selection state of the first cell. If that cell is
selected, we will deselected the cells while dragging, and conversely, if it
isn't selected, the cells will be selected.

Reviewed-by: Olivier
Task-number: QT-1435
Task-number: 191545

8 years agoMerge branch '4.6' of git://scm.dev.nokia.troll.no/qt/qt-releases; branch '4.6' of...
Jason McDonald [Thu, 17 Sep 2009 11:00:18 +0000 (21:00 +1000)]
Merge branch '4.6' of git://scm.dev.nokia.troll.no/qt/qt-releases; branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoAdd a QMAKE_LFLAGS_EGL and QMAKE_LFLAGS_OPENGL
Tom Cooksey [Thu, 17 Sep 2009 09:53:14 +0000 (11:53 +0200)]
Add a QMAKE_LFLAGS_EGL and QMAKE_LFLAGS_OPENGL

When you link cross-compiled applications on Linux, the linker needs to
be able to find not just the libraries the application links against
(like libQtGui.so), but the libraries' dependencies. E.g.
examples/widgets/wiggly links against QtGui. QtGui links against
libEGL.so. Therefore, when you link wiggly, the linker has to be able to
find libEGL.so, even though wiggly doesn't use EGL directly.

To facilitate this, -Wl,rpath-link=/path/to/egl needs to be added to
QMAKE_PRL_LIBS in libQtGui.prl and -Wl,rpath-link=/path/to/gl needs to
be added to QMAKE_PRL_LIBS in libQtOpenGL.prl. This only needs to be
done when the EGL/GL libs are not in the default search directories. As
the paths will also change depending on the mkspec, two new variables
have been added: QMAKE_LFLAGS_EGL & QMAKE_LFLAGS_OPENGL. These can be
set in the mkspec and will be added to the relevent prls. E.g.

QMAKE_LFLAGS_EGL     += -Wl,-rpath-link=$${QMAKE_LIBDIR_EGL}
QMAKE_LFLAGS_OPENGL  += -Wl,-rpath-link=$${QMAKE_LIBDIR_OPENGL}

Reviewed-by: Marius Storm-Olsen
8 years agoFix license headers.
Jason McDonald [Thu, 17 Sep 2009 10:56:40 +0000 (20:56 +1000)]
Fix license headers.

Reviewed-by: Trust Me
8 years agoFixed QFileInfo autotest absolute path tests not to expect C-drive.
Miikka Heikkinen [Thu, 17 Sep 2009 10:53:35 +0000 (13:53 +0300)]
Fixed QFileInfo autotest absolute path tests not to expect C-drive.

Changed absolute path tests so that they will work from any drive.

Reviewed-by: Shane Kearns
8 years agoStabilize tst_QGraphicsItem::hoverEventsGenerateRepaints.
Bjørn Erik Nilsen [Thu, 17 Sep 2009 10:46:18 +0000 (12:46 +0200)]
Stabilize tst_QGraphicsItem::hoverEventsGenerateRepaints.

Make the test independent of window activation; we're only
interested in the behavior for hover events.

8 years agoStabilize tst_QGraphicsItem::cacheMode on the Mac.
Bjørn Erik Nilsen [Thu, 17 Sep 2009 10:31:39 +0000 (12:31 +0200)]
Stabilize tst_QGraphicsItem::cacheMode on the Mac.

Problem was that the window got activated *after* the items
were added to the scene, causing two repaints on the viewport.