profile/ivi/qtbase.git
11 years agoImprove docs.
Frederik Gladhorn [Wed, 15 Aug 2012 11:32:02 +0000 (13:32 +0200)]
Improve docs.

Change-Id: I073398e4da14a1c6489c951200f022a346f4d2fa
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoDon't define QT_NO_ICONV on Windows: that comes from qconfig.h
Thiago Macieira [Thu, 23 Aug 2012 15:25:44 +0000 (17:25 +0200)]
Don't define QT_NO_ICONV on Windows: that comes from qconfig.h

Both the configure script and configure.exe add QT_NO_ICONV to qconfig.h
in case they can't find iconv. Since Windows doesn't use iconv anyway,
we don't need to set QT_NO_ICONV here.

MSVC likes to print a warning that a macro is redefined. That gets quite
spammy...

Change-Id: Ide9800f6f848bc0c2d8bdbcb41875a709d3e249c
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoAdd qiterator.h to tools.pri
Thiago Macieira [Thu, 23 Aug 2012 10:23:10 +0000 (12:23 +0200)]
Add qiterator.h to tools.pri

Change-Id: I2c8182adbf513231bcef5dc2de60217753a54b76
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
11 years agoQDBusMetaType: #if -> #ifdef QT_BOOTSTRAPPED
Marc Mutz [Fri, 24 Aug 2012 09:30:21 +0000 (11:30 +0200)]
QDBusMetaType: #if -> #ifdef QT_BOOTSTRAPPED

The rest of the code uses #ifdef/#ifndef, so do so here, too.

Change-Id: I4811755f9a1c2a1cab371e3bea78d3c5f9af086e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoqdbus_loadLibDBus: remove unneeded volatile qualification
Marc Mutz [Fri, 24 Aug 2012 09:13:38 +0000 (11:13 +0200)]
qdbus_loadLibDBus: remove unneeded volatile qualification

The variable is only ever accessed under mutex protection, and
doesn't otherwise look like it could be changed by the hardware,
so remove the volatile qualifier.

Change-Id: I3bb00ed6f8017d662bbf73425a70d52116cc9297
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix doc: qglcolormap is not the opengl module
Frederik Gladhorn [Fri, 24 Aug 2012 13:32:34 +0000 (15:32 +0200)]
Fix doc: qglcolormap is not the opengl module

Change-Id: I134aeafbabc62e36da20e0a6df667b6c1aa0c477
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agofbbackingstore: Don't overload inherited virtual function
Kent Hansen [Fri, 24 Aug 2012 08:38:20 +0000 (10:38 +0200)]
fbbackingstore: Don't overload inherited virtual function

The QPlatformBackingStore::endPaint function does not take any
parameters.

Change-Id: If15d7824d65a52c38332c6676c12a954469a58ab
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoTest for quadratic behaviour when rendering long line in QTextEdit
Olivier Goffart [Thu, 16 Aug 2012 07:55:50 +0000 (09:55 +0200)]
Test for quadratic behaviour when rendering long line in QTextEdit

QTextEdit showing long lines using lots of text format (for example
with a syntax highlighter) used to expose a quadratic behaviour which
make it impossible to edit files with long lines.

It was fiexed in the few previous commit

Task-number: QTBUG-8389
Change-Id: Ib7203497a7699a85ae1dfb70fe65d5fb36884b58
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoFix performence problem while shaping a lines with many scripts
Olivier Goffart [Thu, 16 Aug 2012 07:53:44 +0000 (09:53 +0200)]
Fix performence problem while shaping a lines with many scripts

Fix quadradic behaviour regression introduced in commit
2e6b8b4734710377e25c199e3ff7865628e7d723

Task-number: QTBUG-22275
Change-Id: I343452c6b1cd0e571770e5dadd3cd6fd3167c96d
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoSpeed up QTextEngine::setBoundary
Olivier Goffart [Thu, 19 Jul 2012 12:42:37 +0000 (14:42 +0200)]
Speed up QTextEngine::setBoundary

Before, setBoundary was O(N), now it is O(log N) assuming the boundaries
are added in order. (splitItem might still be linear because of the call
to QVector::insert)

This speeds up a lot QTextEngine::addRequiredBoundaries when there is a
lot of addFormats. (For example if there is a very long line with syntax
highlighting)

Task-number: QTBUG-8389
Change-Id: I10c9fca72343f46db24b1d4f519f7747188d4009
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoSpeed up QTextEngine::resolveAdditionalFormats
Olivier Goffart [Thu, 19 Jul 2012 12:54:10 +0000 (14:54 +0200)]
Speed up QTextEngine::resolveAdditionalFormats

Don't call the linear QTextEngine::format in the loop.
Instead, keep track of the current formats by indexing their start and end position.

Task-number: QTBUG-8389
Change-Id: I89c18b804111edfab6254442cbee33da39d1a273
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agodoc: Fix some qdoc warnings
Eskil Abrahamsen Blomfeldt [Thu, 23 Aug 2012 09:35:11 +0000 (11:35 +0200)]
doc: Fix some qdoc warnings

