platform/upstream/qttools.git
11 years agoDoc: add link to Internationalization with Qt
Leena Miettinen [Wed, 10 Apr 2013 10:09:39 +0000 (12:09 +0200)]
Doc: add link to Internationalization with Qt

To the Qt Linguist Manual.

Change-Id: I55b3ccb8fe04b6997c3ce953de6544a193b3548e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoFix plugin export macros in Qt Designer documentation.
Friedemann Kleint [Tue, 9 Apr 2013 08:22:49 +0000 (10:22 +0200)]
Fix plugin export macros in Qt Designer documentation.

Use Q_PLUGIN_METADATA instead of Q_EXPORT_PLUGIN2 .

Task-number: QTBUG-30508
Change-Id: Iedc1e140d3f597e29911a38e5d5548e6ac9981b3
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoDoc: move release management task list in Qt Linguist Manual
Leena Miettinen [Wed, 3 Apr 2013 15:09:08 +0000 (17:09 +0200)]
Doc: move release management task list in Qt Linguist Manual

Move the description of the release process from the Developer
chapter to the Release Manager chapter.

Change-Id: Ia119e57b090d10d23b875120b1394be1c89b8405
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoQUiLoader/Designer: Fix gcc 4.8 warnings about unused typedefs.
Friedemann Kleint [Fri, 5 Apr 2013 12:51:49 +0000 (14:51 +0200)]
QUiLoader/Designer: Fix gcc 4.8 warnings about unused typedefs.

Change-Id: I792f3060c808ef860b31b47b3b00e5ac1991eedd
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
11 years agoMerge remote-tracking branch 'origin/release' into stable
Frederik Gladhorn [Wed, 3 Apr 2013 14:10:54 +0000 (16:10 +0200)]
Merge remote-tracking branch 'origin/release' into stable

Conflicts:
src/assistant/assistant/assistant.pro

Change-Id: I7ca59c8150a591c7e2ba57fd729421b4dba064d0

11 years agoAssistant: Fix static linking on Windows.
Friedemann Kleint [Wed, 27 Mar 2013 15:31:46 +0000 (16:31 +0100)]
Assistant: Fix static linking on Windows.

Check for existence of sqlite-plugin.

Breakage introduced by d73afeeafc7df8192508c1a5617944d303d5a0a2 .

Change-Id: I2595ed4d80e0804f1c2503cddf94ca15e4922af9
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoGenerate the Qt5LinguistConfig.cmake files independent of QtUiTools.
Stephen Kelly [Tue, 26 Mar 2013 19:51:12 +0000 (20:51 +0100)]
Generate the Qt5LinguistConfig.cmake files independent of QtUiTools.

The generation relied on the uitools module for the version, so
if it was not available, we got errors like this:

 WARNING: Cannot open substitute for output '/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake'
 WARNING: Cannot open substitute for output '/cmake/Qt5LinguistTools/Qt5LinguistToolsConfigVersion.cmake'
 WARNING: Cannot open substitute for output '/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake'

 http://testresults.qt-project.org/ci/QtTools_stable_Integration/build_00128/linux-g++_no-widgets_Ubuntu_12.04_x64/log.txt.gz

Use MODULE_VERSION for the version instead and MODULE_BASE_OUTDIR for the
generation location.

Change-Id: I9daa6878553015e841b6e41fd1f64eb60ada7774
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoAssistant: Fix static linking for Linux.
Friedemann Kleint [Tue, 19 Mar 2013 11:27:48 +0000 (12:27 +0100)]
Assistant: Fix static linking for Linux.

main.cpp:78: undefined reference to `qt_static_plugin_qsqlite()'

The import for the DB plugin should now be generated by qmake.

Change-Id: I9da25aea8667ca34221427236b8e1d36be77da8b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
(cherry picked from commit f212e46fe930ee89a8cb52beeeccc03369c015a1)
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoBump MODULE_VERSION to 5.1.0
Sergio Ahumada [Mon, 25 Mar 2013 10:15:42 +0000 (11:15 +0100)]
Bump MODULE_VERSION to 5.1.0

Change-Id: I1f48216fd27e40d70ffd020ed1b880b03df0bf12
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoDoc: edit Qt Linguist Manual for style
Leena Miettinen [Fri, 22 Mar 2013 09:13:46 +0000 (10:13 +0100)]
Doc: edit Qt Linguist Manual for style

Replaced "e.g." with "for example" and "etc" with
"and so on". Removed contractions. Removed some extra spaces.

Change-Id: Ic0b9d5df2ee7f7bb080abb002027546f0fc6da4d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoDoc: move Qt Linguist overview information
Leena Miettinen [Wed, 20 Mar 2013 15:35:53 +0000 (16:35 +0100)]
Doc: move Qt Linguist overview information

From front page to a separate topic.

Change-Id: Idc9a599e0c8f095b0d6d63fd74b43848a8b13d3d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoAdd changes-5.0.2 file
Sergio Ahumada [Tue, 19 Mar 2013 20:39:43 +0000 (21:39 +0100)]
Add changes-5.0.2 file

Change-Id: I7c55f4441aa671fc320113a95b74e4b1bdbd689a
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoMerge branch 'dev' into stable
Sergio Ahumada [Wed, 20 Mar 2013 08:21:30 +0000 (09:21 +0100)]
Merge branch 'dev' into stable

This starts Qt 5.1 release cycle

Change-Id: I359d5bfaa62a4d37a2deec79f80963ae5c19d918

11 years agoAssistant: Fix static linking for Linux.
Friedemann Kleint [Tue, 19 Mar 2013 11:27:48 +0000 (12:27 +0100)]
Assistant: Fix static linking for Linux.

main.cpp:78: undefined reference to `qt_static_plugin_qsqlite()'

