qt:qt-l10n-hu.git
8 years agoRespect the layoutDirection property of the parent widget. 4.6
Jan-Arve Sæther [Wed, 9 Sep 2009 13:54:40 +0000 (15:54 +0200)]
Respect the layoutDirection property of the parent widget.

Add a layoutDirection autotest, and sprinkle some of the tests
with checkReverseDirection()

Reviewed-by: Eduardo M. Fleury
8 years agoDo not use FBO as backend for window surface in opengl engine
Eskil Abrahamsen Blomfeldt [Fri, 11 Sep 2009 12:44:03 +0000 (14:44 +0200)]
Do not use FBO as backend for window surface in opengl engine

There are too many platform regressions when using the FBO as a backend
for the opengl engine. We need to find whether it's possible to work
around them, but for the time being, to preserve compatibility, we
only use FBOs when using the opengl2 engine.

Example of issue: Smudged text and smudged diagonal lines on Windows XP
when running with opengl engine and latest nvidia driver.

Reviewed-by: Trond
8 years agoCompile fix for windows
Robert Griebl [Fri, 11 Sep 2009 12:35:34 +0000 (14:35 +0200)]
Compile fix for windows

Reviewed-by: TrustMe
8 years agoBetter failure message when it fails
Paul Olav Tvete [Fri, 11 Sep 2009 12:04:03 +0000 (14:04 +0200)]
Better failure message when it fails

Some platforms do not recalculate the Qt::WA_UnderMouse attribute when
a widget is shown underneath the mouse.

Reviewed-by: Olivier
8 years agoMerge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6
Janne Anttila [Fri, 11 Sep 2009 11:30:01 +0000 (14:30 +0300)]
Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6

8 years agoFixed QWidget::activateWindow for Symbian.
Janne Anttila [Fri, 11 Sep 2009 11:29:23 +0000 (14:29 +0300)]
Fixed QWidget::activateWindow for Symbian.

activeWindow documentation says: "active window is a visible
top-level window that has the keyboard input focus" and "If you want to
ensure that the window is stacked on top as well you should also call
raise(). Note that the window must be visible, otherwise activateWindow
has no effect."

What we were doing earlier was basically raise. Now we just set the
keyboard focus to underlying native window.

Task-number: 260685
Reviewed-by: Jason Barron
8 years agoSkip pointless test
Paul Olav Tvete [Fri, 11 Sep 2009 11:21:35 +0000 (13:21 +0200)]
Skip pointless test

It is planned that this test will do something sensible in the future.

Reviewed-by: Jesper
8 years agoOut of memory fix for qUncompress
Robert Griebl [Thu, 10 Sep 2009 14:14:59 +0000 (16:14 +0200)]
Out of memory fix for qUncompress

qUncompress shouldn't crash when running out of memory, since it might deal
with buffers which are not under user control (same behavior as Qt 4.5).
It will however throw a std::bad_alloc exception if Qt is compiled with
exception handling.

Reviewed-by: Harald Fernengel
Reviewed-by: Ralf Engels
Reviewed-by: Lars Knoll
8 years agoDoc: QHeaderView::section:checked was left out of stylesheet docs.
Geir Vattekar [Fri, 11 Sep 2009 10:19:48 +0000 (12:19 +0200)]
Doc: QHeaderView::section:checked was left out of stylesheet docs.

Task-number: 254741
Reviewed-by: Trust Me
8 years agoFixed clipping bugs in GL2 graphics system with oxygen style.
Samuel Rødal [Fri, 11 Sep 2009 08:53:39 +0000 (10:53 +0200)]
Fixed clipping bugs in GL2 graphics system with oxygen style.

QGL2PaintEngineEx::clip() needs to call ensureActive() to make sure the
engine is active and synced before doing any clipping operations. We
also need to set needsSync to false before entering setState() since
otherwise we end up in an infinite loop in the case where
replayClipOperations() again calls QGL2PaintEngineEx::clip().

Reviewed-by: Tom
8 years agoEnabled use of graphics system with old GL engine for testing.
Samuel Rødal [Thu, 10 Sep 2009 13:34:05 +0000 (15:34 +0200)]
Enabled use of graphics system with old GL engine for testing.

