Skip to content

Commit

Permalink
Merge "Merge remote-tracking branch 'origin/stable' into dev" into re…
Browse files Browse the repository at this point in the history
…fs/staging/dev
  • Loading branch information
janihe authored and The Qt Project committed Feb 17, 2014
2 parents 2e20d82 + dbafabb commit 072f9cf
Show file tree
Hide file tree
Showing 35 changed files with 113 additions and 80 deletions.
8 changes: 8 additions & 0 deletions doc/global/externalsites/qtcreator.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -467,3 +467,11 @@
\externalpage http://qt-project.org/doc/qtcreator/creator-debuggers.html
\title Qt Creator: Adding Debuggers
*/
/*!
\externalpage http://qt-project.org/doc/qtcreator/creator-android-app-tutorial.html
\title Qt Creator: Creating an Android Application
*/
/*!
\externalpage http://qt-project.org/doc/qtcreator/creator-diff-editor.html
\title Qt Creator: Comparing Files
*/
2 changes: 1 addition & 1 deletion mkspecs/devices/common/linux_device_pre.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
QT_QPA_DEFAULT_PLATFORM = eglfs

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/devices/linux-archos-gen8-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# http://github.com/KDAB/OpenEmbedded-Archos

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/devices/linux-arm-amlogic-8726M-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/devices/linux-arm-trident-pnx8473-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/devices/linux-beagleboard-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# http://beagleboard.org/

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/devices/linux-maemo-n9-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# http://wiki.qt-project.org/Devices/N9

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

QMAKE_PLATFORM = maemo
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/devices/linux-mipsel-broadcom-97425-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/devices/linux-sh4-stmicro-ST7108-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/devices/linux-sh4-stmicro-ST7540-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/devices/linux-snowball-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# http://qt-project.org/wiki/Snowball

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
Expand Down
23 changes: 0 additions & 23 deletions mkspecs/features/unix/gdb_dwarf_index.prf

This file was deleted.

1 change: 0 additions & 1 deletion mkspecs/freebsd-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

MAKEFILE_GENERATOR = UNIX
QMAKE_PLATFORM = freebsd bsd
CONFIG += gdb_dwarf_index

QMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE

Expand Down
1 change: 0 additions & 1 deletion mkspecs/freebsd-g++46/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

MAKEFILE_GENERATOR = UNIX
QMAKE_PLATFORM = freebsd bsd
CONFIG += gdb_dwarf_index

QMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE

Expand Down
2 changes: 1 addition & 1 deletion mkspecs/hurd-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

MAKEFILE_GENERATOR = UNIX
QMAKE_PLATFORM = hurd
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

QMAKE_CFLAGS_THREAD += -D_REENTRANT
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/linux-arm-gnueabi-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/linux-g++-32/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

QMAKE_CFLAGS = -m32
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/linux-g++-64/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

QMAKE_CFLAGS = -m64
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/linux-g++-maemo/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

MAKEFILE_GENERATOR = UNIX
QMAKE_PLATFORM = maemo
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
CONFIG += nostrip
QMAKE_INCREMENTAL_STYLE = sublib

Expand Down
2 changes: 1 addition & 1 deletion mkspecs/linux-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/linux.conf)
Expand Down
1 change: 0 additions & 1 deletion mkspecs/linux-icc/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += gdb_dwarf_index

QMAKE_COMPILER = gcc intel_icc # icc pretends to be gcc

Expand Down
2 changes: 1 addition & 1 deletion mkspecs/linux-llvm/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/linux.conf)
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/linux-lsb-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/linux.conf)
Expand Down
1 change: 0 additions & 1 deletion mkspecs/netbsd-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

MAKEFILE_GENERATOR = UNIX
QMAKE_PLATFORM = netbsd bsd
CONFIG += gdb_dwarf_index

QMAKE_COMPILER = gcc

Expand Down
1 change: 0 additions & 1 deletion mkspecs/openbsd-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

MAKEFILE_GENERATOR = UNIX
QMAKE_PLATFORM = openbsd bsd
CONFIG += gdb_dwarf_index

QMAKE_COMPILER = gcc

Expand Down
5 changes: 5 additions & 0 deletions qmake/generators/win32/msvc_objectmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ bool VCCLCompilerTool::parseOption(const char* option)
BrowseInformation = brAllInfo;
BrowseInformationFile = option+3;
break;
case 'S':
if (config->CompilerVersion < NET2013)
found = false;
// Ignore this flag. Visual Studio 2013 takes care of this setting.
break;
case 'r':
BrowseInformation = brNoLocalSymbols;
BrowseInformationFile = option+3;
Expand Down
1 change: 1 addition & 0 deletions src/corelib/global/qglobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,7 @@ QT_END_NAMESPACE