The import for the DB plugin should now be generated by qmake.

Change-Id: I9da25aea8667ca34221427236b8e1d36be77da8b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
11 years agomake lupdate a host tool
Oswald Buddenhagen [Fri, 8 Mar 2013 17:46:29 +0000 (18:46 +0100)]
make lupdate a host tool

lupdate makes no sense on x-built targets at all.
though one may also argue whether it makes sense to actually bootstrap
it - while its use may be supported by the build system, it's typically
not part of regular builds, but rather used shortly before running
linguist - for which a host build of qt is necessary anyway.
one argument for bootstrapping is that it uses the qmldevtools library,
which logically should be bootstrapped (the only other current user is
qmlmin, which definitely *is* used in regular builds and thus needs
bootstrapping).

Change-Id: Ia3ddd901fe2b0c2b7b77af7f1ebc66d757fc7783
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agomake lconvert a host tool
Oswald Buddenhagen [Fri, 7 Dec 2012 19:00:11 +0000 (20:00 +0100)]
make lconvert a host tool

it's a build tool, so it should be built for the host.

Change-Id: I55baee65d3e91bf5189c10f30e23975abfc4de10
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agomake lrelease only optionally bootstrapped
Oswald Buddenhagen [Fri, 8 Mar 2013 15:58:29 +0000 (16:58 +0100)]
make lrelease only optionally bootstrapped

qt_tool.prf handles the magic for us.

Change-Id: Ifb8e7fd7ff0e46b9b274c9d156e048e89586ab2c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agofix translation contexts
Oswald Buddenhagen [Fri, 8 Mar 2013 17:48:56 +0000 (18:48 +0100)]
fix translation contexts

the bootstrapped library now fakes the translation api sufficiently
well to enable unifying the usage.

Change-Id: I6a5d7cb1bb67830f1ea0a732566ebee354d62e7e
Reviewed-by: hjk <hjk121@nokiamail.com>
11 years agosupport only utf-8 and utf-16 for source code
Oswald Buddenhagen [Wed, 6 Mar 2013 14:29:08 +0000 (15:29 +0100)]
support only utf-8 and utf-16 for source code

utf-16 is optionally used by java and msvc. it doesn't hurt to support
it. all other encodings are not used anyway (other than 8-bit
pass-through, but this is a matter for (the also removed) CodecForTr).

Change-Id: Ie6482e187a9a8276918b53e97faeac88a40eb52c
Reviewed-by: hjk <hjk121@nokiamail.com>
11 years agoRun the qttools cmake module tests only if QtWidgets is available.
Stephen Kelly [Thu, 14 Mar 2013 13:24:03 +0000 (14:24 +0100)]
Run the qttools cmake module tests only if QtWidgets is available.