Reviewed-by: Trond
8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Iain [Fri, 11 Sep 2009 09:49:23 +0000 (11:49 +0200)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agosmall optimization for variant handling in animations
Thierry Bastian [Fri, 11 Sep 2009 09:44:26 +0000 (11:44 +0200)]
small optimization for variant handling in animations

Just one test less

8 years agoanimations now display a warning if they don't have a end value
Thierry Bastian [Fri, 11 Sep 2009 09:34:15 +0000 (11:34 +0200)]
animations now display a warning if they don't have a end value

also improved the autotests

8 years agoFix autotests on QMenuBar
Thierry Bastian [Thu, 10 Sep 2009 09:15:02 +0000 (11:15 +0200)]
Fix autotests on QMenuBar

We have mousemove events but we were missing the mouse press ones.

8 years agoFix compile errors (missing uncaught_exception definition) on Symbian^3
Iain [Fri, 11 Sep 2009 09:19:23 +0000 (11:19 +0200)]
Fix compile errors (missing uncaught_exception definition) on Symbian^3

When using STDCPP in Symbian^3, the definition for uncaught_exception
*must* be provided before any attempt to include e32base.h is made.

This is because STDCPP support disables the standard Symbian definition
of uncaught_exception, so the version from <exception> needs to be used
instead.

Reviewed-by: Jason Barron
8 years agoClean up properly in the QPF1 font engine
Paul Olav Tvete [Fri, 11 Sep 2009 08:18:12 +0000 (10:18 +0200)]
Clean up properly in the QPF1 font engine

We have to munmap() what we have mmap()ed

Reviewed-by: Gunnar
Reviewed-by: Jeremy
8 years agoMerge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6
Janne Anttila [Fri, 11 Sep 2009 08:38:34 +0000 (11:38 +0300)]
Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6

8 years agoMerge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6
Miikka Heikkinen [Fri, 11 Sep 2009 08:37:12 +0000 (11:37 +0300)]
Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6

8 years agoFixed a bug in the autotest for q3progressbar.
Martin Smith [Fri, 11 Sep 2009 08:36:23 +0000 (10:36 +0200)]
Fixed a bug in the autotest for q3progressbar.

The "standard" test would sometimes fail (Mac OS X)
because extra paint events could be generated, which
would cause paintNumber to be > 1. Comparing it to 1
would fail. This test should be redesigned, I think.

8 years agoChanged Symbian tests to sleep only when run on emulator.
Miikka Heikkinen [Fri, 11 Sep 2009 08:33:06 +0000 (11:33 +0300)]
Changed Symbian tests to sleep only when run on emulator.

Changed comment to be more accurate and changed ifdefs so that this
will only be done for emulator.

This issue needs more comprehensive analysis and wide test runs to
determine what the pratical impact of removing this delay entirely
would be.

Task-number: 247270
Reviewed-by: Janne Anttila
8 years agoFixed QWidget::setWindowState for Symbian.
Janne Anttila [Fri, 11 Sep 2009 08:13:28 +0000 (11:13 +0300)]
Fixed QWidget::setWindowState for Symbian.

Before this commit calling setWindowState(Qt::WindowFullScreen) on
a widget instance affected all new widget instances created after this
method.

This bug happened due to fact that window decorations i.e. statuspane
and softkeys visibility was only changed when switching to or from
fullscreen state. In the reported bug it happened that second widget
was initially in Qt::WindowNoState and it was changed to Maximized.

Since window decorations are global not window specific at the moment,
the default decoration visibility for second window is the one to which
previous window has set them. In this case previous window was in
fullscreen and that's why the decorations were visible also for
second maximized window.

Probably the right fix would be to change the decoration to window
specific but that is quite a big change and for now the bug is fixed
with this commit.

Autotest: Excluding new test case, same results before and after.

Task-number: 261048
Reviewed-by: Jason Barron
8 years agoQLocalSocket (Win) emit readChannelFinished only once
Joerg Bornemann [Thu, 10 Sep 2009 16:44:52 +0000 (18:44 +0200)]
QLocalSocket (Win) emit readChannelFinished only once

If pipeClosed is true, then we've already emitted the
readChannelFinished signal. We must not do this in close() in that case.

Reviewed-by: ossi
8 years agomake tst_QLocalSocket::writeToClientAndDisconnect even more robust
Joerg Bornemann [Thu, 10 Sep 2009 16:38:43 +0000 (18:38 +0200)]
make tst_QLocalSocket::writeToClientAndDisconnect even more robust

no more qApp->processEvents() !

Reviewed-by: ossi
8 years agoMerge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6
Miikka Heikkinen [Fri, 11 Sep 2009 07:05:17 +0000 (10:05 +0300)]
Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6

8 years agoOptimized S60 version check.
Miikka Heikkinen [Fri, 11 Sep 2009 07:00:26 +0000 (10:00 +0300)]
Optimized S60 version check.

Use pure Symbian code to get S60 version, because if done using QDir,
there will be a call back to this method, resulting doing this
expensive operation twice before the cache kicks in.

Pure Symbian code also makes this method ~10x faster, speeding up
the application launch.

Task-number: 260757
Reviewed-by: Janne Anttila
8 years agoMake mipmaps work on OpenGL/ES 2.0
Rhys Weatherley [Fri, 11 Sep 2009 06:50:24 +0000 (16:50 +1000)]
Make mipmaps work on OpenGL/ES 2.0

Reviewed-by: Gunnar
8 years agoPort the textures example to OpenGL/ES 2.0
Rhys Weatherley [Fri, 11 Sep 2009 06:37:53 +0000 (16:37 +1000)]
Port the textures example to OpenGL/ES 2.0

Reviewed-by: trustme
8 years agoDump texture formats in hex, not decimal
Rhys Weatherley [Fri, 11 Sep 2009 04:53:00 +0000 (14:53 +1000)]
Dump texture formats in hex, not decimal

Reviewed-by: trustme
8 years agoRecognize the OES_packed_depth_stencil extension
Rhys Weatherley [Fri, 11 Sep 2009 00:24:56 +0000 (10:24 +1000)]
Recognize the OES_packed_depth_stencil extension

Reviewed-by: trustme
8 years agoResolve GL buffer functions in a better way
Rhys Weatherley [Fri, 11 Sep 2009 00:10:50 +0000 (10:10 +1000)]
Resolve GL buffer functions in a better way

This change should make qt_resolve_buffer_extensions() handle all
of the ARB, OES, and regular name variants for glBindBuffer(), etc
that may occur in the wild.

Reviewed-by: trustme
8 years agoResolve ARB_framebuffer_object and OES_framebuffer_object extensions
Rhys Weatherley [Thu, 10 Sep 2009 23:49:50 +0000 (09:49 +1000)]
Resolve ARB_framebuffer_object and OES_framebuffer_object extensions

Reviewed-by: trustme
8 years agoMake an EGL context current when initializing GL extensions
Rhys Weatherley [Thu, 10 Sep 2009 22:30:20 +0000 (08:30 +1000)]
Make an EGL context current when initializing GL extensions

Reviewed-by: trustme
8 years agoFix the signal output in QObject::dumpObjectInfo
Olivier Goffart [Thu, 10 Sep 2009 19:46:30 +0000 (21:46 +0200)]
Fix the signal output in QObject::dumpObjectInfo

The computation of the offset was wrong.
(The offset is the difference between the method index, and the signal
index)

Reviewed-by: trustme
8 years agoDoc: Updated the Qt for Embedded Platforms page.
David Boddie [Thu, 10 Sep 2009 18:00:19 +0000 (20:00 +0200)]
Doc: Updated the Qt for Embedded Platforms page.

Reviewed-by: Trust Me
8 years agoFixes regression in QStyleSheet regarding QFrame:no-frame
Olivier Goffart [Thu, 10 Sep 2009 16:25:46 +0000 (18:25 +0200)]
Fixes regression in QStyleSheet regarding QFrame:no-frame

In Qt know the frame is drawn in PE_Widget with stylesheet. But the
QStyleOption passed by QWidgetPrivate::drawBackground is really simple
and doesn't contains frame information.

We need to rely on the widget itself to know if we should look for the
:no-frame pseudo element.

Reviewed-by: jbache
Task-number: 261110

8 years agoQLocalSocket::readData (Windows) must return -1 on EOF
Joerg Bornemann [Thu, 10 Sep 2009 15:48:17 +0000 (17:48 +0200)]
QLocalSocket::readData (Windows) must return -1 on EOF

If we've detected a broken pipe and we have no more data in the
read buffer, then we return -1 to signal EOF.
Additionally, we close the QLocalSocket.

Reviewed-by: ossi
8 years agoQLocalSocket Windows: emit readChannelFinished if broken pipe detected
Joerg Bornemann [Thu, 10 Sep 2009 15:46:11 +0000 (17:46 +0200)]
QLocalSocket Windows: emit readChannelFinished if broken pipe detected

If we detect in a read operation that the pipe has been closed,
we must emit the readChannelFinished signal.

Reviewed-by: ossi
8 years agomake tst_QLocalSocket::writeToClientAndDisconnect more robust
Joerg Bornemann [Thu, 10 Sep 2009 14:59:58 +0000 (16:59 +0200)]
make tst_QLocalSocket::writeToClientAndDisconnect more robust

We must wait until all data is written before trying to read stuff.

Reviewed-by: ossi
8 years agorestoring a minimized window on Windows CE didn't work
Joerg Bornemann [Thu, 10 Sep 2009 14:01:20 +0000 (16:01 +0200)]
restoring a minimized window on Windows CE didn't work

After restoring a minimized window we only saw the window decoration.
All content was missing. That's because we don't get a WM_SIZE message
for restoring the window. We must react on WM_ACTIVATE in this case.
This fixes the issue for Windows mobile too.

Task-number: 260702
Reviewed-by: thartman
Conflicts:

src/gui/kernel/qguifunctions_wince.cpp

8 years agoFixed a leak in lance that could cause crashes on exit.
Trond Kjernåsen [Thu, 10 Sep 2009 15:25:36 +0000 (17:25 +0200)]
Fixed a leak in lance that could cause crashes on exit.

Reviewed-by: Kim
8 years agoS60 font db more tolerant of failure
mread [Thu, 10 Sep 2009 15:07:56 +0000 (16:07 +0100)]
S60 font db more tolerant of failure

This now loads the fonts it can and asserts that at least one is
loaded, rather than requiring all fonts to load.

Reviewed-by: Alessandro Portale
8 years agoQTextDocument::contentsChanged() was emitted twice for a single
mae [Thu, 10 Sep 2009 14:44:17 +0000 (16:44 +0200)]
QTextDocument::contentsChanged() was emitted twice for a single
insertion.

This was caught by the QSyntaxHighlighter autotest.

Reviewed-by: Paul
8 years agoFix compilation with winscw
Simon Hausmann [Thu, 10 Sep 2009 14:41:08 +0000 (16:41 +0200)]
Fix compilation with winscw

Winscw gets very confused when the name of an enum value is the same as
the name of an entire namespace, JSC in this case. Renaming the enum
value to JavaScriptCore fixes this.

Rubber-stamped-by: Kent
8 years agoRe-order begin() so everything needing a current context has one 4.6-stable
Tom Cooksey [Thu, 10 Sep 2009 13:56:11 +0000 (15:56 +0200)]
Re-order begin() so everything needing a current context has one

It should be up to QGLPaintDevice::beginPaint() to make the correct
context current, so everything needing a current context needs to be
moved after that call.

This patch also modifies QGLPixmapData to use QGLContext::drawTexture
rather than the GL2 PE's drawTexture, which shouldn't be called inside
beginPaint as the paint engine hasn't been fully initialised yet.

Reviewed-by: Eskil
8 years agoDoc: Documented the standard keys in item views.
Geir Vattekar [Thu, 10 Sep 2009 13:46:16 +0000 (15:46 +0200)]
Doc: Documented the standard keys in item views.

Task-number: 212278
Reviewed-by: David Boddie
8 years agoDoc: Fixed snippet bug in stylesheet docs
Geir Vattekar [Thu, 10 Sep 2009 11:43:24 +0000 (13:43 +0200)]
Doc: Fixed snippet bug in stylesheet docs

Task-number: 241222
Reviewed-by: Trust Me
8 years agoUpdate installation instructions for building for Symbian
Shane Kearns [Thu, 10 Sep 2009 13:19:49 +0000 (15:19 +0200)]
Update installation instructions for building for Symbian

Add MinGW to list of tools people need to build the tools.
Update RVCT version from 616->686
Include instructions for building with raptor

Reviewed-by: Jason Barron
8 years agoMake test pass on QWS
Paul Olav Tvete [Thu, 10 Sep 2009 11:59:03 +0000 (13:59 +0200)]
Make test pass on QWS

Reviewed-by: jbarron
8 years agoFixed rendering of text with gradient pen in GL 2 engine.
Samuel Rødal [Thu, 10 Sep 2009 11:38:58 +0000 (13:38 +0200)]
Fixed rendering of text with gradient pen in GL 2 engine.

We should bind the text mask texture after calling prepareForDraw(),
since prepareForDraw() might need to initialize the gradient texture,
which means the text mask will no longer be bound.

Task-number: 261058
Reviewed-by: Kim
8 years agoFixed crash in raster paint engine.
Samuel Rødal [Thu, 10 Sep 2009 10:26:37 +0000 (12:26 +0200)]
Fixed crash in raster paint engine.

If m_element_types is empty then we should create a QVectorPath without
element types as well.

Reviewed-by: Gunnar
8 years agoWrong opacity set on the painter in QGraphicsEffect::draw.
Bjørn Erik Nilsen [Thu, 10 Sep 2009 11:21:48 +0000 (13:21 +0200)]
Wrong opacity set on the painter in QGraphicsEffect::draw.

We have to initialize the painter with the 'effected' item's
opacity before calling QGraphicsEffect::draw; otherwise we'll
use the previous rendered item's opacity (which is wrong).

Reviewed-by: Michael Brasser
8 years agoFixed white-space handling in the SVG module.
Kim Motoyoshi Kalland [Thu, 10 Sep 2009 10:11:56 +0000 (12:11 +0200)]
Fixed white-space handling in the SVG module.

When parsing lists, only space characters were treated as white-space.
Now, carrige returns, line feeds and tabs are also treated as white-
space as described in the SVG Tiny 1.2 specification.

Task-number: 260799
Reviewed-by: Tor Arne
8 years agoAdd an autotest for QGLWidget::renderPixmap()
Tom Cooksey [Thu, 10 Sep 2009 09:48:52 +0000 (11:48 +0200)]
Add an autotest for QGLWidget::renderPixmap()

8 years agoMade raster respect SmoothPixmapTransform and Antialiasing hints better.
Samuel Rødal [Thu, 10 Sep 2009 08:00:00 +0000 (10:00 +0200)]
Made raster respect SmoothPixmapTransform and Antialiasing hints better.

SmoothPixmapTransform shouldn't imply Antialiasing for image / pixmap
drawing, since the render hints are fully orthogonal.

Task-number: 256967
Reviewed-by: Trond
8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Iain [Thu, 10 Sep 2009 10:02:32 +0000 (12:02 +0200)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoRemove (out-of-date) DEF files for Symbian winscw build.
Iain [Thu, 10 Sep 2009 10:00:13 +0000 (12:00 +0200)]
Remove (out-of-date) DEF files for Symbian winscw build.

These hadn't been updated since they were frozen against Tower (or
a build close to the one used for Tower) so they're out of date
and therefore useless.

They'll reappear when we have a DEF file strategy.

RevBy: Jason Barron

8 years agoMerge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6
Morten Sorvig [Thu, 10 Sep 2009 09:59:32 +0000 (11:59 +0200)]
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoFix focus policy propagation in QCompleter on QWS
Paul Olav Tvete [Thu, 10 Sep 2009 09:34:39 +0000 (11:34 +0200)]
Fix focus policy propagation in QCompleter on QWS

setParent(0) can change the focus policy, so let's retrieve the original
value a bit earlier.

Reviewed-by: jasplin
8 years agoEnable Qt3Support for Qt/Cocoa on Mac OS X.
Morten Sorvig [Thu, 10 Sep 2009 09:53:31 +0000 (11:53 +0200)]
Enable Qt3Support for Qt/Cocoa on Mac OS X.

Qt on Mac OS X should not be the only desktop platform
without Qt3Support once the Carpon port is dropped. This
will also make the switch from Carbon to Cocoa-based Qt
as smooth as possible.

This is a minimal port, with some code removed:
Q3FileDialog is gone.
Q3MainWindow won't get the "hide toolbar" button.
Q3ScrollView might to more updates than structly neccesary.

The rest is there, including the QT3_SUPPORT functions
in QtCore and QtGui.

8 years agoUpload texturedata in matching internal format..
Gunnar Sletta [Thu, 10 Sep 2009 09:44:28 +0000 (11:44 +0200)]
Upload texturedata in matching internal format..

Reviewed-by: Tom
8 years agoDon't yinvert pixmaps on eglx11
Gunnar Sletta [Thu, 10 Sep 2009 09:43:47 +0000 (11:43 +0200)]
Don't yinvert pixmaps on eglx11

Reviewed-by: Tom
8 years agoFix random selection when the order is descending.
Alexis Menard [Thu, 10 Sep 2009 09:40:42 +0000 (11:40 +0200)]
Fix random selection when the order is descending.

This commit fix the random selection that appear when the sort is not
ascending. The problem is that sometimes the sort is not yet made (timer
is not yet fired) so the visible children list contains both sorted items
and non sorted items (at the end). translateVisibleLocation was buggy
assuming that the list is always sorted. We have now a dirty index that
indicate where the dirty items start. And then when the sort is made
the dirty index is reset. I have added auto-test for that and fix one
that was broken for Mac. The new version of the auto-test showed a crash
because of this broken selection.

Task-number:258751
Reviewed-by:thierry

8 years agoFix crash in gl2 paint engine on Windows
Eskil Abrahamsen Blomfeldt [Thu, 10 Sep 2009 09:08:46 +0000 (11:08 +0200)]
Fix crash in gl2 paint engine on Windows

wglGetProcAddress() on Windows requires a current context. Since there
was none, the resolution of GL extensions would silently fail, the
function pointers would be null and when we tried to use them later we
would get a crash (e.g. in startup of PadNavigator.) I've added an
assert to make the cause of the crash clearer, and a makeCurrent() to
fix the crash.

Reviewed-by: Tom
8 years agoStabilize Graphics View tests
Olivier Goffart [Thu, 10 Sep 2009 09:03:11 +0000 (11:03 +0200)]
Stabilize Graphics View tests

Reviewed-by: Jesper
8 years agoStabilize some tests.
Olivier Goffart [Thu, 10 Sep 2009 08:17:26 +0000 (10:17 +0200)]
Stabilize some tests.

For the QFontMetrics test, the different way of computing the with of a
text returs different value (1 to 2 pixel difference).
So we need to make sure to use the same way to compute the with that the
one used to ellide.

8 years agoFixed handling of stop-color="currentColor" in the SVG module.
Kim Motoyoshi Kalland [Thu, 10 Sep 2009 08:39:42 +0000 (10:39 +0200)]
Fixed handling of stop-color="currentColor" in the SVG module.

The 'color' attribute is now explicitly parsed for gradient nodes.

Task-number: 260921
Reviewed-by: Trond
8 years agoMerge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6
Miikka Heikkinen [Thu, 10 Sep 2009 08:39:39 +0000 (11:39 +0300)]
Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6

8 years agoMerge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6
Morten Sorvig [Thu, 10 Sep 2009 08:38:21 +0000 (10:38 +0200)]
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoMake static builds work fot Qt/Cocoa.
Morten Sorvig [Thu, 10 Sep 2009 08:34:22 +0000 (10:34 +0200)]
Make static builds work fot Qt/Cocoa.

Add -all_load to make Objective-C categories work.
Enable hide_symbols to remove visibility issues.

8 years agoFixed various PlatSec violations when app had no AllFiles capability.
Miikka Heikkinen [Thu, 10 Sep 2009 08:27:13 +0000 (11:27 +0300)]
Fixed various PlatSec violations when app had no AllFiles capability.

Fixed QtCore in various places that caused Platform Security
violations in Symbian if AllFiles capability was missing from the
application. All of these these were caused by trying to access /private
folder unnecessarily, either by Qt code or Open C.

Task-number: 249008
Reviewed-by: Janne Koskinen
8 years agoAutotest fix for QMainWindow
Thierry Bastian [Thu, 10 Sep 2009 07:54:28 +0000 (09:54 +0200)]
Autotest fix for QMainWindow

On embedded, the size of the screen is too small to leave enough space
for the dock widgets.

8 years agoAdd a layout in the demo it looks better.
Alexis Menard [Thu, 10 Sep 2009 07:57:32 +0000 (09:57 +0200)]
Add a layout in the demo it looks better.

Reviewed-by:jan-arve

8 years agoMake exception safety test work with XML output and warnings
mread [Thu, 10 Sep 2009 07:40:54 +0000 (08:40 +0100)]
Make exception safety test work with XML output and warnings

The QTestLib XML output system throws exceptions when the system is
out of memory, which is normally quite reasonable. However when it is
used to report warnings during a catch block, this terminates the
program. So this change temporarily disables allocation failures while
the warning is being recorded.

Reviewed-by: Jason Barron
8 years agoCompile
Paul Olav Tvete [Thu, 10 Sep 2009 07:24:59 +0000 (09:24 +0200)]
Compile

Reviewed-by: Jeremy Katz
8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Rhys Weatherley [Thu, 10 Sep 2009 07:02:06 +0000 (17:02 +1000)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoAdd a mkspec for selecting gcc-4.0 on Mac OS X.
Morten Sorvig [Thu, 10 Sep 2009 06:49:56 +0000 (08:49 +0200)]
Add a mkspec for selecting gcc-4.0 on Mac OS X.

This has one known use case: compiling with the 10.4u SDKi on 10.6.

8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Rhys Weatherley [Thu, 10 Sep 2009 06:31:27 +0000 (16:31 +1000)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoReturn the correct QGLFormat to the OpenGL1 paint engine for FBO's
Rhys Weatherley [Thu, 10 Sep 2009 06:28:20 +0000 (16:28 +1000)]
Return the correct QGLFormat to the OpenGL1 paint engine for FBO's

QGLPaintDevice::format() was returning the context's format, not
the format of the window surface's FBO.  This caused the OpenGL1
paint engine to think that the window didn't have depth and
stencil buffers, even though the FBO most certainly did.

This change makes QGLPaintDevice::format() virtual and overrides it
in QGLFBOGLPaintDevice to return an updated format that includes
the context parameters plus the extra features that the FBO supports.

Reviewed-by: Tom Cooksey
8 years agoFixed crash on shutdown with GL when leaking QGLWidgets
Gunnar Sletta [Thu, 10 Sep 2009 05:24:55 +0000 (07:24 +0200)]
Fixed crash on shutdown with GL when leaking QGLWidgets

The problem was the QGLContextResource destructor which was called
when the QtOpenGL dll was unloaded. At this point in time, the gl
driver had already been unloaded so any gl calls at this point in time
would crash. It is simply wrong for the destructor to try to clean up,
so we instead output a warning if resources are leaked.

8 years agoFixed tst_selftests failure.
Rohan McGovern [Thu, 10 Sep 2009 03:41:51 +0000 (13:41 +1000)]
Fixed tst_selftests failure.

It's acceptable for the exceptionthrow test to output:
 terminate called after throwing an instance of `int'

8 years agoFix a bug with mouse events in DirectFB
Anders Bakken [Thu, 10 Sep 2009 01:39:19 +0000 (18:39 -0700)]
Fix a bug with mouse events in DirectFB

Partially revert a974ce81d6324d8d85ade0153b5ce7c757ba4fdf. It seems odd
to just ignore the actual data in the input event but when the layer and
the event differs the layer is correct.

Reviewed-by: TrustMe
8 years agoDWDESC_OPTIONS was added for DirectFB 1.1
Anders Bakken [Thu, 10 Sep 2009 01:08:32 +0000 (18:08 -0700)]
DWDESC_OPTIONS was added for DirectFB 1.1

Reviewed-by: TrustMe
8 years agos/DIRECTFB_MINOR_VERION/DIRECTFB_MINOR_VERSION/
Anders Bakken [Thu, 10 Sep 2009 02:28:52 +0000 (19:28 -0700)]
s/DIRECTFB_MINOR_VERION/DIRECTFB_MINOR_VERSION/

This will make DirectFB version tests work.

Reviewed-by: TrustMe
8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Rhys Weatherley [Thu, 10 Sep 2009 01:24:00 +0000 (11:24 +1000)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Rhys Weatherley [Thu, 10 Sep 2009 01:23:09 +0000 (11:23 +1000)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoFixes another SQL Server autotest result.
Bill King [Thu, 10 Sep 2009 01:18:12 +0000 (11:18 +1000)]
Fixes another SQL Server autotest result.

8 years agoFix font glyph handling for QPF fonts in the OpenGL1 paint engine.
Rhys Weatherley [Thu, 10 Sep 2009 01:14:47 +0000 (11:14 +1000)]
Fix font glyph handling for QPF fonts in the OpenGL1 paint engine.

Text drawing on OpenGL/ES 1.1 systems using QPF was displaying filled
boxes in place of the character glyphs.  This is due to the QPF
implementation of alphaMapForGlyph() returning a different
color table than that expected by QGLGlyphCache::cacheGlyphs().

Reviewed-by: Sarah Smith
8 years agoUse fromLatin1() in QDirectFBScreen::connect()
Anders Bakken [Wed, 9 Sep 2009 23:55:11 +0000 (16:55 -0700)]
Use fromLatin1() in QDirectFBScreen::connect()

Avoid warning when building DirectFB as part of Qt.

Reviewed-by: TrustMe
8 years agoMerge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Rhys Weatherley [Wed, 9 Sep 2009 23:06:23 +0000 (09:06 +1000)]
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6

8 years agoCompile fix for OpenGL/ES 1.1 CommonLite systems
Rhys Weatherley [Wed, 9 Sep 2009 23:05:46 +0000 (09:05 +1000)]
Compile fix for OpenGL/ES 1.1 CommonLite systems

Reviewed-by: trustme
8 years agoSuppress warnings in QtOpenGL on OpenGL/ES 1.1 systems
Rhys Weatherley [Wed, 9 Sep 2009 22:51:35 +0000 (08:51 +1000)]
Suppress warnings in QtOpenGL on OpenGL/ES 1.1 systems

Reviewed-by: trustme
8 years agoCrash in audiooutput demo when switching output
Kurt Korbatits [Wed, 9 Sep 2009 22:47:18 +0000 (08:47 +1000)]
Crash in audiooutput demo when switching output
-waveOut callback was calling into class during destruction.
Changed to wait until close of waveOut/waveIn before returning from
destructor.
-Reduced default buffer on wince implementation.
-Added error checking on buffer allocation.

Task-number:261049, 261053
Reviewed-by:Bill King

8 years agoCompile fix for OpenGL/ES 1.1 systems
Rhys Weatherley [Wed, 9 Sep 2009 22:35:03 +0000 (08:35 +1000)]
Compile fix for OpenGL/ES 1.1 systems

Reviewed-by: trustme
8 years agoDocument why an FBO of 0 needs to be bound in QGLPaintBuffer sometimes
Rhys Weatherley [Wed, 9 Sep 2009 22:12:45 +0000 (08:12 +1000)]
Document why an FBO of 0 needs to be bound in QGLPaintBuffer sometimes

Reviewed-by: trustme
8 years agoMake QGraphicsSvgItem a QGraphicsObject.
Alexis Menard [Wed, 9 Sep 2009 17:23:38 +0000 (19:23 +0200)]
Make QGraphicsSvgItem a QGraphicsObject.

This item was inheriting from QObject and QGraphicsItem so there is
no point to not make it a QGraphicsObject. I have added some properties
that was specific to this class, i.e. elementId.

Reviewed-by: ogoffart
Reviewed-by: andreas
Reviewed-by: bnilsen
8 years agoFix incorrect fallback for icon themes
Jens Bache-Wiig [Wed, 9 Sep 2009 17:08:07 +0000 (19:08 +0200)]
Fix incorrect fallback for icon themes

When using themed icons, we incorrectly used the systemTheme
as the fallback. This is not correct as the idea of the fallback
was to use the generic "gnome" or "oxygen" themes if the
proper theme was not available.

Reviewed-by: joao
8 years agoCompile
Anders Bakken [Wed, 9 Sep 2009 16:05:14 +0000 (09:05 -0700)]
Compile

Partially revert 6715f2f29ae413b328243d8c3dbe15cfba51d33f

struct QWSServerCleaner { ~QWSServerCleaner(); } is not a function.

Reviewed-by: Noam Rosenthal <noam.rosenthal@nokia.com>
8 years agoDoc: First part of my review of the gestures overview.
David Boddie [Wed, 9 Sep 2009 15:57:09 +0000 (17:57 +0200)]
Doc: First part of my review of the gestures overview.

Reviewed-by: Trust Me
8 years agoFix QtScript compilation against external JSC sources
Simon Hausmann [Wed, 9 Sep 2009 14:21:38 +0000 (16:21 +0200)]
Fix QtScript compilation against external JSC sources

Print a message when doing so and don't re-define qmake functions that
come from JavaScriptCore.pri.

Reviewed-by: Trust me