#include <QtCore/qatomic.h>
#include <QtCore/qglobalstatic.h>
#include <QtCore/qnumeric.h>

#endif /* __cplusplus */

Expand Down
2 changes: 1 addition & 1 deletion src/corelib/kernel/qmetaobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ QByteArray QMetaObjectPrivate::decodeMethodSignature(
const char *lparens = strchr(signature, '(');
if (!lparens)
return QByteArray();
const char *rparens = strchr(lparens + 1, ')');
const char *rparens = strrchr(lparens + 1, ')');
if (!rparens || *(rparens+1))
return QByteArray();
int nameLength = lparens - signature;
Expand Down
31 changes: 19 additions & 12 deletions src/corelib/kernel/qmetaobject_moc_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,21 +155,28 @@ static QByteArray normalizeTypeInternal(const char *t, const char *e, bool fixSc
//template recursion
const char* tt = t;
int templdepth = 1;
int scopeDepth = 0;
while (t != e) {
c = *t++;
if (c == '<')
++templdepth;
if (c == '>')
--templdepth;
if (templdepth == 0 || (templdepth == 1 && c == ',')) {
result += normalizeTypeInternal(tt, t-1, fixScope, false);
result += c;
if (templdepth == 0) {
if (*t == '>')
result += ' '; // avoid >>
break;
if (c == '{' || c == '(' || c == '[')
++scopeDepth;
if (c == '}' || c == ')' || c == ']')
--scopeDepth;
if (scopeDepth == 0) {
if (c == '<')
++templdepth;
if (c == '>')
--templdepth;
if (templdepth == 0 || (templdepth == 1 && c == ',')) {
result += normalizeTypeInternal(tt, t-1, fixScope, false);
result += c;
if (templdepth == 0) {
if (*t == '>')
result += ' '; // avoid >>
break;
}
tt = t;
}
tt = t;
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/corelib/tools/qset.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,6 @@
unless you need to change the QSet through the iterator. Const
iterators are slightly faster, and can improve code readability.

QSet\<T\>::iterator allows you to iterate over a QSet\<T\> and
modify it as you go (using QSet::erase()). However,

The default QSet::iterator constructor creates an uninitialized
iterator. You must initialize it using a function like
QSet::begin(), QSet::end(), or QSet::insert() before you can
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/platforms/cocoa/qcocoamenubar.mm
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@

if (m_window && m_window->menubar() == this) {
m_window->setMenubar(0);
// Delete the children first so they do not cause
// the native menu items to be hidden after
// the menu bar was updated
qDeleteAll(children());
updateMenuBarImmediately();
}
}
Expand Down
40 changes: 26 additions & 14 deletions src/tools/moc/moc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,11 @@ Type Moc::parseType()
;
}
if (test(LANGLE)) {
QByteArray templ = lexemUntil(RANGLE);
for (int i = 0; i < templ.size(); ++i) {
type.name += templ.at(i);
if ((templ.at(i) == '<' && i+1 < templ.size() && templ.at(i+1) == ':')
|| (templ.at(i) == '>' && i+1 < templ.size() && templ.at(i+1) == '>')) {
type.name += ' ';
}
if (type.name.isEmpty()) {
// '<' cannot start a type
return type;
}
type.name += lexemUntil(RANGLE);
}
if (test(SCOPE)) {
type.name += lexem();
Expand Down Expand Up @@ -1402,10 +1399,14 @@ QByteArray Moc::lexemUntil(Token target)
QByteArray s;
while (from <= index) {
QByteArray n = symbols.at(from++-1).lexem();
if (s.size() && n.size()
&& is_ident_char(s.at(s.size()-1))
&& is_ident_char(n.at(0)))
s += ' ';
if (s.size() && n.size()) {
char prev = s.at(s.size()-1);
char next = n.at(0);
if ((is_ident_char(prev) && is_ident_char(next))
|| (prev == '<' && next == ':')
|| (prev == '>' && next == '>'))
s += ' ';
}
s += n;
}
return s;
Expand Down Expand Up @@ -1440,9 +1441,20 @@ bool Moc::until(Token target) {
case RBRACK: --brackCount; break;
case LPAREN: ++parenCount; break;
case RPAREN: --parenCount; break;
case LANGLE: ++angleCount; break;
case RANGLE: --angleCount; break;
case GTGT: angleCount -= 2; t = RANGLE; break;
case LANGLE:
if (parenCount == 0 && braceCount == 0 && parenCount == 0)
++angleCount;
break;
case RANGLE:
if (parenCount == 0 && braceCount == 0)
--angleCount;
break;
case GTGT:
if (parenCount == 0 && braceCount == 0) {
angleCount -= 2;
t = RANGLE;
}
break;
default: break;
}
if (t == target
Expand Down
Loading

0 comments on commit 072f9cf

Please sign in to comment.