Change-Id: I26847e3347cf24664ca52488ddf521c923e37912
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Thu, 14 Mar 2013 08:25:25 +0000 (09:25 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ic32eb7c209f299f8a677fd7f247d4800eaafa879

11 years agoMerge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging...
Stephen Kelly [Wed, 13 Mar 2013 16:12:28 +0000 (17:12 +0100)]
Merge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging/stable

11 years agoRemove qaccessible2 bic data.
Frederik Gladhorn [Wed, 13 Mar 2013 14:07:32 +0000 (15:07 +0100)]
Remove qaccessible2 bic data.

Change-Id: I629046a2a7aa0611cda4f04f8d6253d5db4e05a3
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoInstall the Qt5LinguistToolsConfigVersion.cmake file.
Stephen Kelly [Tue, 12 Mar 2013 10:06:20 +0000 (11:06 +0100)]
Install the Qt5LinguistToolsConfigVersion.cmake file.

Change-Id: I8f14f79c1e8e17816d63303f130773780547346a
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agopurge CODECFORTR & -codecfortr support
Oswald Buddenhagen [Wed, 6 Mar 2013 13:44:59 +0000 (14:44 +0100)]
purge CODECFORTR & -codecfortr support

qt-based code is expected to be utf8-encoded nowadays. the respective
c++ interfaces have been purged in 5.0 already.

Change-Id: I592b49f198aae05212afbf8d3aa2b01b1e9369dd
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
11 years agopurge ui3 support from lupdate
Oswald Buddenhagen [Tue, 5 Mar 2013 19:00:54 +0000 (20:00 +0100)]
purge ui3 support from lupdate

there is no qt3support in qt 5 any more.

Change-Id: I9da9c209095a753d45419fb34a5737cd8dde4dc4
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agopurge TS 1.1 support
Oswald Buddenhagen [Tue, 5 Mar 2013 17:05:49 +0000 (18:05 +0100)]
purge TS 1.1 support

at the time of release it will be almost five years since we introduced
TS 2.0 and stopped writing 1.1 by default, so there shouldn't be much of
a need to write such files any more - and this commit doesn't even
remove 1.1 reading capability (because it comes for free so far).

Change-Id: Ie54fe31f83733ef944306c01301c0ec0e9bcb8bf
Reviewed-by: hjk <hjk121@nokiamail.com>
11 years agoMerge remote-tracking branch 'origin/release' into stable
Frederik Gladhorn [Tue, 12 Mar 2013 10:31:44 +0000 (11:31 +0100)]
Merge remote-tracking branch 'origin/release' into stable

Change-Id: I4c19a5f76b8605134aeab29130a20df187f8f107

11 years agoAero-Style-QWizard: Remove special handling in Qt Designer.
Friedemann Kleint [Wed, 6 Mar 2013 08:51:13 +0000 (09:51 +0100)]
Aero-Style-QWizard: Remove special handling in Qt Designer.

The wizard now behaves nicely when used as a child widget.

Task-number: QTBUG-29904
Change-Id: I2e9705eb4197b3411c9e072d0d5c05a97df8d47f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoList supported file formats in search indexing.
Leonard Lee [Fri, 8 Mar 2013 13:33:34 +0000 (14:33 +0100)]
List supported file formats in search indexing.

The supported file formats is implemented in
QHelpSearchIndexWriter::indexableFiles() function.

Task-number: QTBUG-30110
Change-Id: I4b68d765da6769b52b74f7fa4fbc1a1bcbfd4e08
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoFix warning about superfluous parentheses (CLANG).
Friedemann Kleint [Wed, 6 Mar 2013 12:49:51 +0000 (13:49 +0100)]
Fix warning about superfluous parentheses (CLANG).

Change-Id: I0fa2c6d5bf04bb3cf9d0314207ccb0a21b928f22
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
11 years agoQt Designer: Remove unused code (detect by CLANG).
Friedemann Kleint [Wed, 6 Mar 2013 12:47:53 +0000 (13:47 +0100)]
Qt Designer: Remove unused code (detect by CLANG).

Change-Id: Idf1da5c69f90e4ce94319fc722180988cbc44dc5
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
11 years agoEnable Active-X plugin in Qt Designer.
Friedemann Kleint [Thu, 21 Feb 2013 11:00:58 +0000 (12:00 +0100)]
Enable Active-X plugin in Qt Designer.

Task-number: QTBUG-29733

Change-Id: I290c476d1ba84ca6ff519aa9d437d28e4ea066d8
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
11 years agoFix moving widgets in horizontal layouts in RTL mode.
Friedemann Kleint [Mon, 25 Feb 2013 16:22:41 +0000 (17:22 +0100)]
Fix moving widgets in horizontal layouts in RTL mode.

Task-number: QTBUG-25872

Change-Id: Ia311b88f0ed3450d798bc5a9136e978c642d5b25
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
11 years agoActive X plugin: Fix setting a control by task menu.
Friedemann Kleint [Wed, 27 Feb 2013 14:49:50 +0000 (15:49 +0100)]
Active X plugin: Fix setting a control by task menu.

The property is a QString when set by the menu or a
PropertySheetStringValue when loading the form.

Breakage introduced by
8695c1753964eeb06b5d9306010b56be5fc151c0 .

Task-number: QTBUG-29234

Change-Id: I84c3de80b99c8a20aaf1f8f7289882b0092d6a0a
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
11 years agoMerge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev
Jocelyn Turcotte [Fri, 1 Mar 2013 19:41:01 +0000 (20:41 +0100)]
Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev

11 years agoHTML improvement
Robert Loehning [Wed, 13 Feb 2013 18:15:19 +0000 (19:15 +0100)]
HTML improvement

Change-Id: If70901325b3f4d5cbda705e4261fc18ea97c1bc0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agodefine MODULE_VERSION
Oswald Buddenhagen [Tue, 26 Feb 2013 12:31:30 +0000 (13:31 +0100)]
define MODULE_VERSION

Task-number: QTBUG-29838
Change-Id: If7a85b5bf9701b1f804091b645b7de6554d4a27d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoUse qmake for package dependency resolution in cmake tests.
Stephen Kelly [Tue, 26 Feb 2013 13:00:30 +0000 (14:00 +0100)]
Use qmake for package dependency resolution in cmake tests.

This allows us to remove hardcoded depends information.

Change-Id: I91150ae89b230ebbbcfc9706b70ea135149af0c7
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Mon, 25 Feb 2013 10:59:08 +0000 (11:59 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ic736c7169dc07599f43ee8317cca78da42131e1a

11 years agonuke sharedcomponents.pri
Oswald Buddenhagen [Mon, 17 Dec 2012 15:17:47 +0000 (16:17 +0100)]
nuke sharedcomponents.pri

it doesn't actually do anything useful for quite a while

Change-Id: Ibe52bd7408227655ae8295d78823105163385897
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoMerge branch 'stable' into release
Johanna Aijala [Thu, 21 Feb 2013 07:38:02 +0000 (09:38 +0200)]
Merge branch 'stable' into release

Change-Id: I29715c906d4d4dee985fdcfbae9a5d99c1a17997

11 years agoRich text editor: Add support for Right-to-Left blocks.
Friedemann Kleint [Wed, 20 Feb 2013 13:13:20 +0000 (14:13 +0100)]
Rich text editor: Add support for Right-to-Left blocks.

Task-number: QTBUG-9502

Change-Id: Ic1b0e4abdf71022609a90fc00f29e493958d9feb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
11 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Mon, 18 Feb 2013 15:09:29 +0000 (16:09 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Icc911c4f334091c0e1ece149ac68fab25ca07bd0

11 years agoAdd license files mandated by (L)GPL.
Timo Jyrinki [Fri, 8 Feb 2013 07:11:47 +0000 (09:11 +0200)]
Add license files mandated by (L)GPL.

Currently only qtbase includes the required LICENSE files, which
are referred to from the code headers. The same files should
be distributed as part of all the modules as well, so that the
(L)GPL licenses are adhered.

These files were wget:d from:

https://qt.gitorious.org/qt/qtbase/blobs/raw/stable/LGPL_EXCEPTION.txt
https://qt.gitorious.org/qt/qtbase/blobs/raw/stable/LICENSE.LGPL
https://qt.gitorious.org/qt/qtbase/blobs/raw/stable/LICENSE.GPL

As an addition to above, added also LICENSE.FDL. All the modules
additionally require it, since they include at least *.qdoc files and in
some cases a couple of others.

File received via
wget http://qt.gitorious.org/qt/qtbase/blobs/raw/stable/LICENSE.FDL

Change-Id: Ia9dd91fb4defea000d3df79006eba65e549a99e1
Reviewed-by: Jason McDonald <macadder1@gmail.com>
11 years agoAdd Linguist comments to palette editor preview widget.
Friedemann Kleint [Thu, 14 Feb 2013 07:46:54 +0000 (08:46 +0100)]
Add Linguist comments to palette editor preview widget.

Change-Id: Ib2cffaddacdddcc84070310a7f8e7c387ef3972a
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
11 years agoRemove QPointerBase bic check.
Stephen Kelly [Tue, 12 Feb 2013 20:06:33 +0000 (21:06 +0100)]
Remove QPointerBase bic check.

QPointerBase is not public or exported and it is to be removed

Change-Id: I91d9cfc14db7e5bf1fe85279734e04486b3b483e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoDoc: Edited Qt Help page and clarified .qhp file location.
Jerome Pasion [Tue, 12 Feb 2013 16:24:51 +0000 (17:24 +0100)]
Doc: Edited Qt Help page and clarified .qhp file location.

-replaced "html" with "HTML"
-noted that the .qhp files are in the HTML directories

Task-number: QTBUG-29576
Change-Id: I0ba1c9534d730648c25dcdf15fcb1448fa9eb8fc
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
11 years agoCtrl+W shortcut on last open tab causes Assistant to crash.
kh1 [Mon, 11 Feb 2013 12:26:07 +0000 (13:26 +0100)]
Ctrl+W shortcut on last open tab causes Assistant to crash.

Task-number: QTBUG-29499

This happend as nobody did inform the menu about the page changes,
the shortcut remained active even for the last viewer. Also make
some constructors and functions private, so we can no longer mess
from the outside with the viewers, except thru OpenPagesManager.

Change-Id: I2675996d4b30ab8b1db657e5157b497a73b96196
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
11 years agoFix CONFIG of tool-plugins.
Friedemann Kleint [Mon, 11 Feb 2013 08:40:28 +0000 (09:40 +0100)]
Fix CONFIG of tool-plugins.

Change-Id: I09c9abb08ba9f1ba171bf468e6cbc9010aaf0b53
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoQMakeParser: save one ByteArray construction
hjk [Tue, 22 Jan 2013 10:00:20 +0000 (11:00 +0100)]
QMakeParser: save one ByteArray construction

Change-Id: I2845fdefb8b32de227f08017e0e3ad98923d1c87
Reviewed-by: hjk <hjk121@nokiamail.com>
(cherry picked from qtcreator/52be02d1cbbf69d4f82c517c7b633ed3d13b1007)
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoRemove braces for single lines of conditions
Orgad Shaneh [Tue, 8 Jan 2013 01:32:53 +0000 (03:32 +0200)]
Remove braces for single lines of conditions

#!/usr/bin/env ruby

Dir.glob('**/*.cpp') { |file|
  # skip ast (excluding paste, astpath, and canv'ast'imer)
  next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i
  s = File.read(file)
  next if s.include?('qlalr')
  orig = s.dup
  s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m|
    res = $&
    if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces
      res
    else
      res.gsub!('} else', 'else')
      res.gsub!(/\n +} *\n/m, "\n")
      res.gsub(/ *{$/, '')
    end
  }
  s.gsub!(/ *$/, '')
  File.open(file, 'wb').write(s) if s != orig
}

Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc
Reviewed-by: hjk <qthjk@ovi.com>
(cherry picked from qtcreator/29a93998df8405e8799ad23934a56cd99fb36403)
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agofix doc page urls
Oswald Buddenhagen [Wed, 30 Jan 2013 17:11:56 +0000 (18:11 +0100)]
fix doc page urls

they are versioned nowadays

Change-Id: I136d9073acd9f2c19d1b41ed1d071250c8e86048
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoDo not use webkit in case of static build.
kh1 [Thu, 31 Jan 2013 14:54:07 +0000 (15:54 +0100)]
Do not use webkit in case of static build.

Since linking against a statically build qtwebkit fails, fallback to
use QTextBrowser. I guess we need to fix static webkit builds first.

Change-Id: I1bc6c1ae70f0e57fa179a3ffe8750bde97809d12
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoQt Designer: Fix message about file open failure.
Friedemann Kleint [Wed, 6 Feb 2013 11:21:11 +0000 (12:21 +0100)]
Qt Designer: Fix message about file open failure.

Change-Id: Ic59e7fc11c9a67546a22901b82681dd75831455a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agosubstitute fixed version numbers in qdocconf files with variables
Oswald Buddenhagen [Wed, 30 Jan 2013 16:41:47 +0000 (17:41 +0100)]
substitute fixed version numbers in qdocconf files with variables

Change-Id: Ib53e90616e5dc98d6fbfdef5172eb96216a6a60e
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agosupport alternative and multiple suffixes in $$resolve_depends()
Oswald Buddenhagen [Fri, 1 Feb 2013 19:03:02 +0000 (20:03 +0100)]
support alternative and multiple suffixes in $$resolve_depends()

this is undeniably a new feature, but it's needed for a bugfix.

Change-Id: I951a3128eb580404ee0c7e3cdcb4d6170e899f70
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
(cherry picked from qtbase/87054805872429c1c17135f9ae5364b050d3fdff)
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agodon't flush qmake command line twice
Oswald Buddenhagen [Wed, 30 Jan 2013 17:37:11 +0000 (18:37 +0100)]
don't flush qmake command line twice

otherwise variable assignments (including -config options) from
$QMAKEFLAGS are lost.

Change-Id: I818e9372d2b0ff44333dc3eb8fc3420f84ab01c5
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
(cherry picked from qtbase/864e1ceaf628e823103ae2d28d2c983400ba38c7)

11 years agoqmake:Add a case sensitivity flag to ProString::{starts,ends}With()
Debao Zhang [Fri, 21 Dec 2012 02:24:44 +0000 (10:24 +0800)]
qmake:Add a case sensitivity flag to ProString::{starts,ends}With()

Change-Id: I457cd8288ae8a0138f7b28321fe87be3308b5215
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
(cherry picked from qtbase/4d55b473b3a1514c53dc5ee8116e2c86e4f62eb6)
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoadd base parameter to ProString::toInt and ProString::toShort
Joerg Bornemann [Mon, 17 Dec 2012 11:56:02 +0000 (12:56 +0100)]
add base parameter to ProString::toInt and ProString::toShort

Change-Id: I0c8b48e6491486ca829ce24ca2e284294ba0138a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
(cherry picked from qtbase/9a1183b400748aa51132dd17d004d9d6e560b5b8)
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoMerge "Merge branch 'release' into stable" into refs/staging/stable
Sergio Ahumada [Fri, 1 Feb 2013 10:17:13 +0000 (11:17 +0100)]
Merge "Merge branch 'release' into stable" into refs/staging/stable

11 years agoQtDBus-tools: Remove module includes.
Friedemann Kleint [Fri, 1 Feb 2013 08:34:41 +0000 (09:34 +0100)]
QtDBus-tools: Remove module includes.

Change-Id: I4b6754c7bd513a2c479c52a0428bd7eee857c6ca
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
11 years agoMerge branch 'release' into stable
Sergio Ahumada [Thu, 31 Jan 2013 15:08:06 +0000 (16:08 +0100)]
Merge branch 'release' into stable

Change-Id: Ib896ae10a70d72eb671edba52ad29a1f7c8a73a7

11 years agoLook into the right variable to determine whether Qt is built statically.
kh1 [Thu, 31 Jan 2013 09:38:49 +0000 (10:38 +0100)]
Look into the right variable to determine whether Qt is built statically.

Change-Id: I2a9a6613bad5de19fadc0361eda3fe7dbb4b0a44
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoFilterWidget: Fix valgrind warning about uninitialized variable.
Friedemann Kleint [Wed, 30 Jan 2013 13:34:34 +0000 (14:34 +0100)]
FilterWidget: Fix valgrind warning about uninitialized variable.

Change-Id: I7ae99af02d5d61626eac97ddb8a6f62da9c2d638
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
11 years agoFix crash (QFont access) by using a qt gui application.
kh1 [Tue, 29 Jan 2013 13:58:03 +0000 (14:58 +0100)]
Fix crash (QFont access) by using a qt gui application.

Task-number: QTBUG-29218

Change-Id: Id7a926dce61cfac2a8c67ffaee52d305604cb34f
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
11 years agoRemove QT_{BEGIN,END}_HEADER macro usage
Sergio Ahumada [Sun, 27 Jan 2013 08:50:37 +0000 (09:50 +0100)]
Remove QT_{BEGIN,END}_HEADER macro usage

The macro was made empty in qtbase/ba3dc5f3b56d1fab6fe37fe7ae08096d7dc68bcb
and is no longer necessary or used.

Change-Id: I208ae87694deeb4edc73bb1a4be314c30861910f
Discussed-on: http://lists.qt-project.org/pipermail/development/2013-January/009284.html
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
11 years agoUse path() as we need the path without the filename
Andy Shaw [Thu, 24 Jan 2013 20:03:13 +0000 (21:03 +0100)]
Use path() as we need the path without the filename

On Windows, filePath() was used for a function that was supposed to get
the bin directory for Qt. However path() should be used instead as this
will remove the filename from the originally obtained string.

Change-Id: I16f8bda91fe9666c935318f8d73c715d2ea908f5
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoUpdate changes file for 5.0.1 release
Sergio Ahumada [Wed, 9 Jan 2013 19:42:44 +0000 (20:42 +0100)]
Update changes file for 5.0.1 release

Change-Id: If70f67f3b8f9a2230cccff8a2682a7f1dcecfb73
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agotst_bic: Add bic data for linux-gcc-ia32
Sergio Ahumada [Mon, 14 Jan 2013 11:58:09 +0000 (03:58 -0800)]
tst_bic: Add bic data for linux-gcc-ia32

Adding bic data for the following modules:

 - QtCLucene
 - QtDesigner
 - QtDesignerComponents
 - QtHelp
 - QtUiTools

Change-Id: I1886fa9f6659c0a97d6b428d4667cd032f06afbd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agoDoc: corrected reference to customwidget.pro paragraph
Nico Vertriest [Mon, 21 Jan 2013 14:59:15 +0000 (15:59 +0100)]
Doc: corrected reference to customwidget.pro paragraph

Referred to par 1. Corrected to 3.

Task-number: QTBUG-29101
Change-Id: Icaa0e4eb06f24fcc7f2d369401fa8f49ed3b1d29
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoActiveQt Designer plugin: Load control string correctly.
Friedemann Kleint [Mon, 21 Jan 2013 12:41:56 +0000 (13:41 +0100)]
ActiveQt Designer plugin: Load control string correctly.

Task-number: QTBUG-29234

Change-Id: I5762c75efc24bf5322ff767a9dbecfdfc02c3377
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
11 years agoQt Designer: Use multiline validation for dynamic string properties.
Friedemann Kleint [Fri, 18 Jan 2013 15:39:33 +0000 (16:39 +0100)]
Qt Designer: Use multiline validation for dynamic string properties.

Task-number: QTBUG-26394

Change-Id: Idbaa4bad71125b74d8407bb56ee9fdbf83831fe0
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
11 years agoMerge remote-tracking branch 'origin/stable' into dev
Frederik Gladhorn [Thu, 17 Jan 2013 17:25:39 +0000 (18:25 +0100)]
Merge remote-tracking branch 'origin/stable' into dev

Conflicts:
sync.profile

Change-Id: I9871b004cc76d14d34f4a904cd7a8e4f8e2bb91a

11 years agoDoc: Corrected spelling of Qt UITools in formbuilder.cpp
Nico Vertriest [Fri, 14 Dec 2012 14:27:17 +0000 (15:27 +0100)]
Doc: Corrected spelling of Qt UITools in formbuilder.cpp

Linked to landing page

Task-number: QTBUG-28623

Change-Id: I9b263b9e44470c860a72d77eddfcbce93007ec26
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoCompare only clean path. Fixes compares with /./ in path.
kh1 [Fri, 11 Jan 2013 12:00:18 +0000 (13:00 +0100)]
Compare only clean path. Fixes compares with /./ in path.

Change-Id: I980dce2e294d81e6486345d13b15deaf568340bf
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
11 years agoRemove all Trolltech references.
kh1 [Thu, 10 Jan 2013 11:50:10 +0000 (12:50 +0100)]
Remove all Trolltech references.

Change-Id: Idad55a5e6d87ea5703681e3ef11fc35ce9ff84eb
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
11 years agodoc: Fix namespace version to 5.0.1 for qhp documentation
Sergio Ahumada [Sat, 12 Jan 2013 08:12:00 +0000 (09:12 +0100)]
doc: Fix namespace version to 5.0.1 for qhp documentation

Change-Id: Idc6c21d77739a14b1eb31b2296422f57d67fb478
Reviewed-by: hjk <qthjk@ovi.com>
11 years agoFix the missing webview Qt Designer plugin.
Tim Jenssen [Fri, 11 Jan 2013 08:11:11 +0000 (09:11 +0100)]
Fix the missing webview Qt Designer plugin.

Task-number: QTBUG-29031

Change-Id: Ie91ec524292358388586827acbd69ec2fed44072
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoUpdate copyright year in Digia's license headers
Sergio Ahumada [Wed, 2 Jan 2013 12:02:44 +0000 (13:02 +0100)]
Update copyright year in Digia's license headers

Change-Id: I9b11dc8309c9739955e3acea12b564d6ad608f59
Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agoFix examples "make install", missing the doc files.
kh1 [Thu, 10 Jan 2013 11:45:46 +0000 (12:45 +0100)]
Fix examples "make install", missing the doc files.

Change-Id: Ifcfc888782e2087476f6f65388db5cda753e0ee7
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoDeploy the mediaservice plugins if QtMultimedia is used
Andy Shaw [Fri, 4 Jan 2013 11:35:20 +0000 (12:35 +0100)]
Deploy the mediaservice plugins if QtMultimedia is used

Change-Id: Iac597d5216a5750850ee8132cbf4a609c032700a
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoRevert most of 227a60a427f83931ca8bdaec7509a673738f053b.
kh1 [Tue, 8 Jan 2013 11:46:12 +0000 (12:46 +0100)]
Revert most of 227a60a427f83931ca8bdaec7509a673738f053b.

The help engines findFile() does already resolve virtual folders in
different namespaces, so the added code was superfluous. It did not
even work properly... Implement a redirect network reply, so when a
file from e.g. qtwidget is linked into qtcore, we will get the valid
url set inside the address bar. This also fixes "Bookmark" handling,
"Sync to Contents" as well as "Copy" and "Hover" actions.

Change-Id: I418af5962d9f1d9970febb07f8f1c52e9995c58c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
11 years agoFix search for non-existing term with filters turned on.
kh1 [Wed, 19 Dec 2012 16:33:17 +0000 (17:33 +0100)]
Fix search for non-existing term with filters turned on.

Task-number: QTBUG-26733

In case we search with attributes, all fields including the actual
search term needs to match. Otherwise we will find all pages with
matching indexed filter attributes, but ignoring the search term...

Change-Id: I691afb839a4175e800ab71a40ead7963f3c54c31
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
11 years agoFix Assistant search crashes with square brackets, etc...
kh1 [Wed, 19 Dec 2012 14:45:56 +0000 (15:45 +0100)]
Fix Assistant search crashes with square brackets, etc...

Task-number: QTBUG-28700

In 8f83747d12 escaping of special characters got lost in translation,
though it is required since some of these, like [] are field separators
inside clucenes index file. The full text search throws exceptions if
it encounters un-escaped field separators.

Change-Id: I5e457f95db426554d29bc33bea00a92fb6cfcba5
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
11 years agoMerge from Qt Creator. Adds geometry awareness.
kh1 [Wed, 19 Dec 2012 13:08:35 +0000 (14:08 +0100)]
Merge from Qt Creator. Adds geometry awareness.

Task-number: QTBUG-22619

Change-Id: I34cd11c1021592560776e78452072c335b1ead21
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
11 years agoMerge branch 'stable' into release
Sergio Ahumada [Wed, 9 Jan 2013 09:02:59 +0000 (10:02 +0100)]
Merge branch 'stable' into release

Change-Id: Idb96b903fb08ad6fcd8fad4ba139bab27c8554da

11 years agoFix warnings found by the headersclean test
Thiago Macieira [Sun, 23 Dec 2012 02:20:47 +0000 (18:20 -0800)]
Fix warnings found by the headersclean test

qhelpsearchengine.h:71:9: error: declaration of 'wordList' shadows a member of 'this' [-Werror=shadow]

Change-Id: I3d0d6216276c9c06091d0f726c8513cc52da1885
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
11 years agoMove functions from an anonymous namespace in a header
Thiago Macieira [Sat, 29 Dec 2012 18:05:12 +0000 (10:05 -0800)]
Move functions from an anonymous namespace in a header

Clang doesn't like functions declared in an anonymous namespace in a
header and then later not used. It treats those are static functions,
and the -Wunused-functions warning is printed for them.

Instead, declare them inline in a regular namespace and use it.

qclucene_global_p.h:106:19: error: unused function 'QStringToTChar' [-Werror,-Wunused-function]
    inline TCHAR* QStringToTChar(const QString &str)
                  ^

Change-Id: I94696d40693558ef105281c8ec6e30159c47844d
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
11 years agomake use of qtHaveModule()
Oswald Buddenhagen [Fri, 21 Dec 2012 10:02:52 +0000 (11:02 +0100)]
make use of qtHaveModule()

Change-Id: I494ad22447fe54be405698f2dfd79e4941019bdc
Reviewed-by: Tasuku Suzuki <stasuku@gmail.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoTry harder in matching the method signature
Dirk Mueller [Fri, 4 Jan 2013 16:40:54 +0000 (17:40 +0100)]
Try harder in matching the method signature

In cases where the Propertiesdialog has no specific Implementation
for a dbus data type, it creates a regular QLineEdit. In such cases,
qdbusviewer then tried to call the method with the arg set to a string
instead of the real datatype (for example uint64), which usually does not work.

We can be more clever and try to implicitely convert the user input
to the right datatype, which makes the invocation succeed.

Change-Id: Idbb5c667496e14922efb7d195e11fafbb880c61c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAdd changes-5.0.1 file
Sergio Ahumada [Sat, 22 Dec 2012 17:09:29 +0000 (18:09 +0100)]
Add changes-5.0.1 file

Task-number: QTBUG-26065
Change-Id: Id7b0b90c571d3f4419ea3f792cb49832fab6738e
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoBump Qt version to 5.0.1
Sergio Ahumada [Fri, 21 Dec 2012 23:46:02 +0000 (00:46 +0100)]
Bump Qt version to 5.0.1

Change-Id: I9aa9ff5a41084a953c7c130fd6880606541ff28b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix warning about hidden overloaded virtual, found by Clang
Thiago Macieira [Sat, 29 Dec 2012 18:51:41 +0000 (10:51 -0800)]
Fix warning about hidden overloaded virtual, found by Clang

qlayout_widget.cpp:1577:17: error: 'qdesigner_internal::<anonymous namespace>::QBoxLayoutSupport::findItemAt' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
    virtual int findItemAt(int /*at_row*/, int /*at_column*/) const {    return -1; }
                ^
/Users/tjmaciei/src/qt/qt5/qttools/src/designer/src/lib/shared/qlayout_widget_p.h:198:17: note: hidden overloaded virtual function 'qdesigner_internal::QLayoutSupport::findItemAt' declared here
    virtual int findItemAt(const QPoint &pos) const;
                ^

Solve the problem by using the old functions, hence not hiding them.

Change-Id: I3af0c43fc7266ae74e8b05103e4306be740c618a
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agofix install path
Oswald Buddenhagen [Fri, 21 Dec 2012 18:44:44 +0000 (19:44 +0100)]
fix install path

Change-Id: I6a56cff510011e3ffd516d24d9659f75baca14b2
Reviewed-by: hjk <qthjk@ovi.com>
11 years agoAdd qmake generated files to .gitignore.
Miikka Heikkinen [Thu, 20 Dec 2012 10:10:11 +0000 (12:10 +0200)]
Add qmake generated files to .gitignore.

Add source files generated by qmake for automatic static plugin
imports to .gitignore.

Change-Id: If28edc65fd29313bd8a9c699ae64a453a5462cb4
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoMerge 'release' into stable
Oswald Buddenhagen [Wed, 19 Dec 2012 18:38:21 +0000 (19:38 +0100)]
Merge 'release' into stable

Change-Id: Ie325bf13e34736edf4118c8ee640e23b2f9270bf

11 years agoremove some unnecessary (and even wrong) project setup code
Oswald Buddenhagen [Mon, 17 Dec 2012 15:06:41 +0000 (16:06 +0100)]
remove some unnecessary (and even wrong) project setup code

the centralized code handles it just fine

Task-number: QTBUG-28633
Change-Id: I46105ab301869dec807fdc4ca5fe5e563bc217b9
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoFix help URLs in tools.
Friedemann Kleint [Tue, 18 Dec 2012 13:41:12 +0000 (14:41 +0100)]
Fix help URLs in tools.

Task-number: QTBUG-28689

Change-Id: Ifa3eb5ed1ae3928671a85d3aaeb2ef37b196ee4a
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
11 years agopoint dependencies to 'release' branches
Sergio Ahumada [Mon, 17 Dec 2012 19:42:41 +0000 (20:42 +0100)]
point dependencies to 'release' branches

Change-Id: I335664312eea8c0911b1edcc37c1c4e96212722f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>