QDoc doesn't supported nested tags, and there doesn't seem to be
any way to trick it into thinking you've mentioned the argument
(\omit didn't work), so actually rephrasing is the only way to
kill the warning. Also add a const modifier to a signature to
make it match the declaration.

Change-Id: Ie02a488c42565205e827602959111c53e2d05a83
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoCompile without the deprecated filterEvent function
Thiago Macieira [Thu, 23 Aug 2012 15:15:07 +0000 (17:15 +0200)]
Compile without the deprecated filterEvent function

Use the filterNativeEvent function, which also takes the name of the
event.

Change-Id: Ifa3dd6285a2a526b5c3de5a86a74ead706534759
Reviewed-by: David Faure <faure@kde.org>
11 years agoxcb: fix unused static warning
Marc Mutz [Mon, 13 Aug 2012 20:34:28 +0000 (22:34 +0200)]
xcb: fix unused static warning

The variable ptrXcursorLibraryLoadCursor is only used in code
wrapped in XCB_USE_XLIB.

Change-Id: If0b4997ac6e80a3709263d9793d1ca0dfd5907f3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agolinuxfb: remove unused function
Marc Mutz [Mon, 13 Aug 2012 20:33:21 +0000 (22:33 +0200)]
linuxfb: remove unused function

debug() isn't even referenced in commented-out code, and GCC warns
about it being unused, so remove.

Change-Id: I2830b7932e18cdd3643925973995bea7fea9f277
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
11 years agoQSystemTrayIcon: fix narrowing warning
Marc Mutz [Thu, 9 Aug 2012 13:43:56 +0000 (15:43 +0200)]
QSystemTrayIcon: fix narrowing warning

GCC complained:

  warning: narrowing conversion of
  ‘((QSystemTrayIconSys*)this)->QSystemTrayIconSys::<anonymous>.QWidget::winId()’
  from ‘WId {aka long long unsigned int}’ to ‘long int’ inside { } [-Wnarrowing]

Change-Id: I63908c884b51db203ee0ed659a152af77c295292
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
11 years agoQNetworkDiskCache: avoid a 31-bit truncation
Marc Mutz [Mon, 20 Aug 2012 14:24:59 +0000 (16:24 +0200)]
QNetworkDiskCache: avoid a 31-bit truncation

Network operations whose content size exceed 2G are not unheard of, and
they probably shouldn't be cached, so use the correct toX() function, one
that doesn't truncate the value in the header.

Change-Id: Ie4e68a3120c85952dd2cc9feb73c5844e20b9aa3
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
11 years agodoc: Remove documentation for removed function
Eskil Abrahamsen Blomfeldt [Thu, 23 Aug 2012 13:16:10 +0000 (15:16 +0200)]
doc: Remove documentation for removed function

Function was removed in 1582407fc782c0befd0760633324dd5c206524a1,
but the documentation was left behind.

Change-Id: Ib59197221e3be0e13db958ab3efdcc95b7c52452
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoQtNetwork: declare some classes as shared
Marc Mutz [Mon, 7 May 2012 17:48:52 +0000 (19:48 +0200)]
QtNetwork: declare some classes as shared

Change-Id: Ib3eaba59836529ad0cf8e4353b54dd0cd31fd1ad
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
11 years agoqmake: fix manifest resource for non-trivial target names
Joerg Bornemann [Thu, 23 Aug 2012 09:30:36 +0000 (11:30 +0200)]
qmake: fix manifest resource for non-trivial target names

The Microsoft Resource Compiler bails out if the rc file contains
non-trivial file name references. In particular it doesn't like
dashes in file names. We're now always quoting the file name.

Change-Id: I67b8d2c13010a0b2ec26cac915ebd1be95f1c274
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoExtract the QMetaMethodPrivate::ownMethodIndex method.
Stephen Kelly [Thu, 23 Aug 2012 09:37:45 +0000 (11:37 +0200)]
Extract the QMetaMethodPrivate::ownMethodIndex method.

Change-Id: Ic96e3582ff4332ac489f7c51ed40eb1b1a0ac42d
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
11 years agoFixed missing window decorations on compiz.
Samuel Rødal [Thu, 23 Aug 2012 08:11:44 +0000 (10:11 +0200)]
Fixed missing window decorations on compiz.

Task-number: QTBUG-26954
Change-Id: I6981338d4bbc9cf1440c9d67e9d034e0553dfeae
Reviewed-by: Jason Barron <jason.barron@nokia.com>
11 years agoMake QAbstractItemModel::sibling virtual.
Stephen Kelly [Wed, 22 Aug 2012 16:01:32 +0000 (18:01 +0200)]
Make QAbstractItemModel::sibling virtual.

This would allow implementations to create an optimized way to create
sibling indexes.

A typical pattern of QAIM implementation is to use the same internalPointer
for each row of a subtable of a model (such that the internalPointer is
related to the common parent of each set of rows) and differentiate on the
row value in the QModelIndex. Alternatively, it is also common to have the
internalPointer correspond directly to the row value for the QModelIndex.

In both cases it is possible for the implementation to optimally create a
sibling QModelIndex in the same column as a known row. Provide a virtual
method for them to do so.

Change-Id: I3b076abcd5f6087a4cb108fbc6dceeef15529987
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoMake sure we don't get duplicated doc pages.
Lars Knoll [Fri, 17 Aug 2012 06:52:12 +0000 (08:52 +0200)]
Make sure we don't get duplicated doc pages.

\group generates a page with the same name
as the \page comand afterwards.

Change-Id: Iaca6da21485532c8c3b13982bd06a06f3dbc0375
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoDoc: Add \inmodule QtCore to all QtCore class doc bodies
Thiago Macieira [Thu, 23 Aug 2012 10:22:38 +0000 (12:22 +0200)]
Doc: Add \inmodule QtCore to all QtCore class doc bodies

Change-Id: I19100755c97cc155c76a859e19940e9f9222d34e
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoDoc: Add \inmodule QtDBus to all QtDBus class doc bodies
Thiago Macieira [Thu, 23 Aug 2012 10:22:38 +0000 (12:22 +0200)]
Doc: Add \inmodule QtDBus to all QtDBus class doc bodies

Change-Id: I0aa273c355314effd563cfeda74ce7bacbef3db8
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoDoc: replace occurrence of \starslash in widget docs
Andy Nichols [Tue, 21 Aug 2012 15:42:21 +0000 (17:42 +0200)]
Doc: replace occurrence of \starslash in widget docs

Change-Id: I93c370e3d53b955057741bc3bf503e781fbb6244
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agochange http example default URL to http[s]://qt-project.org
Jeremy Katz [Wed, 22 Aug 2012 13:37:54 +0000 (15:37 +0200)]
change http example default URL to http[s]://qt-project.org

This example used to refer by default to qt.nokia.com.

Change-Id: Iecb682d0deb6270da91baf26897d44b16b39d09e
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
11 years agoDoc: Fix snippet and example referencing widget examples
Andy Nichols [Tue, 21 Aug 2012 14:13:49 +0000 (16:13 +0200)]
Doc: Fix snippet and example referencing widget examples

Widget examples were moved into a widgets subfolder, but
qdoc references were not updated.

Change-Id: Id2a4573e723745b9827c664c852807d6116f8f6d
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agotst_QMutex: add markers to the tryLock tests
Thiago Macieira [Wed, 22 Aug 2012 15:47:27 +0000 (17:47 +0200)]
tst_QMutex: add markers to the tryLock tests

Just to make it clear which two sections go together.

Change-Id: If3724d1c84172a61bdd7931cc567f4b7140d4f8a
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
11 years agoRemove remaining bits of deprecated QInputPanel
Pekka Vuorela [Tue, 21 Aug 2012 11:19:47 +0000 (14:19 +0300)]
Remove remaining bits of deprecated QInputPanel

Introduced during Qt5 development and renamed to QInputMethod.

Change-Id: If6744648dc98b779e65c449ae32626db574181df
Reviewed-by: Joona Petrell <joona.petrell@gmail.com>
11 years agoRemove unused inotify includes in the filesystem watcher test
Thomas McGuire [Wed, 15 Aug 2012 13:54:04 +0000 (15:54 +0200)]
Remove unused inotify includes in the filesystem watcher test

Change-Id: I346ef6ccf7b09390bef6d35c82ecee6dee1711fc
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoICU: Fix crash in codecForMib(2107)
Kai Koehne [Wed, 22 Aug 2012 11:51:45 +0000 (13:51 +0200)]
ICU: Fix crash in codecForMib(2107)

availableMibs() unconditionally adds 2107 to the list of mibs. The patch
ensures that codecForMib() also knows about this special TSCII codec.

(Note that the autotest only really checks this code path if only this
test case is run. The other tests already fill the internal codec cache
otherwise).

Change-Id: Id987d7cecd5f5700cca75e9b85b37011f8e5c622
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoRemove qWaitForWindowShown(QWindow*) overload.
Stephen Kelly [Wed, 22 Aug 2012 09:24:15 +0000 (11:24 +0200)]
Remove qWaitForWindowShown(QWindow*) overload.

The QWindow* overload was introduced for Qt 5.0, but is unused already.

Change-Id: Ic07f19eac87bc93a589017407668760fceb2f632
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
11 years agoA few more random documentation fixes
Shawn Rutledge [Wed, 15 Aug 2012 16:40:37 +0000 (18:40 +0200)]
A few more random documentation fixes

@p replaced by \a, \QD replaced by {Qt Designer}, couple of enums etc.

Change-Id: I315510690bf52e42db519292b4122fa24c73bbc9
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
11 years agotst_QTreeView: fix unused variable warning
Marc Mutz [Wed, 22 Aug 2012 10:04:56 +0000 (12:04 +0200)]
tst_QTreeView: fix unused variable warning

Change-Id: Idf18e4615754d3b7b8a09d6fdec91344a7408c18
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoDe-inline QVariant(float)
Harald Fernengel [Wed, 22 Aug 2012 11:34:21 +0000 (13:34 +0200)]
De-inline QVariant(float)

All QVariant constructors are not inline, so change QVariant(float) as
well. This allows for refactoring of QVariant during lifetime of Qt 5
without breaking QVariant(float) case.

Change-Id: Icd1fc331a1ef8a2872be811aa7d1160406038f06
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
11 years agoFix bug in configure where Qt did not compile with QT_ICONV=no
Jan-Arve Saether [Tue, 21 Aug 2012 09:52:28 +0000 (11:52 +0200)]
Fix bug in configure where Qt did not compile with QT_ICONV=no

It did not compile because at the time qconfig.h was preprocessed,
QT_NO_ICONV was already defined, causing the #define QT_NO_ICONV to
fail. It should be guarded like most other defines in qconfig.h.
Also fix QT_CUPS=no, QT_ICONV=no, QT_GLIB=no, QT_NOTIFY=no and
QT_LARGEFILE_SUPPORT=64 the same way.

Change-Id: Ic9e0295756c35cb7c62e18eb9b63b1410e7de051
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoMove Qt::CursorMoveStyle docs to the right file.
Frederik Gladhorn [Fri, 17 Aug 2012 13:10:01 +0000 (15:10 +0200)]
Move Qt::CursorMoveStyle docs to the right file.

Change-Id: I26cc7336b33495a2649285cfeddeadec62e94d83
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
11 years agoFix accessibility unit test compilation
Pekka Vuorela [Tue, 21 Aug 2012 11:18:40 +0000 (14:18 +0300)]
Fix accessibility unit test compilation

Change-Id: I72c931e0704175b6b48d66a6df54784bcec6860c
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
11 years agoLogging: make qEmergencyOut() not allocate from the heap
Marc Mutz [Fri, 3 Aug 2012 07:32:05 +0000 (09:32 +0200)]
Logging: make qEmergencyOut() not allocate from the heap

Commit 6e6b74c0 introduced heap allocation in the form of
QString::fromLatin1().utf16() into qEmergencyOut(), a function
that's called in OOM situations and in cases where another
exception is still in flight.

Luckily, QString::fromLatin1().utf16() is just a funny way of
copying an array of chars into an array of wchar_ts, so we do
that manually now and use a static wchar_t buffer. While at it,
also throw text elision into the mix.

This commit also fixes the message passed to _CrtDbgReportW().
What should be displayed is the emergency_buf, not the format
string.

Also remove a similar allocation in qt_message_output().

Change-Id: I2c44a298fc0927bb992de4977a7e4a7b47b16b26
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoSimple optimisation in toLocal8Bit(): call codecForLocale once only
Thiago Macieira [Wed, 15 Aug 2012 16:15:06 +0000 (18:15 +0200)]
Simple optimisation in toLocal8Bit(): call codecForLocale once only

The function is only slow the first time we call it, but there's no
reason we can't do this simple optimisation anyway.

Change-Id: Icacbbeb340838b32f5278b76d1860ad22dc9f7b7
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoFix transformation in eglfs backingstore
Laszlo Agocs [Wed, 15 Aug 2012 15:17:38 +0000 (18:17 +0300)]
Fix transformation in eglfs backingstore

While not visible with forced-fullscreen windows, the formula
used to set up positioning on the Y axis is wrong. (with the GL
coordinate system Y goes 1..-1 when moving top-to-bottom)

Taken from kms' version of the backingstore which had the formulas
corrected.

Change-Id: I460a4eec925e47b08453af4e093d719567af22ea
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoRemove deprecation from enumerations in QtGui.
Friedemann Kleint [Wed, 22 Aug 2012 06:31:57 +0000 (08:31 +0200)]
Remove deprecation from enumerations in QtGui.

Referencing them in a (deprecated) function declaration causes
a deprecation warning to be emitted each time the header is
included, which causes a massive amount of warnings for qevent.h.

It should be sufficient to deprecate them in the documentation
and to deprecate function using them.

Change-Id: I531b7c893e73428703cfb302615bff382abce54f
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoMove the QT_COMPILER_SUPPORTS_xxx defines to qconfig.h
Thiago Macieira [Sat, 11 Aug 2012 20:55:04 +0000 (22:55 +0200)]
Move the QT_COMPILER_SUPPORTS_xxx defines to qconfig.h

This reduces dramatically the command-line for compiling Qt sources.

These are private macros, only to be used by Qt's own modules, so the
compiler setting is either the same or, possibly, better. In other
words, in the worst case, when compiling a module with a better
compiler than for qtbase, such module might not enable all the
functionality it could otherwise do.

If we switch to a buildsystem that can support this properly in the
future, these macros should be removed.

Change-Id: I71f2d12ec98c9dd40eaab9de4a17446bd1066020
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agotst_QColumnView: fix unused variable warning
Marc Mutz [Wed, 22 Aug 2012 10:04:44 +0000 (12:04 +0200)]
tst_QColumnView: fix unused variable warning

Change-Id: I41a71faa64a20cebab058cf69181104eceea2339
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoOptimize QAbstractItemModel::sibling a bit.
Stephen Kelly [Wed, 22 Aug 2012 14:11:20 +0000 (16:11 +0200)]
Optimize QAbstractItemModel::sibling a bit.

QModelIndex::sibling has a simliar optimization.

Change-Id: Ic0717d480ba0d46a4c0c88064bc9eda4c4ffe6f6
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoqmake: fix embedding of generated manifests in debug mode
Joerg Bornemann [Wed, 22 Aug 2012 14:51:30 +0000 (16:51 +0200)]
qmake: fix embedding of generated manifests in debug mode

The existence of the manifest backup is used as a marker to decide
whether to embed the manifest in a second link step or not.
If it's present, the embedding took place in the first link step.
If it's not present, we must link again incrementally.
That logic was implemented faulty.

Change-Id: I10154dbbbe70c7981795ac66d46a166907ba13ec
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoMake keyboard search work in the current column, not only the first.
Stephen Kelly [Wed, 22 Aug 2012 14:18:11 +0000 (16:18 +0200)]
Make keyboard search work in the current column, not only the first.

Task-number: QTBUG-26540
Change-Id: I1c365aeb013f5ddedd0589aa4c4844be759a3882
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoFix indexAbove and indexBelow to return indexes in the correct column.
Stephen Kelly [Wed, 22 Aug 2012 14:10:01 +0000 (16:10 +0200)]
Fix indexAbove and indexBelow to return indexes in the correct column.

They used to always return indexes in column 0.

Change-Id: I2cf4239e0a975b37548de00a1deb916fcd88b4c7
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoAdd -pipe option of win32-g++'s QMAKE_CFLAGS
Yuchen Deng [Sun, 19 Aug 2012 07:38:44 +0000 (15:38 +0800)]
Add -pipe option of win32-g++'s QMAKE_CFLAGS

Change-Id: Iad155d6340666283a31f82f8c7381f23018f7e40
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agomake configure set up QMAKE_DEFAULT_{INC,LIB}DIRS
Oswald Buddenhagen [Tue, 14 Aug 2012 20:09:33 +0000 (22:09 +0200)]
make configure set up QMAKE_DEFAULT_{INC,LIB}DIRS

hard-coding it in unix.conf was no particularly good idea for hopefully
obvious reasons.

the windows version is so far just a stub that does what the makespecs
hard-coded - more doesn't seem worth the effort. the guys interested in
x-building may want to rectify it at some point, but it's not going to
be easy.

Change-Id: I8fedd841a8416f8c0c57018752eae9510b5d00d0
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoqmake: fix generated rc file for embedding manifests
Joerg Bornemann [Wed, 22 Aug 2012 14:51:09 +0000 (16:51 +0200)]
qmake: fix generated rc file for embedding manifests

The rc file is in the same directory as the manifest file.
Therefore the include must consist of the filename and must not include
the file's path.

Change-Id: I4f5ac11b131f39ea8c425aca93fcf82d150c0204
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoClean up borders in cleanlooks
Jens Bache-Wiig [Tue, 21 Aug 2012 16:19:36 +0000 (18:19 +0200)]
Clean up borders in cleanlooks

This aligns the dockwidget appearance in cleanlooks with
that we use for Gtk style. It should look a lot cleaner this
way as most of the borders were redundant.

Change-Id: Idf20a105f583ca8cdbba0bcb6f22b298d53cc40d
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
11 years agoDoc: Fix snippet bug in State Machine overview.
Geir Vattekar [Tue, 21 Aug 2012 13:15:07 +0000 (15:15 +0200)]
Doc: Fix snippet bug in State Machine overview.

Task-number: QTBUG-24719
Change-Id: Ia0c802f275eaf009e42ffef4cc538f3b3d7561d0
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoFixed non-GL applications crashing when GLX/EGL initialization fails on xcb.
Samuel Rødal [Tue, 21 Aug 2012 15:36:03 +0000 (17:36 +0200)]
Fixed non-GL applications crashing when GLX/EGL initialization fails on xcb.

Change-Id: I5a08d6067272575aa56074aaebe308c3d49299bb
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoDoc: change \menu to \uicontrol in application example docs
Andy Nichols [Tue, 21 Aug 2012 14:30:52 +0000 (16:30 +0200)]
Doc: change \menu to \uicontrol in application example docs

\menu command has been replaced by \uicontrol in qdoc

Change-Id: Ib105df58c565c96b34579720acb62fe64e7806c4
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoremove a '.' at the end of \sa that confuses qdoc
Jeremy Katz [Tue, 21 Aug 2012 14:48:36 +0000 (16:48 +0200)]
remove a '.' at the end of \sa that confuses qdoc

Change-Id: I74532ba206a7e869328541599d5f184f18c224f1
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoDoc: Really minor typo fix
Sergio Ahumada [Tue, 21 Aug 2012 16:36:26 +0000 (18:36 +0200)]
Doc: Really minor typo fix

Task-number: QTBUG-26891
Change-Id: I9b726d8766337fbb001afcb9ecbc45f51b6e363f
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoMake Qt compile with -DQDND_DEBUG and fix debug messages
Berthold Krevert [Wed, 8 Aug 2012 16:38:37 +0000 (18:38 +0200)]
Make Qt compile with -DQDND_DEBUG and fix debug messages

Change-Id: Idf34880179e27cdd48ea3365108d2c7bca07e596
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoFix minor typo in cmake files.
Stephen Kelly [Tue, 21 Aug 2012 11:27:21 +0000 (13:27 +0200)]
Fix minor typo in cmake files.

LIB_LOCATION is a cmake variable, not a qmake variable.

Change-Id: I1ec2feaca0c52400bd21dec371c9170dc95227b1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years agoOnly set the IMPLIB target properties on Windows.
Stephen Kelly [Tue, 21 Aug 2012 10:18:30 +0000 (12:18 +0200)]
Only set the IMPLIB target properties on Windows.

Change-Id: I5362ae87c90fe08460599602b54484b6d4491db8
Reviewed-by: Clinton Stimpson <clinton@elemtech.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoAdd hint for touch -> mouse event synthesizing
Morten Johan Sorvig [Wed, 8 Aug 2012 09:44:39 +0000 (11:44 +0200)]
Add hint for touch -> mouse event synthesizing

Commit 7808ec79 changes QApplication to synthesize
mouse events from (unhandled) touch events.

On Mac OS X this creates a conflict for two-finger
scroll swipes, which generates both touch events and
mouse wheel events: scrolling in QTextEdit will also
select the text.

Add a SynthesizeMouseFromTouchEvents platform style
hint that enables the event synthesising. Set to true
by default and false in Cocoa.

Change-Id: I1ffa5a141476aa38b81ce92a87eff676c7ec2276
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
11 years agoDo not consider sign in qIsNull.
Mitch Curtis [Wed, 1 Aug 2012 14:02:10 +0000 (16:02 +0200)]
Do not consider sign in qIsNull.

The current implementation of qIsNull only returns true if the value is
positive zero. This behaviour is not useful for use cases like
QPointF::isNull, where QPointF(-0, -0).isNull() will return false.
There doesn't seem to be a reason why the function exhibits this
behaviour (-0.0 is not accounted for in the unit tests), and for the
case of QSizeF::scale it causes a bug: qIsNull is used to check for
division by 0.0 before it proceeds, which fails in the case of -0.0.

Task-number: QTBUG-7303
Change-Id: I767e5280bd26614e8e78ae62b274eb9bc4ade385
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
11 years agoRemove icons from buttons with Cleanlooks
Jens Bache-Wiig [Tue, 21 Aug 2012 15:26:42 +0000 (17:26 +0200)]
Remove icons from buttons with Cleanlooks

The icon buttons in cleanlooks were modeled after an early version of
the Gtk 2.0 Clearlooks theme. At the time, GNOME was using
icons on all buttons. For the past couple of years, GNOME has dropped
icons on buttons by default and as this is the common behavior on
other platforms as well, I think it is time to remove them.

The button size hack was also removed due to previously emulating
a GNOME behavior. The end result at the moment is only that it makes
the button height inconsistent with other widgets.

Change-Id: I22fe8c0b3a799a807cfff74a81cebf50e8ec33d3
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
11 years agoSort qdoc ignores.
Frederik Gladhorn [Wed, 15 Aug 2012 11:53:32 +0000 (13:53 +0200)]
Sort qdoc ignores.

Change-Id: Icada1b073f12273fe8d7712a82a94bc7f3595d8b
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
11 years agodoc: Replaced FakeNode with DocNode
Martin Smith [Tue, 21 Aug 2012 13:43:51 +0000 (15:43 +0200)]
doc: Replaced FakeNode with DocNode

The name FakeNode was a bad choice. It was used
to represent something that wasn't derived from
a C++ declaration in a .h file. Any generic page
or QML item or any special kind of qdoc construct
was stored in a FakeNode. The name was unfortunate
because the constructs stored in FakeNodes were
just as real as C++ constructs.

So FakeNode has been renamed to DocNode, which
just refers to a documentation node. The node
type Fake has been replaced with node type
Document.

Change-Id: Ida9de8288b7b8915bf9273fd890ca84aaf05e182
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoFix docs for QRawFont.
Jason Barron [Tue, 21 Aug 2012 12:17:21 +0000 (14:17 +0200)]
Fix docs for QRawFont.

Use correct function name for 'swap' and replace QGlyphs -> QGlyphRun.

Change-Id: I4997a59ef643c688e8084a2013208fb760a2784a
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
11 years agoPropagate initial size constraints to QWidgetWindow.
Friedemann Kleint [Mon, 20 Aug 2012 14:38:05 +0000 (16:38 +0200)]
Propagate initial size constraints to QWidgetWindow.

Size constraints set on a widget before the creation of
the QWidgetWindow were lost (for example, Qt Creator's
preference page).

Task-number: QTBUG-26745
Change-Id: I7c2f5aed9c8817795603e5ad3c24418d66627bab
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: hjk <qthjk@ovi.com>
11 years agoTry to work around GCC 4.6's noexcept bugs, again
Thiago Macieira [Tue, 21 Aug 2012 09:09:44 +0000 (11:09 +0200)]
Try to work around GCC 4.6's noexcept bugs, again

Commit 7315296e9c94c38c842728aed199ac286a3ef174 blacklisted GCC 4.6.0
and 4.6.1 on the grounds that the bug regarding noexcept was fixed in
4.6.2. However, we have evidence of the issue remaining in 4.6.3, so it
looks like it was not the issue that the GCC team fixed.

For that reason, declare noexcept support in GCC 4.6 fatally broken and
enable it only for 4.7. It has been working fine for a month for me on
4.7.1.

Change-Id: Ic5a542235867f20657db12e0e809b83522dc7d23
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
11 years agoReplace deprecated ATS calls with CTFontManager calls in 10.8
Jiang Jiang [Mon, 20 Aug 2012 08:37:01 +0000 (10:37 +0200)]
Replace deprecated ATS calls with CTFontManager calls in 10.8

Change-Id: I81c0361059319575e55621123d40b7c6f3c6b699
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
11 years agoFix a bunch of Mac/clang specific warnings
Jiang Jiang [Mon, 13 Aug 2012 14:00:51 +0000 (16:00 +0200)]
Fix a bunch of Mac/clang specific warnings

Change-Id: I0ecc67d58fb7e727a88a5f546eeca01ff7554502
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
11 years agoFix typo in QAbstractNetworkCache documentation.
Mitch Curtis [Tue, 21 Aug 2012 08:36:39 +0000 (10:36 +0200)]
Fix typo in QAbstractNetworkCache documentation.

"used be" => "used by"

Change-Id: Ibde738facab357d21604779f8b2145d32815ed66
Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoMaking trivial snippets inline
Gabriel de Dietrich [Mon, 20 Aug 2012 13:17:13 +0000 (15:17 +0200)]
Making trivial snippets inline

Change-Id: I8d8b5586579d3ee460b234b5a09462586ac1cfd0
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoMinor documentation fixes in item views.
Shawn Rutledge [Tue, 21 Aug 2012 09:05:33 +0000 (11:05 +0200)]
Minor documentation fixes in item views.

Change-Id: I986662ba48840e0195f0cfd4264e4d5d8b186c51
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
11 years agomerge mingw mkspec changes for cross compiling
Peter Kümmel [Mon, 20 Aug 2012 10:58:14 +0000 (12:58 +0200)]
merge mingw mkspec changes for cross compiling

Change-Id: I0f4705717c38ee4c05b5618c006d3cf066d75f49
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoWhitespace fixes
Shawn Rutledge [Thu, 16 Aug 2012 13:10:03 +0000 (15:10 +0200)]
Whitespace fixes

Change-Id: Ibfb48076ad62804344db6e9e97ac90fdcf82dc04
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
11 years agodoc: Fixed qdoc errors
Martin Smith [Wed, 15 Aug 2012 11:09:54 +0000 (13:09 +0200)]
doc: Fixed qdoc errors

These classes will not be public until Qt 5.1.
This change marks a few things internal, so they
don't cause qdoc errors in Qt 5.0. It also adds
a few qdoc comments for future use in Qt 5.1.

Change-Id: If90692b97653223d8a986f2ae1fff49c20cd444b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
11 years agoReuse the same QAbstractTableModel implementation for 4 snippets
Shawn Rutledge [Wed, 15 Aug 2012 15:48:16 +0000 (17:48 +0200)]
Reuse the same QAbstractTableModel implementation for 4 snippets

They were really the same anyway.  This makes the source distro a bit
more compact and eliminates some qdoc errors of the form
../doc/snippets/reading-selections/model.cpp:51: Overrides a previous doc
../doc/snippets/itemselection/model.cpp:51: (The previous doc is here)

Change-Id: I7956f457422e9078c32de65cd421685f589c8a6c
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
11 years agoDisregard milliseconds in QTime::secsTo().
Mitch Curtis [Tue, 31 Jul 2012 09:34:43 +0000 (11:34 +0200)]
Disregard milliseconds in QTime::secsTo().

"The documentation states that "secsTo() does not take into account any
milliseconds", however, this is not the case. Given times 12:30:01.500
and 12:30:02.400 secsTo returns 0. If milliseconds are not taken into
account, I would expect this to return 1 (i.e. interprets the times as
12:30:01 and 12:30:02 thus truncating the milliseconds)."

Note that tests were also written for QDateTime::secsTo(), as it uses
QTime::secsTo internally. This addresses Javier's issue in the
comments of QTBUG-9304.

Task-number: QTBUG-9304
Change-Id: I9efe0c8f710db859c1d086d67ba3e5b349a56c4e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoSerialise QDateTime as UTC and timeSpec() instead of private spec.
Mitch Curtis [Thu, 16 Aug 2012 13:55:31 +0000 (15:55 +0200)]
Serialise QDateTime as UTC and timeSpec() instead of private spec.

QDateTime currently serialises its private Spec enum. If a user was to
deserialise the individual components of a QDateTime separately, the
resulting timeSpec may be invalid when cast to the Qt::TimeSpec enum.

E.g.:

QDateTime dateTime(QDate(2012, 8, 14), QTime(8, 0, 0), Qt::UTC);
// ... serialise
// ... deserialise date, time, spec separately.
// spec == 2, the value of QDateTimePrivate::UTC.
// spec != UTC, will be set to LocalUnknown.
QDateTime deserialised(date, time, spec);

This patch serialises QDateTime objects in UTC and the value of
timeSpec() as opposed to QDateTimePrivate's spec. This changes the
serialisation behaviour of QDateTime for version 13 of QDataStream.

Task-number: QTBUG-4057
Change-Id: If650e7960dca7b6ab44b8233410a6369c41df73a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agomake it possible to pass configure zlib lib name
Andreas Holzammer [Mon, 20 Aug 2012 17:54:58 +0000 (19:54 +0200)]
make it possible to pass configure zlib lib name

Change-Id: I82fde11436261dab51393b35dfbf2a753df58ec9
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agocross compile with mingw
Peter Kümmel [Sat, 18 Aug 2012 14:12:49 +0000 (16:12 +0200)]
cross compile with mingw

  - improve defaults
  - fix linker errors

Change-Id: I7e1deb55fb616a3890510806593a0ab9a0a31d9a
Reviewed-by: Yuchen Deng <loaden@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agodoc: Added \relates command to some function qdoc comments
Martin Smith [Fri, 17 Aug 2012 09:31:23 +0000 (11:31 +0200)]
doc: Added \relates command to some function qdoc comments

When a documented function is global, it must be related
to a namespace or class, or its documentation won't be
included anywhere.

When a documented function is a class member, the function
signature in the \fn command must include the class name
qualifier, e.g. QImage::isValid(), not just isValid()

Change-Id: I53e2230fa9468f94d51aec8cc76781d7ab755a13
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoAdd AVX support for the JPEG handler
Thiago Macieira [Wed, 15 Aug 2012 20:50:20 +0000 (22:50 +0200)]
Add AVX support for the JPEG handler

Apparently I had forgotten about this previously. Use the AVX conversion
function if the compiler could generate AVX code.

Note: the functions need to be declared outside of the function block
so namespace scoping works properly with MSVC. For functions declared
inside, it expects them to be in the global namespace.

Change-Id: I7b7248dbfce3cc7c580dee920407c205049cb746
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
11 years agoRemove reference to 'How to Learn Qt' from qtwidgets module.
Jan-Arve Saether [Tue, 21 Aug 2012 07:00:24 +0000 (09:00 +0200)]
Remove reference to 'How to Learn Qt' from qtwidgets module.

Change-Id: Ib6bce643332d34450e64e191ca7beeec3bf12c9c
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
11 years agoRemove warning about non existing paint device engine
Titta Heikkala [Thu, 16 Aug 2012 08:27:57 +0000 (11:27 +0300)]
Remove warning about non existing paint device engine

The QWindowsVistaStyle::drawPrimitive() method was trying to draw the
pixmap for an item in an item view even if the section width was zero
or less then zero. This resulted "QPainter::begin: Paint device
returned engine == 0, type: 2" error.
It's now checked that the width and the height of the section is
greater than zero before creating the painter.

Task-number: QTBUG-26047
Change-Id: I36dd2792fd505be773951e5ac36b0e3362ec2292
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoQWindow documentation fixes; make pos, size and geometry properties
Shawn Rutledge [Fri, 17 Aug 2012 12:13:08 +0000 (14:13 +0200)]
QWindow documentation fixes; make pos, size and geometry properties

Change-Id: I745bbe5d0baa68fc7ee49d6fe76d3678f3212b3d
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
11 years agoFixed qdoc complaints for qsurface and qsurfaceformat.
Shawn Rutledge [Fri, 17 Aug 2012 15:51:16 +0000 (17:51 +0200)]
Fixed qdoc complaints for qsurface and qsurfaceformat.

Also QTBUG-25231

Change-Id: I54e1f2d4ca9a52590b28e4d5ea04a8ae4a48d318
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
11 years agoQTouchDevice documentation
Shawn Rutledge [Fri, 17 Aug 2012 15:55:05 +0000 (17:55 +0200)]
QTouchDevice documentation

Change-Id: I33c39522c92ef1abd5572b757122f6467702b1e6
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
11 years agoDocument QTranslator::translate SIC (91d2ee5e09a6b4)
David Faure [Sun, 19 Aug 2012 09:42:08 +0000 (11:42 +0200)]
Document QTranslator::translate SIC (91d2ee5e09a6b4)

Detected by a unittest failure in KDE, due to the KDETranslator subclass
not being called anymore.

Change-Id: I0171117a677e2d58aba2f76bc27f7f1f7a521cc1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agofix some QTest documentation
Jeremy Katz [Fri, 17 Aug 2012 12:37:07 +0000 (14:37 +0200)]
fix some QTest documentation

* Use \b instead of \bold
* widnow -> window typo
* QTest::touchEvent's second parameter is QTouchDevice *, not
  QTouchEvent::DeviceType, and autoCommit defaults to true
* QSignalSpy::wait() isn't const

Change-Id: I75a91c1cd98b1c582cd654b2b72ad61e5c0e31d2
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
11 years agoCocoa: use filterNativeEvent instead of the deprecated filterEvent
Thiago Macieira [Mon, 20 Aug 2012 20:21:31 +0000 (22:21 +0200)]
Cocoa: use filterNativeEvent instead of the deprecated filterEvent

Change-Id: I76259d1a0d978fb2f7fb60cd0d05990365691b7e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years agoFix decoding of QByteArray in the deprecated "encoded" setters in QUrl
Thiago Macieira [Thu, 16 Aug 2012 13:31:06 +0000 (15:31 +0200)]
Fix decoding of QByteArray in the deprecated "encoded" setters in QUrl

The asymmetry is intentional: the getters can use toLatin1() because the
called functions, with a QUrl::FullyEncoded parameter, return ASCII
only. This gives a small performance improvement over the need to run
the UTF-8 encoder.

However, the data passed to setters could contain non-ASCII binary data,
in addition to the percent-encoded data. We can't use fromUtf8 because
it's binary and we can't use toPercentEncoded because it already encoded.

Change-Id: I5ecdb49be5af51ac86fd9764eb3a6aa96385f512
Reviewed-by: David Faure <faure@kde.org>
11 years agotst_qurlinternal: use qurl_p.h instead of declaring the functions
Thiago Macieira [Mon, 20 Aug 2012 11:19:46 +0000 (13:19 +0200)]
tst_qurlinternal: use qurl_p.h instead of declaring the functions

Just in case someone (like me) changes the function signatures or adds
new functions.

Change-Id: I1025fea012d95ffe89acaf799aa58fd2b0babc80
Reviewed-by: David Faure <faure@kde.org>
11 years agoAdd Q_DECL_NOTHROW to some qHash functions
Thiago Macieira [Thu, 2 Aug 2012 13:51:52 +0000 (15:51 +0200)]
Add Q_DECL_NOTHROW to some qHash functions

The hashing functions for QDateTime and QHostAddress did not get the
noexcept keyword because they might allocate memory. QDateTime doesn't
do it now, but it could in the future. QHostAddress does allocate
memory today.

Change-Id: Ia5f80942944bfc2b8c405306c467bfd88ef0e48c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoMoved a bunch of widgets example images from qtdoc to qtwidgets
J-P Nurmi [Mon, 20 Aug 2012 12:51:56 +0000 (14:51 +0200)]
Moved a bunch of widgets example images from qtdoc to qtwidgets

Change-Id: I46363e19051cca6f088f0ed6df1c9fd113b95fe7
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
11 years agoQStyle docs: fix the location of two paintsystem related images
J-P Nurmi [Mon, 20 Aug 2012 12:26:08 +0000 (14:26 +0200)]
QStyle docs: fix the location of two paintsystem related images

The following images were misplaced into gui with the other painsystem
related images:
- ../styles/qstyle.cpp:80: Missing image: paintsystem-stylepainter.png
- ../styles/qstyle.cpp:80: Missing image: paintsystem-icon.png

Change-Id: I5a46db04d00b779a6028cda89e436feda75efef7
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
11 years agoMoved a bunch of widget images from qtdoc to qtwidgets
J-P Nurmi [Mon, 20 Aug 2012 12:10:50 +0000 (14:10 +0200)]
Moved a bunch of widget images from qtdoc to qtwidgets

Change-Id: Id76e95f7bf7ccbe1716ef4172d36f337780e19f7
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
11 years agoQFontComboBox: fix qdoc warning
J-P Nurmi [Mon, 20 Aug 2012 11:37:08 +0000 (13:37 +0200)]
QFontComboBox: fix qdoc warning

Remove link to self:
qfontcombobox.cpp:413: Can't create link to 'currentFontChanged()'

Change-Id: I6eba45ba1d68c6a2c9201fda8c04b47fc711b562
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>